!function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="./",t(t.s="V8Zd")}({"9jCM":function(e,n,t){"use strict";(function(e,r,a){t.d(n,"c",function(){return f}),t.d(n,"a",function(){return g}),t.d(n,"b",function(){return _});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved. 
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0  
 
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
MERCHANTABLITY OR NON-INFRINGEMENT. 
 
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var i,o=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),a=0;for(n=0;n<t;n++)for(var i=arguments[n],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r},s=this&&this.__assign||function(){return(s=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)},l=this&&this.__generator||function(e,n){var t,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=n.call(e,o)}catch(e){i=[6,e],r=0}finally{t=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},c=this&&this.__makeTemplateObject||function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},d=this&&this.__extends||(i=function(e,n){return(i=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)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});!function(e){e.versionMajorMinor="3.6",e.version=e.versionMajorMinor+".2"}(u||(u={})),function(e){!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}))}(u||(u={})),function(e){function n(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function t(){return new e.MapCtr}function r(){var e=function(){function e(e,n){this.currentEntry=e,this.selector=n}return e.prototype.next=function(){for(;this.currentEntry;){var e=!!this.currentEntry.skipNext;if(this.currentEntry=this.currentEntry.nextEntry,!e)break}return this.currentEntry?{value:this.selector(this.currentEntry.key,this.currentEntry.value),done:!1}:{value:void 0,done:!0}},e}();return function(){function t(){this.data=n(),this.size=0,this.firstEntry={},this.lastEntry=this.firstEntry}return t.prototype.get=function(e){var n=this.data[e];return n&&n.value},t.prototype.set=function(e,n){if(this.has(e))this.data[e].value=n;else{this.size++;var t={key:e,value:n};this.data[e]=t;var r=this.lastEntry;r.nextEntry=t,t.previousEntry=r,this.lastEntry=t}return this},t.prototype.has=function(e){return e in this.data},t.prototype.delete=function(e){if(this.has(e)){this.size--;var n=this.data[e];delete this.data[e];var t=n.previousEntry;return t.nextEntry=n.nextEntry,n.nextEntry&&(n.nextEntry.previousEntry=t),this.lastEntry===n&&(this.lastEntry=t),n.previousEntry=void 0,n.nextEntry=t,n.skipNext=!0,!0}return!1},t.prototype.clear=function(){this.data=n(),this.size=0;for(var e=this.firstEntry,t=e.nextEntry;t;){var r=t.nextEntry;t.previousEntry=void 0,t.nextEntry=e,t.skipNext=!0,t=r}e.nextEntry=void 0,this.lastEntry=e},t.prototype.keys=function(){return new e(this.firstEntry,function(e){return e})},t.prototype.values=function(){return new e(this.firstEntry,function(e,n){return n})},t.prototype.entries=function(){return new e(this.firstEntry,function(e,n){return[e,n]})},t.prototype.forEach=function(e){for(var n=this.entries();;){var t=n.next();if(t.done)break;var r=t.value,a=r[0];e(r[1],a)}},t}()}function a(e,n,t){if(void 0===t&&(t=D),e)for(var r=0,a=e;r<a.length;r++){if(t(a[r],n))return!0}return!1}function i(e,n){if(e){if(!n)return e.length>0;for(var t=0,r=e;t<r.length;t++){if(n(r[t]))return!0}}return!1}function s(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)}function l(e,n){return n<0?e.length+n:n}function c(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:l(n,t),r=void 0===r?n.length:l(n,r);for(var a=t;a<r&&a<n.length;a++)void 0!==n[a]&&e.push(n[a]);return e}function d(e,n,t){return!a(e,n,t)&&(e.push(n),!0)}function u(e,n,t){n.sort(function(n,r){return t(e[n],e[r])||M(n,r)})}function m(e,n){return 0===e.length?e:e.slice().sort(n)}function p(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){return g(e,t(n),t,r,a)}function g(e,n,t,r,a){if(!i(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var l=o+(s-o>>1);switch(r(t(e[l]),n)){case-1:o=l+1;break;case 0:return l;case 1:s=l-1}}return~o}function _(e,n,t,r,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===r||r<0?0:r,s=void 0===a||o+a>i-1?i-1:o+a,l=void 0;for(arguments.length<=2?(l=e[o],o++):l=t;o<=s;)l=n(l,e[o],o),o++;return l}}return t}e.emptyArray=[],e.createMap=t,e.createMapFromEntries=function(e){for(var n=t(),r=0,a=e;r<a.length;r++){var i=a[r],o=i[0],s=i[1];n.set(o,s)}return n},e.createMapFromTemplate=function(n){var t=new e.MapCtr;for(var r in n)y.call(n,r)&&t.set(r,n[r]);return t},e.MapCtr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:r(),e.shimMap=r,e.length=function(e){return e?e.length:0},e.forEach=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}},e.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}},e.firstDefinedIterator=function(e,n){for(;;){var t=e.next();if(t.done)return;var r=n(t.value);if(void 0!==r)return r}},e.zipWith=function(n,t,r){var a=[];e.Debug.assertEqual(n.length,t.length);for(var i=0;i<n.length;i++)a.push(r(n[i],t[i],i));return a},e.zipToIterator=function(n,t){e.Debug.assertEqual(n.length,t.length);var r=0;return{next:function(){return r===n.length?{value:void 0,done:!0}:{value:[n[++r-1],t[r-1]],done:!1}}}},e.zipToMap=function(n,r){e.Debug.assert(n.length===r.length);for(var a=t(),i=0;i<n.length;++i)a.set(n[i],r[i]);return a},e.every=function(e,n){if(e)for(var t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0},e.find=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r,t))return r}},e.findLast=function(e,n){for(var t=e.length-1;t>=0;t--){var r=e[t];if(n(r,t))return r}},e.findIndex=function(e,n,t){for(var r=t||0;r<e.length;r++)if(n(e[r],r))return r;return-1},e.findLastIndex=function(e,n,t){for(var r=void 0===t?e.length-1:t;r>=0;r--)if(n(e[r],r))return r;return-1},e.findMap=function(n,t){for(var r=0;r<n.length;r++){var a=t(n[r],r);if(a)return a}return e.Debug.fail()},e.contains=a,e.arraysEqual=function(e,n,t){return void 0===t&&(t=D),e.length===n.length&&e.every(function(e,r){return t(e,n[r])})},e.indexOfAnyCharCode=function(e,n,t){for(var r=t||0;r<e.length;r++)if(a(n,e.charCodeAt(r)))return r;return-1},e.countWhere=function(e,n){var t=0;if(e)for(var r=0;r<e.length;r++)n(e[r],r)&&t++;return t},e.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},e.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},e.clear=function(e){e.length=0},e.map=function(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r],r))}return t},e.mapIterator=function(e,n){return{next:function(){var t=e.next();return t.done?t:{value:n(t.value),done:!1}}}},e.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},e.flatten=function(e){for(var n=[],t=0,r=e;t<r.length;t++){var a=r[t];a&&(L(a)?c(n,a):n.push(a))}return n},e.flatMap=function(n,t){var r;if(n)for(var a=0;a<n.length;a++){var i=t(n[a],a);i&&(r=L(i)?c(r,i):s(r,i))}return r||e.emptyArray},e.flatMapToMutable=function(e,n){var t=[];if(e)for(var r=0;r<e.length;r++){var a=n(e[r],r);a&&(L(a)?c(t,a):t.push(a))}return t},e.flatMapIterator=function(n,t){var r=n.next();if(r.done)return e.emptyIterator;var a=i(r.value);return{next:function(){for(;;){var e=a.next();if(!e.done)return e;var t=n.next();if(t.done)return t;a=i(t.value)}}};function i(n){var r=t(n);return void 0===r?e.emptyIterator:L(r)?p(r):r}},e.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||L(i))&&(t||(t=e.slice(0,r)),L(i)?c(t,i):t.push(i))}return t||e},e.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},e.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},e.mapDefinedIterator=function(e,n){return{next:function(){for(;;){var t=e.next();if(t.done)return t;var r=n(t.value);if(void 0!==r)return{value:r,done:!1}}}}},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var n=!1;return{next:function(){var t=n;return n=!0,t?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,n,t){var r;if(e){r=[];for(var a=e.length,i=void 0,o=void 0,s=0,l=0;s<a;){for(;l<a;){if(o=n(e[l],l),0===l)i=o;else if(o!==i)break;l++}if(s<l){var c=t(e.slice(s,l),i,s,l);c&&r.push(c),s=l}i=o,l++}}return r},e.mapEntries=function(e,n){if(e){var r=t();return e.forEach(function(e,t){var a=n(t,e),i=a[0],o=a[1];r.set(i,o)}),r}},e.some=i,e.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)},e.concatenate=function(e,n){return i(n)?i(e)?o(e,n):n:e},e.deduplicate=function(e,n,t){return 0===e.length?[]:1===e.length?e.slice():t?function(e,n,t){var r=e.map(function(e,n){return n});u(e,r,t);for(var a=e[r[0]],i=[r[0]],o=1;o<r.length;o++){var s=r[o],l=e[s];n(a,l)||(i.push(s),a=l)}return i.sort(),i.map(function(n){return e[n]})}(e,n,t):function(e,n){for(var t=[],r=0,a=e;r<a.length;r++)d(t,a[r],n);return t}(e,n)},e.insertSorted=function(e,n,t){if(0!==e.length){var r=f(e,n,x,t);r<0&&e.splice(~r,0,n)}else e.push(n)},e.sortAndDeduplicate=function(n,t,r){return function(n,t){if(0===n.length)return e.emptyArray;for(var r=n[0],a=[r],i=1;i<n.length;i++){var o=n[i];switch(t(o,r)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}a.push(r=o)}return a}(m(n,t),r||t||O)},e.arrayIsEqualTo=function(e,n,t){if(void 0===t&&(t=D),!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},e.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},e.relativeComplement=function(n,t,r){if(!t||!n||0===t.length||0===n.length)return t;var a=[];e:for(var i=0,o=0;o<t.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);n:for(var s=i;i<n.length;i++)switch(i>s&&e.Debug.assertGreaterThanOrEqual(r(n[i],n[i-1]),0),r(t[o],n[i])){case-1:a.push(t[o]);continue e;case 0:continue e;case 1:continue n}}return a},e.sum=function(e,n){for(var t=0,r=0,a=e;r<a.length;r++)t+=a[r][n];return t},e.append=s,e.addRange=c,e.pushIfUnique=d,e.appendIfUnique=function(e,n,t){return e?(d(e,n,t),e):[n]},e.sort=m,e.arrayIterator=p,e.arrayReverseIterator=function(e){var n=e.length;return{next:function(){return 0===n?{value:void 0,done:!0}:{value:e[--n],done:!1}}}},e.stableSort=function(e,n){var t=e.map(function(e,n){return n});return u(e,t,n),t.map(function(n){return e[n]})},e.rangeEquals=function(e,n,t,r){for(;t<r;){if(e[t]!==n[t])return!1;t++}return!0},e.elementAt=function(e,n){if(e&&(n=l(e,n))<e.length)return e[n]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(n){return e.Debug.assert(0!==n.length),n[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(n){return e.Debug.assert(0!==n.length),n[n.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,n,t){var r=e.slice(0);return r[n]=t,r},e.binarySearch=f,e.binarySearchKey=g,e.reduceLeft=_;var y=Object.prototype.hasOwnProperty;function v(e,n){return y.call(e,n)}function h(e,n){for(var t=[],r=e.next();!r.done;r=e.next())t.push(n?n(r.value):r.value);return t}function b(e,n,t){void 0===t&&(t=x);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=t();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&&(U(t,n),t.length||this.delete(e))}function L(e){return Array.isArray?Array.isArray(e):e instanceof Array}function A(e){}function x(e){return e}function C(e){return e.toLowerCase()}function D(e,n){return e===n}function R(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function M(e,n){return R(e,n)}function I(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:e>n?1:0}function O(e,n){return R(e,n)}e.hasProperty=v,e.getProperty=function(e,n){return y.call(e,n)?e[n]:void 0},e.getOwnKeys=function(e){var n=[];for(var t in e)y.call(e,t)&&n.push(t);return n},e.getAllKeys=function(e){var n=[];do{for(var t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)d(n,r[t])}while(e=Object.getPrototypeOf(e));return n},e.getOwnValues=function(e){var n=[];for(var t in e)y.call(e,t)&&n.push(e[t]);return n},e.arrayFrom=h,e.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];if(void 0!==i)for(var o in i)v(i,o)&&(e[o]=i[o])}return e},e.equalOwnProperties=function(e,n,t){if(void 0===t&&(t=D),e===n)return!0;if(!e||!n)return!1;for(var r in e)if(y.call(e,r)){if(!y.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(var r in n)if(y.call(n,r)&&!y.call(e,r))return!1;return!0},e.arrayToMap=function(e,n,r){void 0===r&&(r=x);for(var a=t(),i=0,o=e;i<o.length;i++){var s=o[i],l=n(s);void 0!==l&&a.set(l,r(s))}return a},e.arrayToNumericMap=function(e,n,t){void 0===t&&(t=x);for(var r=[],a=0,i=e;a<i.length;a++){var o=i[a];r[n(o)]=t(o)}return r},e.arrayToMultiMap=b,e.group=function(e,n){return h(b(e,n).values())},e.clone=function(e){var n={};for(var t in e)y.call(e,t)&&(n[t]=e[t]);return n},e.extend=function(e,n){var t={};for(var r in n)y.call(n,r)&&(t[r]=n[r]);for(var r in e)y.call(e,r)&&(t[r]=e[r]);return t},e.copyProperties=function(e,n){for(var t in n)y.call(n,t)&&(e[t]=n[t])},e.maybeBind=function(e,n){return n?n.bind(e):void 0},e.createMultiMap=E,e.isArray=L,e.toArray=function(e){return L(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,n){return void 0!==e&&n(e)?e:void 0},e.cast=function(n,t){return void 0!==n&&t(n)?n:e.Debug.fail("Invalid cast. The supplied value "+n+" did not pass the test '"+e.Debug.getFunctionName(t)+"'.")},e.noop=A,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=x,e.toLowerCase=C,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var n;return function(){return e&&(n=e(),e=void 0),n}},e.compose=function(e,n,t,r,a){if(a){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 r?function(a){return r(t(n(e(a))))}:t?function(r){return t(n(e(r)))}:n?function(t){return n(e(t))}:e?function(n){return e(n)}:function(e){return e}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),e.equateValues=D,e.equateStringsCaseInsensitive=function(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()},e.equateStringsCaseSensitive=function(e,n){return D(e,n)},e.compareValues=M,e.min=function(e,n,t){return-1===t(e,n)?e:n},e.compareStringsCaseInsensitive=I,e.compareStringsCaseSensitive=O,e.getStringComparer=function(e){return e?I:O};var k,N,w=function(){var e,n,t=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return a;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return i;return o}();return function(r){return void 0===r?e||(e=t(r)):"en-US"===r?n||(n=t(r)):t(r)};function r(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:r>0?1:0}function a(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return r(e,t,n)}}function i(e){return void 0!==e?o():function(e,t){return r(e,t,n)};function n(e,n){return e.localeCompare(n)}}function o(){return function(n,t){return r(n,t,e)};function e(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,n){return e<n?-1:e>n?1:0}}}();function P(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++){var s=e.charCodeAt(o-1),l=o>t?o-t:1,c=n.length>t+o?t+o:n.length;a[0]=o;for(var d=o,u=1;u<l;u++)a[u]=i;for(u=l;u<=c;u++){var m=s===n.charCodeAt(u-1)?r[u-1]:Math.min(r[u]+1,a[u-1]+1,r[u-1]+2);a[u]=m,d=Math.min(d,m)}for(u=c+1;u<=n.length;u++)a[u]=i;if(d>t)return;var p=r;r=a,a=p}var f=r[n.length];return f>t?void 0:f}function G(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function F(e,n){return e.length>n.length&&G(e,n)}function V(e,n){for(var t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function B(e,n){e[n]=e[e.length-1],e.pop()}function U(e,n){return function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return B(e,t),!0;return!1}(e,function(e){return e===n})}function H(e,n){return 0===e.lastIndexOf(n,0)}function K(e,n){var t=e.prefix,r=e.suffix;return n.length>=t.length+r.length&&H(n,t)&&G(n,r)}e.getUILocale=function(){return N},e.setUILocale=function(e){N!==e&&(N=e,k=void 0)},e.compareStringsCaseSensitiveUI=function(e,n){return(k||(k=w(N)))(e,n)},e.compareProperties=function(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])},e.compareBooleans=function(e,n){return M(e?1:0,n?1:0)},e.getSpellingSuggestion=function(n,t,r){for(var a,i=Math.min(2,Math.floor(.34*n.length)),o=Math.floor(.4*n.length)+1,s=!1,l=n.toLowerCase(),c=0,d=t;c<d.length;c++){var u=d[c],m=r(u);if(void 0!==m&&Math.abs(m.length-l.length)<=i){var p=m.toLowerCase();if(p===l){if(m===n)continue;return u}if(s)continue;if(m.length<3)continue;var f=P(l,p,o-1);if(void 0===f)continue;f<3?(s=!0,a=u):(e.Debug.assert(f<o),o=f,a=u)}}return a},e.endsWith=G,e.removeSuffix=function(e,n){return G(e,n)?e.slice(0,e.length-n.length):e},e.tryRemoveSuffix=function(e,n){return G(e,n)?e.slice(0,e.length-n.length):void 0},e.stringContains=function(e,n){return-1!==e.indexOf(n)},e.fileExtensionIs=F,e.fileExtensionIsOneOf=function(e,n){for(var t=0,r=n;t<r.length;t++)if(F(e,r[t]))return!0;return!1},e.removeMinAndVersionNumbers=function(e){var n=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(n,"").replace(n,"")},e.orderedRemoveItem=function(e,n){for(var t=0;t<e.length;t++)if(e[t]===n)return V(e,t),!0;return!1},e.orderedRemoveItemAt=V,e.unorderedRemoveItemAt=B,e.unorderedRemoveItem=U,e.createGetCanonicalFileName=function(e){return e?x:C},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(n,t){return e.Debug.assert(K(n,t)),t.substring(n.prefix.length,t.length-n.suffix.length)},e.findBestPatternMatch=function(e,n,t){for(var r,a=-1,i=0,o=e;i<o.length;i++){var s=o[i],l=n(s);K(l,t)&&l.prefix.length>a&&(a=l.prefix.length,r=s)}return r},e.startsWith=H,e.removePrefix=function(e,n){return H(e,n)?e.substr(n.length):e},e.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=x),H(t(e),t(n))?e.substring(n.length):void 0},e.and=function(e,n){return function(t){return e(t)&&n(t)}},e.or=function(e,n){return function(t){return e(t)||n(t)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,n,t,r,a,i){i=i||A;for(var o=0,s=0,l=e.length,c=n.length;o<l&&s<c;){var d=e[o],u=n[s],m=t(d,u);-1===m?(r(d),o++):1===m?(a(u),s++):(i(u,d),o++,s++)}for(;o<l;)r(e[o++]);for(;s<c;)a(n[s++])},e.fill=function(e,n){for(var t=Array(e),r=0;r<e;r++)t[r]=n(r);return t},e.cartesianProduct=function(e){var n=[];return function e(n,t,r,a){for(var i=0,o=n[a];i<o.length;i++){var s=o[i],l=void 0;r?(l=r.slice()).push(s):l=[s],a===n.length-1?t.push(l):e(n,t,l,a+1)}}(e,n,void 0,0),n}}(u||(u={})),function(e){!function(n){function t(e){return n.currentAssertionLevel>=e}function r(e,n,t,i){e||(t&&(n+="\r\nVerbose Debug Information: "+("string"==typeof t?t:t())),a(n?"False expression: "+n:"False expression.",i||r))}function a(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||a),t}function i(e,n){return void 0===e||null===e?a(n):e}function o(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]:""}function s(n,t,r){void 0===n&&(n=0);var a=function(n){var t=[];for(var r in n){var a=n[r];"number"==typeof a&&t.push([a,r])}return e.stableSort(t,function(n,t){return e.compareValues(n[0],t[0])})}(t);if(0===n)return a.length>0&&0===a[0][0]?a[0][1]:"0";if(r){for(var i="",o=n,s=a.length-1;s>=0&&0!==o;s--){var l=a[s],c=l[0],d=l[1];0!==c&&(o&c)===c&&(o&=~c,i=d+(i?"|":"")+i)}if(0===o)return i}else for(var u=0,m=a;u<m.length;u++){var p=m[u];c=p[0],d=p[1];if(c===n)return d}return n.toString()}function l(n){return s(n,e.SyntaxKind,!1)}function c(n){return s(n,e.NodeFlags,!0)}function d(n){return s(n,e.ModifierFlags,!0)}function u(n){return s(n,e.TransformFlags,!0)}function m(n){return s(n,e.EmitFlags,!0)}function p(n){return s(n,e.SymbolFlags,!0)}function f(n){return s(n,e.TypeFlags,!0)}function g(n){return s(n,e.ObjectFlags,!0)}n.currentAssertionLevel=0,n.isDebugging=!1,n.shouldAssert=t,n.assert=r,n.assertEqual=function(e,n,t,r){e!==n&&a("Expected "+e+" === "+n+". "+(t?r?t+" "+r:t:""))},n.assertLessThan=function(e,n,t){e>=n&&a("Expected "+e+" < "+n+". "+(t||""))},n.assertLessThanOrEqual=function(e,n){e>n&&a("Expected "+e+" <= "+n)},n.assertGreaterThanOrEqual=function(e,n){e<n&&a("Expected "+e+" >= "+n)},n.fail=a,n.assertDefined=i,n.assertEachDefined=function(e,n){for(var t=0,r=e;t<r.length;t++)i(r[t],n);return e},n.assertNever=function e(n,t,r){return void 0===t&&(t="Illegal value:"),a(t+" "+("object"==typeof n&&"kind"in n&&"pos"in n&&l?"SyntaxKind: "+l(n.kind):JSON.stringify(n)),r||e)},n.getFunctionName=o,n.formatSymbol=function(n){return"{ name: "+e.unescapeLeadingUnderscores(n.escapedName)+"; flags: "+p(n.flags)+"; declarations: "+e.map(n.declarations,function(e){return l(e.kind)})+" }"},n.formatEnum=s,n.formatSyntaxKind=l,n.formatNodeFlags=c,n.formatModifierFlags=d,n.formatTransformFlags=u,n.formatEmitFlags=m,n.formatSymbolFlags=p,n.formatTypeFlags=f,n.formatObjectFlags=g,n.failBadSyntaxKind=function e(n,t){return a((t||"Unexpected node.")+"\r\nNode "+l(n.kind)+" was unexpected.",e)},n.assertEachNode=t(1)?function(t,a,i){return r(void 0===a||e.every(t,a),i||"Unexpected node.",function(){return"Node array did not pass test '"+o(a)+"'."},n.assertEachNode)}:e.noop,n.assertNode=t(1)?function(e,t,a){return r(void 0===t||t(e),a||"Unexpected node.",function(){return"Node "+l(e.kind)+" did not pass test '"+o(t)+"'."},n.assertNode)}:e.noop,n.assertOptionalNode=t(1)?function(e,t,a){return r(void 0===t||void 0===e||t(e),a||"Unexpected node.",function(){return"Node "+l(e.kind)+" did not pass test '"+o(t)+"'."},n.assertOptionalNode)}:e.noop,n.assertOptionalToken=t(1)?function(e,t,a){return r(void 0===t||void 0===e||e.kind===t,a||"Unexpected node.",function(){return"Node "+l(e.kind)+" was not a '"+l(t)+"' token."},n.assertOptionalToken)}:e.noop,n.assertMissingNode=t(1)?function(e,t){return r(void 0===e,t||"Unexpected node.",function(){return"Node "+l(e.kind)+" was unexpected'."},n.assertMissingNode)}:e.noop;var _=!1;n.enableDebugInfo=function(){if(!_){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return p(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return f(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?g(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var n=0,t=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<t.length;n++){var r=t[n];r.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(r.prototype,{__debugKind:{get:function(){return l(this.kind)}},__debugNodeFlags:{get:function(){return c(this.flags)}},__debugModifierFlags:{get:function(){return d(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return u(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return m(e.getEmitFlags(this))}},__debugGetText:{value:function(n){if(e.nodeIsSynthesized(this))return"";var t=e.getParseTreeNode(this),r=t&&e.getSourceFileOfNode(t);return r?e.getSourceTextOfNodeFromSourceFile(r,t,n):""}}})}_=!0}}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(n){var t,r,a,i="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function l(n,t,r){var a=0;return{enter:function(){1==++a&&c(t)},exit:function(){0==--a?(c(r),d(n,t,r)):a<0&&e.Debug.fail("enter/exit count does not match.")}}}function c(n){o&&(r.set(n,e.timestamp()),t.set(n,(t.get(n)||0)+1),i(n))}function d(n,t,i){if(o){var l=i&&r.get(i)||e.timestamp(),c=t&&r.get(t)||s;a.set(n,(a.get(n)||0)+(l-c))}}n.createTimerIf=function(e,t,r,a){return e?l(t,r,a):n.nullTimer},n.createTimer=l,n.nullTimer={enter:e.noop,exit:e.noop},n.mark=c,n.measure=d,n.getCount=function(e){return t&&t.get(e)||0},n.getDuration=function(e){return a&&a.get(e)||0},n.forEachMeasure=function(e){a.forEach(function(n,t){e(t,n)})},n.enable=function(){t=e.createMap(),r=e.createMap(),a=e.createMap(),o=!0,s=e.timestamp()},n.disable=function(){o=!1}}(e.performance||(e.performance={}))}(u||(u={})),function(e){var n,r={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{n=t(!function(){var e=new Error('Cannot find module "@microsoft/typescript-etw"');throw e.code="MODULE_NOT_FOUND",e}())}catch(e){n=void 0}e.perfLogger=n||r,e.perfLogger.logInfoEvent("Starting TypeScript v"+e.versionMajorMinor+" with command line: "+JSON.stringify([]))}(u||(u={})),function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,t=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^(0|[1-9]\d*)$/,i=function(){function n(n,a,i,s,l){if(void 0===a&&(a=0),void 0===i&&(i=0),void 0===s&&(s=""),void 0===l&&(l=""),"string"==typeof n){var c=e.Debug.assertDefined(o(n),"Invalid version");n=c.major,a=c.minor,i=c.patch,s=c.prerelease,l=c.build}e.Debug.assert(n>=0,"Invalid argument: major"),e.Debug.assert(a>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch"),e.Debug.assert(!s||t.test(s),"Invalid argument: prerelease"),e.Debug.assert(!l||r.test(l),"Invalid argument: build"),this.major=n,this.minor=a,this.patch=i,this.prerelease=s?s.split("."):e.emptyArray,this.build=l?l.split("."):e.emptyArray}return n.tryParse=function(e){var t=o(e);if(t)return new n(t.major,t.minor,t.patch,t.prerelease,t.build)},n.prototype.compareTo=function(n){return this===n?0:void 0===n?1:e.compareValues(this.major,n.major)||e.compareValues(this.minor,n.minor)||e.compareValues(this.patch,n.patch)||function(n,t){if(n===t)return 0;if(0===n.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(n.length,t.length),i=0;i<r;i++){var o=n[i],s=t[i];if(o!==s){var l=a.test(o),c=a.test(s);if(l||c){if(l!==c)return l?-1:1;var d=e.compareValues(+o,+s);if(d)return d}else{var d=e.compareStringsCaseSensitive(o,s);if(d)return d}}}return e.compareValues(n.length,t.length)}(this.prerelease,n.prerelease)},n.prototype.increment=function(t){switch(t){case"major":return new n(this.major+1,0,0);case"minor":return new n(this.major,this.minor+1,0);case"patch":return new n(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(t)}},n.prototype.toString=function(){var n=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(n+="-"+this.prerelease.join(".")),e.some(this.build)&&(n+="+"+this.build.join(".")),n},n.zero=new n(0,0,0),n}();function o(e){var a=n.exec(e);if(a){var i=a[1],o=a[2],s=void 0===o?"0":o,l=a[3],c=void 0===l?"0":l,d=a[4],u=void 0===d?"":d,m=a[5],p=void 0===m?"":m;if((!u||t.test(u))&&(!p||r.test(p)))return{major:parseInt(i,10),minor:parseInt(s,10),patch:parseInt(c,10),prerelease:u,build:p}}}e.Version=i;var s=function(){function n(n){this._alternatives=n?e.Debug.assertDefined(p(n),"Invalid range spec."):e.emptyArray}return n.tryParse=function(e){var t=p(e);if(t){var r=new n("");return r._alternatives=t,r}},n.prototype.test=function(e){return"string"==typeof e&&(e=new i(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(h(e,a))return!0}return!1}(e,this._alternatives)},n.prototype.toString=function(){return n=this._alternatives,e.map(n,E).join(" || ")||"*";var n},n}();e.VersionRange=s;var l=/\s*\|\|\s*/g,c=/\s+/g,d=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,u=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,m=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var n=[],t=0,r=e.trim().split(l);t<r.length;t++){var a=r[t];if(a){var i=[],o=u.exec(a);if(o){if(!g(o[1],o[2],i))return}else for(var s=0,d=a.split(c);s<d.length;s++){var p=d[s],f=m.exec(p);if(!f||!_(f[1],f[2],i))return}n.push(i)}}return n}function f(e){var n=d.exec(e);if(n){var t=n[1],r=n[2],a=void 0===r?"*":r,o=n[3],s=void 0===o?"*":o,l=n[4],c=n[5];return{version:new i(y(t)?0:parseInt(t,10),y(t)||y(a)?0:parseInt(a,10),y(t)||y(a)||y(s)?0:parseInt(s,10),l,c),major:t,minor:a,patch:s}}}function g(e,n,t){var r=f(e);if(!r)return!1;var a=f(n);return!!a&&(y(r.major)||t.push(v(">=",r.version)),y(a.major)||t.push(y(a.minor)?v("<",a.version.increment("major")):y(a.patch)?v("<",a.version.increment("minor")):v("<=",a.version)),!0)}function _(e,n,t){var r=f(n);if(!r)return!1;var a=r.version,o=r.major,s=r.minor,l=r.patch;if(y(o))"<"!==e&&">"!==e||t.push(v("<",i.zero));else switch(e){case"~":t.push(v(">=",a)),t.push(v("<",a.increment(y(s)?"major":"minor")));break;case"^":t.push(v(">=",a)),t.push(v("<",a.increment(a.major>0||y(s)?"major":a.minor>0||y(l)?"minor":"patch")));break;case"<":case">=":t.push(v(e,a));break;case"<=":case">":t.push(y(s)?v("<="===e?"<":">=",a.increment("major")):y(l)?v("<="===e?"<":">=",a.increment("minor")):v(e,a));break;case"=":case void 0:y(s)||y(l)?(t.push(v(">=",a)),t.push(v("<",a.increment(y(s)?"major":"minor")))):t.push(v("=",a));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,n){return{operator:e,operand:n}}function h(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];if(!b(e,a.operator,a.operand))return!1}return!0}function b(n,t,r){var a=n.compareTo(r);switch(t){case"<":return a<0;case"<=":return a<=0;case">":return a>0;case">=":return a>=0;case"=":return 0===a;default:return e.Debug.assertNever(t)}}function E(n){return e.map(n,T).join(" ")}function T(e){return""+e.operator+e.operand}}(u||(u={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.LessThanToken=28]="LessThanToken",e[e.LessThanSlashToken=29]="LessThanSlashToken",e[e.GreaterThanToken=30]="GreaterThanToken",e[e.LessThanEqualsToken=31]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=32]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=33]="EqualsEqualsToken",e[e.ExclamationEqualsToken=34]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=35]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=36]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=37]="EqualsGreaterThanToken",e[e.PlusToken=38]="PlusToken",e[e.MinusToken=39]="MinusToken",e[e.AsteriskToken=40]="AsteriskToken",e[e.AsteriskAsteriskToken=41]="AsteriskAsteriskToken",e[e.SlashToken=42]="SlashToken",e[e.PercentToken=43]="PercentToken",e[e.PlusPlusToken=44]="PlusPlusToken",e[e.MinusMinusToken=45]="MinusMinusToken",e[e.LessThanLessThanToken=46]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=47]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=48]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=49]="AmpersandToken",e[e.BarToken=50]="BarToken",e[e.CaretToken=51]="CaretToken",e[e.ExclamationToken=52]="ExclamationToken",e[e.TildeToken=53]="TildeToken",e[e.AmpersandAmpersandToken=54]="AmpersandAmpersandToken",e[e.BarBarToken=55]="BarBarToken",e[e.QuestionToken=56]="QuestionToken",e[e.ColonToken=57]="ColonToken",e[e.AtToken=58]="AtToken",e[e.BacktickToken=59]="BacktickToken",e[e.EqualsToken=60]="EqualsToken",e[e.PlusEqualsToken=61]="PlusEqualsToken",e[e.MinusEqualsToken=62]="MinusEqualsToken",e[e.AsteriskEqualsToken=63]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=64]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=65]="SlashEqualsToken",e[e.PercentEqualsToken=66]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=67]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=68]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=69]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=70]="AmpersandEqualsToken",e[e.BarEqualsToken=71]="BarEqualsToken",e[e.CaretEqualsToken=72]="CaretEqualsToken",e[e.Identifier=73]="Identifier",e[e.BreakKeyword=74]="BreakKeyword",e[e.CaseKeyword=75]="CaseKeyword",e[e.CatchKeyword=76]="CatchKeyword",e[e.ClassKeyword=77]="ClassKeyword",e[e.ConstKeyword=78]="ConstKeyword",e[e.ContinueKeyword=79]="ContinueKeyword",e[e.DebuggerKeyword=80]="DebuggerKeyword",e[e.DefaultKeyword=81]="DefaultKeyword",e[e.DeleteKeyword=82]="DeleteKeyword",e[e.DoKeyword=83]="DoKeyword",e[e.ElseKeyword=84]="ElseKeyword",e[e.EnumKeyword=85]="EnumKeyword",e[e.ExportKeyword=86]="ExportKeyword",e[e.ExtendsKeyword=87]="ExtendsKeyword",e[e.FalseKeyword=88]="FalseKeyword",e[e.FinallyKeyword=89]="FinallyKeyword",e[e.ForKeyword=90]="ForKeyword",e[e.FunctionKeyword=91]="FunctionKeyword",e[e.IfKeyword=92]="IfKeyword",e[e.ImportKeyword=93]="ImportKeyword",e[e.InKeyword=94]="InKeyword",e[e.InstanceOfKeyword=95]="InstanceOfKeyword",e[e.NewKeyword=96]="NewKeyword",e[e.NullKeyword=97]="NullKeyword",e[e.ReturnKeyword=98]="ReturnKeyword",e[e.SuperKeyword=99]="SuperKeyword",e[e.SwitchKeyword=100]="SwitchKeyword",e[e.ThisKeyword=101]="ThisKeyword",e[e.ThrowKeyword=102]="ThrowKeyword",e[e.TrueKeyword=103]="TrueKeyword",e[e.TryKeyword=104]="TryKeyword",e[e.TypeOfKeyword=105]="TypeOfKeyword",e[e.VarKeyword=106]="VarKeyword",e[e.VoidKeyword=107]="VoidKeyword",e[e.WhileKeyword=108]="WhileKeyword",e[e.WithKeyword=109]="WithKeyword",e[e.ImplementsKeyword=110]="ImplementsKeyword",e[e.InterfaceKeyword=111]="InterfaceKeyword",e[e.LetKeyword=112]="LetKeyword",e[e.PackageKeyword=113]="PackageKeyword",e[e.PrivateKeyword=114]="PrivateKeyword",e[e.ProtectedKeyword=115]="ProtectedKeyword",e[e.PublicKeyword=116]="PublicKeyword",e[e.StaticKeyword=117]="StaticKeyword",e[e.YieldKeyword=118]="YieldKeyword",e[e.AbstractKeyword=119]="AbstractKeyword",e[e.AsKeyword=120]="AsKeyword",e[e.AnyKeyword=121]="AnyKeyword",e[e.AsyncKeyword=122]="AsyncKeyword",e[e.AwaitKeyword=123]="AwaitKeyword",e[e.BooleanKeyword=124]="BooleanKeyword",e[e.ConstructorKeyword=125]="ConstructorKeyword",e[e.DeclareKeyword=126]="DeclareKeyword",e[e.GetKeyword=127]="GetKeyword",e[e.InferKeyword=128]="InferKeyword",e[e.IsKeyword=129]="IsKeyword",e[e.KeyOfKeyword=130]="KeyOfKeyword",e[e.ModuleKeyword=131]="ModuleKeyword",e[e.NamespaceKeyword=132]="NamespaceKeyword",e[e.NeverKeyword=133]="NeverKeyword",e[e.ReadonlyKeyword=134]="ReadonlyKeyword",e[e.RequireKeyword=135]="RequireKeyword",e[e.NumberKeyword=136]="NumberKeyword",e[e.ObjectKeyword=137]="ObjectKeyword",e[e.SetKeyword=138]="SetKeyword",e[e.StringKeyword=139]="StringKeyword",e[e.SymbolKeyword=140]="SymbolKeyword",e[e.TypeKeyword=141]="TypeKeyword",e[e.UndefinedKeyword=142]="UndefinedKeyword",e[e.UniqueKeyword=143]="UniqueKeyword",e[e.UnknownKeyword=144]="UnknownKeyword",e[e.FromKeyword=145]="FromKeyword",e[e.GlobalKeyword=146]="GlobalKeyword",e[e.BigIntKeyword=147]="BigIntKeyword",e[e.OfKeyword=148]="OfKeyword",e[e.QualifiedName=149]="QualifiedName",e[e.ComputedPropertyName=150]="ComputedPropertyName",e[e.TypeParameter=151]="TypeParameter",e[e.Parameter=152]="Parameter",e[e.Decorator=153]="Decorator",e[e.PropertySignature=154]="PropertySignature",e[e.PropertyDeclaration=155]="PropertyDeclaration",e[e.MethodSignature=156]="MethodSignature",e[e.MethodDeclaration=157]="MethodDeclaration",e[e.Constructor=158]="Constructor",e[e.GetAccessor=159]="GetAccessor",e[e.SetAccessor=160]="SetAccessor",e[e.CallSignature=161]="CallSignature",e[e.ConstructSignature=162]="ConstructSignature",e[e.IndexSignature=163]="IndexSignature",e[e.TypePredicate=164]="TypePredicate",e[e.TypeReference=165]="TypeReference",e[e.FunctionType=166]="FunctionType",e[e.ConstructorType=167]="ConstructorType",e[e.TypeQuery=168]="TypeQuery",e[e.TypeLiteral=169]="TypeLiteral",e[e.ArrayType=170]="ArrayType",e[e.TupleType=171]="TupleType",e[e.OptionalType=172]="OptionalType",e[e.RestType=173]="RestType",e[e.UnionType=174]="UnionType",e[e.IntersectionType=175]="IntersectionType",e[e.ConditionalType=176]="ConditionalType",e[e.InferType=177]="InferType",e[e.ParenthesizedType=178]="ParenthesizedType",e[e.ThisType=179]="ThisType",e[e.TypeOperator=180]="TypeOperator",e[e.IndexedAccessType=181]="IndexedAccessType",e[e.MappedType=182]="MappedType",e[e.LiteralType=183]="LiteralType",e[e.ImportType=184]="ImportType",e[e.ObjectBindingPattern=185]="ObjectBindingPattern",e[e.ArrayBindingPattern=186]="ArrayBindingPattern",e[e.BindingElement=187]="BindingElement",e[e.ArrayLiteralExpression=188]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=189]="ObjectLiteralExpression",e[e.PropertyAccessExpression=190]="PropertyAccessExpression",e[e.ElementAccessExpression=191]="ElementAccessExpression",e[e.CallExpression=192]="CallExpression",e[e.NewExpression=193]="NewExpression",e[e.TaggedTemplateExpression=194]="TaggedTemplateExpression",e[e.TypeAssertionExpression=195]="TypeAssertionExpression",e[e.ParenthesizedExpression=196]="ParenthesizedExpression",e[e.FunctionExpression=197]="FunctionExpression",e[e.ArrowFunction=198]="ArrowFunction",e[e.DeleteExpression=199]="DeleteExpression",e[e.TypeOfExpression=200]="TypeOfExpression",e[e.VoidExpression=201]="VoidExpression",e[e.AwaitExpression=202]="AwaitExpression",e[e.PrefixUnaryExpression=203]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=204]="PostfixUnaryExpression",e[e.BinaryExpression=205]="BinaryExpression",e[e.ConditionalExpression=206]="ConditionalExpression",e[e.TemplateExpression=207]="TemplateExpression",e[e.YieldExpression=208]="YieldExpression",e[e.SpreadElement=209]="SpreadElement",e[e.ClassExpression=210]="ClassExpression",e[e.OmittedExpression=211]="OmittedExpression",e[e.ExpressionWithTypeArguments=212]="ExpressionWithTypeArguments",e[e.AsExpression=213]="AsExpression",e[e.NonNullExpression=214]="NonNullExpression",e[e.MetaProperty=215]="MetaProperty",e[e.SyntheticExpression=216]="SyntheticExpression",e[e.TemplateSpan=217]="TemplateSpan",e[e.SemicolonClassElement=218]="SemicolonClassElement",e[e.Block=219]="Block",e[e.VariableStatement=220]="VariableStatement",e[e.EmptyStatement=221]="EmptyStatement",e[e.ExpressionStatement=222]="ExpressionStatement",e[e.IfStatement=223]="IfStatement",e[e.DoStatement=224]="DoStatement",e[e.WhileStatement=225]="WhileStatement",e[e.ForStatement=226]="ForStatement",e[e.ForInStatement=227]="ForInStatement",e[e.ForOfStatement=228]="ForOfStatement",e[e.ContinueStatement=229]="ContinueStatement",e[e.BreakStatement=230]="BreakStatement",e[e.ReturnStatement=231]="ReturnStatement",e[e.WithStatement=232]="WithStatement",e[e.SwitchStatement=233]="SwitchStatement",e[e.LabeledStatement=234]="LabeledStatement",e[e.ThrowStatement=235]="ThrowStatement",e[e.TryStatement=236]="TryStatement",e[e.DebuggerStatement=237]="DebuggerStatement",e[e.VariableDeclaration=238]="VariableDeclaration",e[e.VariableDeclarationList=239]="VariableDeclarationList",e[e.FunctionDeclaration=240]="FunctionDeclaration",e[e.ClassDeclaration=241]="ClassDeclaration",e[e.InterfaceDeclaration=242]="InterfaceDeclaration",e[e.TypeAliasDeclaration=243]="TypeAliasDeclaration",e[e.EnumDeclaration=244]="EnumDeclaration",e[e.ModuleDeclaration=245]="ModuleDeclaration",e[e.ModuleBlock=246]="ModuleBlock",e[e.CaseBlock=247]="CaseBlock",e[e.NamespaceExportDeclaration=248]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=249]="ImportEqualsDeclaration",e[e.ImportDeclaration=250]="ImportDeclaration",e[e.ImportClause=251]="ImportClause",e[e.NamespaceImport=252]="NamespaceImport",e[e.NamedImports=253]="NamedImports",e[e.ImportSpecifier=254]="ImportSpecifier",e[e.ExportAssignment=255]="ExportAssignment",e[e.ExportDeclaration=256]="ExportDeclaration",e[e.NamedExports=257]="NamedExports",e[e.ExportSpecifier=258]="ExportSpecifier",e[e.MissingDeclaration=259]="MissingDeclaration",e[e.ExternalModuleReference=260]="ExternalModuleReference",e[e.JsxElement=261]="JsxElement",e[e.JsxSelfClosingElement=262]="JsxSelfClosingElement",e[e.JsxOpeningElement=263]="JsxOpeningElement",e[e.JsxClosingElement=264]="JsxClosingElement",e[e.JsxFragment=265]="JsxFragment",e[e.JsxOpeningFragment=266]="JsxOpeningFragment",e[e.JsxClosingFragment=267]="JsxClosingFragment",e[e.JsxAttribute=268]="JsxAttribute",e[e.JsxAttributes=269]="JsxAttributes",e[e.JsxSpreadAttribute=270]="JsxSpreadAttribute",e[e.JsxExpression=271]="JsxExpression",e[e.CaseClause=272]="CaseClause",e[e.DefaultClause=273]="DefaultClause",e[e.HeritageClause=274]="HeritageClause",e[e.CatchClause=275]="CatchClause",e[e.PropertyAssignment=276]="PropertyAssignment",e[e.ShorthandPropertyAssignment=277]="ShorthandPropertyAssignment",e[e.SpreadAssignment=278]="SpreadAssignment",e[e.EnumMember=279]="EnumMember",e[e.UnparsedPrologue=280]="UnparsedPrologue",e[e.UnparsedPrepend=281]="UnparsedPrepend",e[e.UnparsedText=282]="UnparsedText",e[e.UnparsedInternalText=283]="UnparsedInternalText",e[e.UnparsedSyntheticReference=284]="UnparsedSyntheticReference",e[e.SourceFile=285]="SourceFile",e[e.Bundle=286]="Bundle",e[e.UnparsedSource=287]="UnparsedSource",e[e.InputFiles=288]="InputFiles",e[e.JSDocTypeExpression=289]="JSDocTypeExpression",e[e.JSDocAllType=290]="JSDocAllType",e[e.JSDocUnknownType=291]="JSDocUnknownType",e[e.JSDocNullableType=292]="JSDocNullableType",e[e.JSDocNonNullableType=293]="JSDocNonNullableType",e[e.JSDocOptionalType=294]="JSDocOptionalType",e[e.JSDocFunctionType=295]="JSDocFunctionType",e[e.JSDocVariadicType=296]="JSDocVariadicType",e[e.JSDocNamepathType=297]="JSDocNamepathType",e[e.JSDocComment=298]="JSDocComment",e[e.JSDocTypeLiteral=299]="JSDocTypeLiteral",e[e.JSDocSignature=300]="JSDocSignature",e[e.JSDocTag=301]="JSDocTag",e[e.JSDocAugmentsTag=302]="JSDocAugmentsTag",e[e.JSDocAuthorTag=303]="JSDocAuthorTag",e[e.JSDocClassTag=304]="JSDocClassTag",e[e.JSDocCallbackTag=305]="JSDocCallbackTag",e[e.JSDocEnumTag=306]="JSDocEnumTag",e[e.JSDocParameterTag=307]="JSDocParameterTag",e[e.JSDocReturnTag=308]="JSDocReturnTag",e[e.JSDocThisTag=309]="JSDocThisTag",e[e.JSDocTypeTag=310]="JSDocTypeTag",e[e.JSDocTemplateTag=311]="JSDocTemplateTag",e[e.JSDocTypedefTag=312]="JSDocTypedefTag",e[e.JSDocPropertyTag=313]="JSDocPropertyTag",e[e.SyntaxList=314]="SyntaxList",e[e.NotEmittedStatement=315]="NotEmittedStatement",e[e.PartiallyEmittedExpression=316]="PartiallyEmittedExpression",e[e.CommaListExpression=317]="CommaListExpression",e[e.MergeDeclarationMarker=318]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=319]="EndOfDeclarationMarker",e[e.Count=320]="Count",e[e.FirstAssignment=60]="FirstAssignment",e[e.LastAssignment=72]="LastAssignment",e[e.FirstCompoundAssignment=61]="FirstCompoundAssignment",e[e.LastCompoundAssignment=72]="LastCompoundAssignment",e[e.FirstReservedWord=74]="FirstReservedWord",e[e.LastReservedWord=109]="LastReservedWord",e[e.FirstKeyword=74]="FirstKeyword",e[e.LastKeyword=148]="LastKeyword",e[e.FirstFutureReservedWord=110]="FirstFutureReservedWord",e[e.LastFutureReservedWord=118]="LastFutureReservedWord",e[e.FirstTypeNode=164]="FirstTypeNode",e[e.LastTypeNode=184]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=72]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=148]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=28]="FirstBinaryOperator",e[e.LastBinaryOperator=72]="LastBinaryOperator",e[e.FirstNode=149]="FirstNode",e[e.FirstJSDocNode=289]="FirstJSDocNode",e[e.LastJSDocNode=313]="LastJSDocNode",e[e.FirstJSDocTagNode=301]="FirstJSDocTagNode",e[e.LastJSDocTagNode=313]="LastJSDocTagNode",e[e.FirstContextualKeyword=119]="FirstContextualKeyword",e[e.LastContextualKeyword=148]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",e[e.JSDoc=2097152]="JSDoc",e[e.Ambient=4194304]="Ambient",e[e.InWithStatement=8388608]="InWithStatement",e[e.JsonFile=16777216]="JsonFile",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=12679168]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=3071]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Cached=8192]="Cached",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));var n,t=function(){return function(){}}();e.OperationCanceledException=t,function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=132]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=67238908]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=4194304]="InstantiablePrimitive",e[e.Instantiable=63176704]="Instantiable",e[e.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899392]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=68943871]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=4194304]="IncludesWildcard",e[e.IncludesEmptyObject=8388608]="IncludesEmptyObject",e[e.GenericMappedType=131072]="GenericMappedType"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ArrayLiteral=65536]="ArrayLiteral",e[e.PrimitiveUnion=131072]="PrimitiveUnion",e[e.ContainsWideningType=262144]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=524288]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=1048576]="NonInferrableType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=786432]="RequiresWidening",e[e.PropagatingFlags=1835008]="PropagatingFlags"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=8]="MappedTypeConstraint",e[e.ReturnType=16]="ReturnType",e[e.LiteralKeyof=32]="LiteralKeyof",e[e.NoConstraints=64]="NoConstraints",e[e.AlwaysStrict=128]="AlwaysStrict",e[e.MaxValue=256]="MaxValue",e[e.PriorityImpliesCombination=56]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(n=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=n[e.category];return t?r.toLowerCase():r},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2019=8]="ContainsES2019",e[e.ContainsES2018=16]="ContainsES2018",e[e.ContainsES2017=32]="ContainsES2017",e[e.ContainsES2016=64]="ContainsES2016",e[e.ContainsES2015=128]="ContainsES2015",e[e.ContainsGenerator=256]="ContainsGenerator",e[e.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=2048]="ContainsLexicalThis",e[e.ContainsRestOrSpread=4096]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=65536]="ContainsBindingPattern",e[e.ContainsYield=131072]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=524288]="ContainsDynamicImport",e[e.ContainsClassFields=1048576]="ContainsClassFields",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2019=8]="AssertES2019",e[e.AssertES2018=16]="AssertES2018",e[e.AssertES2017=32]="AssertES2017",e[e.AssertES2016=64]="AssertES2016",e[e.AssertES2015=128]="AssertES2015",e[e.AssertGenerator=256]="AssertGenerator",e[e.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",e[e.FunctionExcludes=537373696]="FunctionExcludes",e[e.ConstructorExcludes=537372672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536872960]="PropertyExcludes",e[e.ClassExcludes=536888320]="ClassExcludes",e[e.ModuleExcludes=537168896]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536879104]="CatchClauseExcludes",e[e.BindingPatternExcludes=536875008]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=2048]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.SpreadArrays=2048]="SpreadArrays",e[e.Await=4096]="Await",e[e.AsyncGenerator=8192]="AsyncGenerator",e[e.AsyncDelegator=16384]="AsyncDelegator",e[e.AsyncValues=32768]="AsyncValues",e[e.ExportStar=65536]="ExportStar",e[e.MakeTemplateObject=131072]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=131072]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement"}(e.EmitHint||(e.EmitHint={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=528]="TupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=49153]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(u||(u={})),function(n){var t,r;function a(e){var n;return(n={})[r.Low]=e.Low,n[r.Medium]=e.Medium,n[r.High]=e.High,n}n.generateDjb2Hash=function(e){for(var n=5381,t=0;t<e.length;t++)n=(n<<5)+n+e.charCodeAt(t);return n.toString()},n.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(t=n.FileWatcherEventKind||(n.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(r=n.PollingInterval||(n.PollingInterval={})),n.missingFileModifiedTime=new Date(0);var i={Low:32,Medium:64,High:256},o=a(i);function l(e){if(e.getEnvironmentVariable){var t=function(e,n){var t=l(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",r);o=c("TSC_WATCH_POLLINGCHUNKSIZE",i)||o,n.unchangedPollThresholds=c("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",i)||n.unchangedPollThresholds}function l(n){var t;return r("Low"),r("Medium"),r("High"),t;function r(r){var a=function(n,t){return e.getEnvironmentVariable(n+"_"+t.toUpperCase())}(n,r);a&&((t||(t={}))[r]=Number(a))}}function c(e,n){var r=l(e);return(t||r)&&a(r?s(s({},n),r):n)}}function c(e,n){var t=e.mtime.getTime(),r=n.getTime();return t!==r&&(e.mtime=n,e.callback(e.fileName,d(t,r)),!0)}function d(e,n){return 0===e?t.Created:0===n?t.Deleted:t.Changed}n.unchangedPollThresholds=a(i),n.setCustomPollingValues=l,n.createDynamicPriorityPollingWatchFile=function(e){var t=[],a=[],i=d(r.Low),s=d(r.Medium),l=d(r.High);return function(e,r,a){var i={fileName:e,callback:r,unchangedPolls:0,mtime:v(e)};return t.push(i),g(i,a),{close:function(){i.isClosed=!0,n.unorderedRemoveItem(t,i)}}};function d(e){var n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function u(e){e.pollIndex=p(e,e.pollingInterval,e.pollIndex,o[e.pollingInterval]),e.length?y(e.pollingInterval):(n.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function m(e){p(a,r.Low,0,a.length),u(e),!e.pollScheduled&&a.length&&y(r.Low)}function p(e,t,i,o){for(var s=e.length,l=i,d=0;d<o&&s>0;++i===e.length&&(l<i&&(e.length=l),i=0,l=0),s--){var u=e[i];if(u)if(u.isClosed)e[i]=void 0;else{d++;var m=c(u,v(u.fileName));u.isClosed?e[i]=void 0:m?(u.unchangedPolls=0,e!==a&&(e[i]=void 0,p=u,a.push(p),_(r.Low))):u.unchangedPolls!==n.unchangedPollThresholds[t]?u.unchangedPolls++:e===a?(u.unchangedPolls=1,e[i]=void 0,g(u,r.Low)):t!==r.High&&(u.unchangedPolls++,e[i]=void 0,g(u,t===r.Low?r.Medium:r.High)),e[i]&&(l<i&&(e[l]=u,e[i]=void 0),l++)}}var p;return i}function f(e){switch(e){case r.Low:return i;case r.Medium:return s;case r.High:return l}}function g(e,n){f(n).push(e),_(n)}function _(e){f(e).pollScheduled||y(e)}function y(n){f(n).pollScheduled=e.setTimeout(n===r.Low?m:u,n,f(n))}function v(t){return e.getModifiedTime(t)||n.missingFileModifiedTime}},n.createSingleFileWatcherPerName=function(e,t){var r=n.createMap(),a=n.createMultiMap(),i=n.createGetCanonicalFileName(t);return function(t,o,s){var l=i(t),c=r.get(l);return c?c.refCount++:r.set(l,{watcher:e(t,function(e,t){return n.forEach(a.get(l),function(n){return n(e,t)})},s),refCount:1}),a.add(l,o),{close:function(){var e=n.Debug.assertDefined(r.get(l));a.remove(l,o),e.refCount--,e.refCount||(r.delete(l),n.closeFileWatcherOf(e))}}}},n.onWatchedFileStat=c,n.getFileWatcherEventKind=d,n.ignoredPaths=["/node_modules/.","/.git","/.#"],n.sysLog=n.noop,n.createRecursiveDirectoryWatcher=function(e){var t=n.createMap(),r=n.createMultiMap(),a=n.getStringComparer(!e.useCaseSensitiveFileNames),i=n.createGetCanonicalFileName(e.useCaseSensitiveFileNames);return o;function o(a,o){var c=i(a),d=t.get(c);return d?d.refCount++:(d={watcher:e.watchDirectory(a,function(e){l(e)||(r.forEach(function(t,r){(r===c||n.startsWith(c,r)&&c[r.length]===n.directorySeparator)&&t.forEach(function(n){return n(e)})}),s(a,c))}),refCount:1,childWatches:n.emptyArray},t.set(c,d),s(a,c)),o&&r.add(c,o),{dirName:a,close:function(){var e=n.Debug.assertDefined(t.get(c));o&&r.remove(c,o),e.refCount--,e.refCount||(t.delete(c),n.closeFileWatcherOf(e),e.childWatches.forEach(n.closeFileWatcher))}}}function s(r,i){var s=t.get(i);s&&(s.childWatches=function(t,r){var i;return n.enumerateInsertsAndDeletes(e.directoryExists(t)?n.mapDefined(e.getAccessibleSortedChildDirectories(t),function(r){var i=n.getNormalizedAbsolutePath(r,t);return l(i)||0!==a(i,n.normalizePath(e.realpath(i)))?void 0:i}):n.emptyArray,r,function(e,n){return a(e,n.dirName)},function(e){s(o(e))},n.closeFileWatcher,s),i||n.emptyArray;function s(e){(i||(i=[])).push(e)}}(r,s.childWatches))}function l(t){return n.some(n.ignoredPaths,function(r){return function(t,r){return!!n.stringContains(t,r)||!e.useCaseSensitiveFileNames&&n.stringContains(i(t),r)}(t,r)})}},n.getNodeMajorVersion=function(){if(void 0!==e){var n=e.version;if(n){var t=n.indexOf(".");if(-1!==t)return parseInt(n.substring(1,t))}}},n.sys=void 0,n.sys&&n.sys.getEnvironmentVariable&&(l(n.sys),n.Debug.currentAssertionLevel=/^development$/i.test(n.sys.getEnvironmentVariable("NODE_ENV"))?1:0),n.sys&&n.sys.debugMode&&(n.Debug.isDebugging=!0)}(u||(u={})),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."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:n(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),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}'."),_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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:n(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules 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_in_your_tsconfig_or_jsconfig_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 in your 'tsconfig' or 'jsconfig' 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."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:n(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:n(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:n(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),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_when_the_module_option_is_esnext_or_system:n(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),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."),Print_the_final_configuration_instead_of_building:n(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:n(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:n(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:n(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:n(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:n(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:n(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),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_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint: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'?"),This_expression_is_not_callable:n(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword: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."),This_expression_is_not_constructable:n(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first: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_bigint_or_an_enum_type:n(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: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_bigint_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: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."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: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_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: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_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."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:n(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query: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_0_method_of_an_iterator_must_have_a_value_property:n(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: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_of_length_1_has_no_element_at_index_2:n(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: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."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:n(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: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_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type: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_read_only_property:n(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access: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_0_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_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: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_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."),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."),Cannot_assign_to_0_because_it_is_a_constant:n(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:n(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:n(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:n(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:n(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:n(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:n(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),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_property_0:n(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: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"),Property_0_was_also_declared_here:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),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."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:n(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:n(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ESNext:n(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:n(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:n(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:n(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:n(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:n(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:n(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:n(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:n(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:n(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:n(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:n(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here:n(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:n(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:n(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:n(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:n(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:n(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:n(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:n(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:n(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:n(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:n(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:n(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:n(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:n(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),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}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:n(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:n(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:n(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),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}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:n(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option `--tsBuildInfoFile` is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:n(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),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_ES2019_or_ESNEXT:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' 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."),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?"),Enable_strict_bind_call_and_apply_methods_on_functions:n(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:n(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:n(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),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_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:n(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set: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."),Updating_unchanged_output_timestamps_of_project_0:n(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:n(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:n(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:n(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:n(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:n(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:n(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:n(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:n(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),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."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:n(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number: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_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:n(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: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:n(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: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."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:n(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:n(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:n(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:n(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:n(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:n(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:n(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}' ?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:n(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:n(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:n(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),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."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:n(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),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."),await_has_no_effect_on_the_type_of_this_expression:n(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),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}\""),Add_parameter_name:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),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"),Add_unknown_conversion_for_non_overlapping_types:n(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:n(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:n(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:n(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:n(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:n(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:n(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?")}}(u||(u={})),function(e){var n;function t(e){return e>=73}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 30===e||t(e)};var r=((n={abstract:119,any:121,as:120,bigint:147,boolean:124,break:74,case:75,catch:76,class:77,continue:79,const:78}).constructor=125,n.debugger=80,n.declare=126,n.default=81,n.delete=82,n.do=83,n.else=84,n.enum=85,n.export=86,n.extends=87,n.false=88,n.finally=89,n.for=90,n.from=145,n.function=91,n.get=127,n.if=92,n.implements=110,n.import=93,n.in=94,n.infer=128,n.instanceof=95,n.interface=111,n.is=129,n.keyof=130,n.let=112,n.module=131,n.namespace=132,n.never=133,n.new=96,n.null=97,n.number=136,n.object=137,n.package=113,n.private=114,n.protected=115,n.public=116,n.readonly=134,n.require=135,n.global=146,n.return=98,n.set=138,n.static=117,n.string=139,n.super=99,n.switch=100,n.symbol=140,n.this=101,n.throw=102,n.true=103,n.try=104,n.type=141,n.typeof=105,n.undefined=142,n.unique=143,n.unknown=144,n.var=106,n.void=107,n.while=108,n.with=109,n.yield=118,n.async=122,n.await=123,n.of=148,n),a=e.createMapFromTemplate(r),i=e.createMapFromTemplate(s(s({},r),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":28,">":30,"<=":31,">=":32,"==":33,"!=":34,"===":35,"!==":36,"=>":37,"+":38,"-":39,"**":41,"*":40,"/":42,"%":43,"++":44,"--":45,"<<":46,"</":29,">>":47,">>>":48,"&":49,"|":50,"^":51,"!":52,"~":53,"&&":54,"||":55,"?":56,":":57,"=":60,"+=":61,"-=":62,"*=":63,"**=":64,"/=":65,"%=":66,"<<=":67,">>=":68,">>>=":69,"&=":70,"|=":71,"^=":72,"@":58,"`":59})),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],d=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],m=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999];function p(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 f(e,n){return p(e,n>=2?u:1===n?c:o)}e.isUnicodeIdentifierStart=f;var g,_=(g=[],i.forEach(function(e,n){g[e]=n}),g);function y(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:a>127&&S(a)&&(n.push(r),r=t)}}return n.push(r),n}function v(n,t,r,a,i){(t<0||t>=n.length)&&(i?t=t<0?0:t>=n.length?n.length-1:t:e.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+n.length+" , line map is correct? "+(void 0!==a?e.arraysEqual(n,y(a)):"unknown")));var o=n[t]+r;return i?o>n[t+1]?n[t+1]:"string"==typeof a&&o>a.length?a.length:o:(t<n.length-1?e.Debug.assert(o<n[t+1]):void 0!==a&&e.Debug.assert(o<=a.length),o)}function h(e){return e.lineMap||(e.lineMap=y(e.text))}function b(n,t){var r=e.binarySearch(n,t,e.identity,e.compareValues);return r<0&&(r=~r-1,e.Debug.assert(-1!==r,"position cannot precede the beginning of the file")),{line:r,character:t-n[r]}}function E(e){return T(e)||S(e)}function T(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function S(e){return 10===e||13===e||8232===e||8233===e}function L(e){return e>=48&&e<=57}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return _[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=y,e.getPositionOfLineAndCharacter=function(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):v(h(e),n,t,e.text,r)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=h,e.computeLineAndCharacterOfPosition=b,e.getLineAndCharacterOfPosition=function(e,n){return b(h(e),n)},e.isWhiteSpaceLike=E,e.isWhiteSpaceSingleLine=T,e.isLineBreak=S,e.isOctalDigit=A,e.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 t>127}},e.skipTrivia=function(n,t,r,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(t))return t;for(;;){var i=n.charCodeAt(t);switch(i){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(47===n.charCodeAt(t+1)){for(t+=2;t<n.length&&!S(n.charCodeAt(t));)t++;continue}if(42===n.charCodeAt(t+1)){for(t+=2;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}continue}break;case 60:case 124:case 61:case 62:if(C(n,t)){t=D(n,t);continue}break;case 35:if(0===t&&M(n,t)){t=I(n,t);continue}break;default:if(i>127&&E(i)){t++;continue}}return t}};var x="<<<<<<<".length;function C(n,t){if(e.Debug.assert(t>=0),0===t||S(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+x<n.length){for(var a=0;a<x;a++)if(n.charCodeAt(t+a)!==r)return!1;return 61===r||32===n.charCodeAt(t+x)}}return!1}function D(n,t,r){r&&r(e.Diagnostics.Merge_conflict_marker_encountered,t,x);var a=n.charCodeAt(t),i=n.length;if(60===a||62===a)for(;t<i&&!S(n.charCodeAt(t));)t++;else for(e.Debug.assert(124===a||61===a);t<i;){var o=n.charCodeAt(t);if((61===o||62===o)&&o!==a&&C(n,t))break;t++}return t}var R=/^#!.*/;function M(n,t){return e.Debug.assert(0===t),R.test(n)}function I(e,n){return n+=R.exec(e)[0].length}function O(e,n,t,r,a,i,o){var s,l,c,d,u=!1,m=r,p=o;if(0===t){m=!0;var f=P(n);f&&(t=f.length)}e:for(;t>=0&&t<n.length;){var g=n.charCodeAt(t);switch(g){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;m=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:var _=n.charCodeAt(t+1),y=!1;if(47===_||42===_){var v=47===_?2:3,h=t;if(t+=2,47===_)for(;t<n.length;){if(S(n.charCodeAt(t))){y=!0;break}t++}else for(;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}if(m){if(u&&(p=a(s,l,c,d,i,p),!e&&p))return p;s=h,l=t,c=v,d=y,u=!0}continue}break e;default:if(g>127&&E(g)){u&&S(g)&&(d=!0),t++;continue}break e}}return u&&(p=a(s,l,c,d,i,p)),p}function k(e,n,t,r,a){return O(!0,e,n,!1,t,r,a)}function N(e,n,t,r,a){return O(!0,e,n,!0,t,r,a)}function w(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function P(e){var n=R.exec(e);if(n)return n[0]}function G(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&f(e,n)}function F(e,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,n){return p(e,n>=2?m:1===n?d:l)}(e,n)}e.isShebangTrivia=M,e.scanShebangTrivia=I,e.forEachLeadingCommentRange=function(e,n,t,r){return O(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return O(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=k,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=function(e,n){return k(e,n,w,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return N(e,n,w,void 0,void 0)},e.getShebang=P,e.isIdentifierStart=G,e.isIdentifierPart=F,e.isIdentifierText=function(e,n){var t=V(e,0);if(!G(t,n))return!1;for(var r=B(t);r<e.length;r+=B(t))if(!F(t=V(e,r),n))return!1;return!0},e.createScanner=function(n,r,i,o,s,l,c){void 0===i&&(i=0);var d,u,m,p,f,g,_,y=o,v=0;return ne(y,l,c),{getStartPos:function(){return m},getTextPos:function(){return d},getToken:function(){return f},getTokenPos:function(){return p},getTokenText:function(){return y.substring(p,d)},getTokenValue:function(){return g},hasUnicodeEscape:function(){return 0!=(1024&_)},hasExtendedUnicodeEscape:function(){return 0!=(8&_)},hasPrecedingLineBreak:function(){return 0!=(1&_)},isIdentifier:function(){return 73===f||f>109},isReservedWord:function(){return f>=74&&f<=109},isUnterminated:function(){return 0!=(4&_)},getTokenFlags:function(){return _},reScanGreaterToken:function(){if(30===f){if(62===y.charCodeAt(d))return 62===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,f=69):(d+=2,f=48):61===y.charCodeAt(d+1)?(d+=2,f=68):(d++,f=47);if(61===y.charCodeAt(d))return d++,f=32}return f},reScanSlashToken:function(){if(42===f||65===f){for(var t=p+1,r=!1,a=!1;;){if(t>=u){_|=4,h(e.Diagnostics.Unterminated_regular_expression_literal);break}var i=y.charCodeAt(t);if(S(i)){_|=4,h(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===i&&!a){t++;break}91===i?a=!0:92===i?r=!0:93===i&&(a=!1)}t++}for(;t<u&&F(y.charCodeAt(t),n);)t++;d=t,g=y.substring(p,d),f=13}return f},reScanTemplateToken:function(){return e.Debug.assert(19===f,"'reScanTemplateToken' should only be called on a '}'"),d=p,f=U()},scanJsxIdentifier:function(){if(t(f))for(;d<u;){var e=y.charCodeAt(d);if(45!==e){var n=d;if(g+=X(),d===n)break}else g+="-",d++}return f},scanJsxAttributeValue:function(){switch(m=d,y.charCodeAt(d)){case 34:case 39:return g=P(!0),f=10;default:return Z()}},reScanJsxToken:function(){return d=p=m,f=$()},reScanLessThanToken:function(){return 46===f?(d=p+1,f=28):f},scanJsxToken:$,scanJsDocToken:function(){if(m=p=d,_=0,d>=u)return f=1;var e=V(y,d);switch(d+=B(e),e){case 9:case 11:case 12:case 32:for(;d<u&&T(y.charCodeAt(d));)d++;return f=5;case 64:return f=58;case 10:case 13:return _|=1,f=4;case 42:return f=40;case 123:return f=18;case 125:return f=19;case 91:return f=22;case 93:return f=23;case 60:return f=28;case 62:return f=30;case 61:return f=60;case 44:return f=27;case 46:return f=24;case 96:return f=59;case 92:d--;var t=z();if(t>=0&&G(t,n))return d+=3,_|=8,g=j()+X(),f=J();var r=q();return r>=0&&G(r,n)?(d+=6,_|=1024,g=String.fromCharCode(r)+X(),f=J()):(d++,f=0)}if(G(e,n)){for(var a=e;d<u&&F(a=V(y,d),n);)d+=B(a);return g=y.substring(p,d),92===a&&(g+=X()),f=J()}return f=0},scan:Z,getText:function(){return y},setText:ne,setScriptTarget:function(e){n=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:te,setInJSDocType:function(e){v+=e?1:-1},tryScan:function(e){return ee(e,!1)},lookAhead:function(e){return ee(e,!0)},scanRange:function(e,n,t){var r=u,a=d,i=m,o=p,s=f,l=g,c=_;ne(y,e,n);var v=t();return u=r,d=a,m=i,p=o,f=s,g=l,_=c,v}};function h(e,n,t){if(void 0===n&&(n=d),s){var r=d;d=n,s(e,t||0),d=r}}function b(){for(var n=d,t=!1,r=!1,a="";;){var i=y.charCodeAt(d);if(95!==i){if(!L(i))break;t=!0,r=!1,d++}else _|=512,t?(t=!1,r=!0,a+=y.substring(n,d)):h(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),n=++d}return 95===y.charCodeAt(d-1)&&h(e.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),a+y.substring(n,d)}function x(){var n,t,r=d,a=b();46===y.charCodeAt(d)&&(d++,n=b());var i,o=d;if(69===y.charCodeAt(d)||101===y.charCodeAt(d)){d++,_|=16,43!==y.charCodeAt(d)&&45!==y.charCodeAt(d)||d++;var s=d,l=b();l?(t=y.substring(o,s)+l,o=d):h(e.Diagnostics.Digit_expected)}if(512&_?(i=a,n&&(i+="."+n),t&&(i+=t)):i=y.substring(r,o),void 0!==n||16&_)return R(r,void 0===n&&!!(16&_)),{type:8,value:""+ +i};g=i;var c=Q();return R(r),{type:c,value:g}}function R(t,r){if(G(V(y,d),n)){var a=d,i=X().length;1===i&&"n"===y[a]?h(r?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,t,a-t+1):(h(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,a,i),d=a)}}function O(){for(var e=d;A(y.charCodeAt(d));)d++;return+y.substring(e,d)}function k(e,n){var t=w(e,!1,n);return t?parseInt(t,16):-1}function N(e,n){return w(e,!0,n)}function w(n,t,r){for(var a=[],i=!1,o=!1;a.length<n||t;){var s=y.charCodeAt(d);if(r&&95===s)_|=512,i?(i=!1,o=!0):h(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++;else{if(i=r,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;a.push(s),d++,o=!1}}return a.length<n&&(a=[]),95===y.charCodeAt(d-1)&&h(e.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode.apply(String,a)}function P(n){void 0===n&&(n=!1);for(var t=y.charCodeAt(d),r="",a=++d;;){if(d>=u){r+=y.substring(a,d),_|=4,h(e.Diagnostics.Unterminated_string_literal);break}var i=y.charCodeAt(d);if(i===t){r+=y.substring(a,d),d++;break}if(92!==i||n){if(S(i)&&!n){r+=y.substring(a,d),_|=4,h(e.Diagnostics.Unterminated_string_literal);break}d++}else r+=y.substring(a,d),r+=H(),a=d}return r}function U(){for(var n,t=96===y.charCodeAt(d),r=++d,a="";;){if(d>=u){a+=y.substring(r,d),_|=4,h(e.Diagnostics.Unterminated_template_literal),n=t?14:17;break}var i=y.charCodeAt(d);if(96===i){a+=y.substring(r,d),d++,n=t?14:17;break}if(36===i&&d+1<u&&123===y.charCodeAt(d+1)){a+=y.substring(r,d),d+=2,n=t?15:16;break}92!==i?13!==i?d++:(a+=y.substring(r,d),++d<u&&10===y.charCodeAt(d)&&d++,a+="\n",r=d):(a+=y.substring(r,d),a+=H(),r=d)}return e.Debug.assert(void 0!==n),g=a,n}function H(){if(++d>=u)return h(e.Diagnostics.Unexpected_end_of_text),"";var n=y.charCodeAt(d);switch(d++,n){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<u&&123===y.charCodeAt(d)?(_|=8,d++,j()):(_|=1024,K(4));case 120:return K(2);case 13:d<u&&10===y.charCodeAt(d)&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function K(n){var t=k(n,!1);return t>=0?String.fromCharCode(t):(h(e.Diagnostics.Hexadecimal_digit_expected),"")}function j(){var n=N(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(h(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(h(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),d>=u?(h(e.Diagnostics.Unexpected_end_of_text),r=!0):125===y.charCodeAt(d)?d++:(h(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":W(t)}function W(n){if(e.Debug.assert(0<=n&&n<=1114111),n<=65535)return String.fromCharCode(n);var t=Math.floor((n-65536)/1024)+55296,r=(n-65536)%1024+56320;return String.fromCharCode(t,r)}function q(){if(d+5<u&&117===y.charCodeAt(d+1)){var e=d;d+=2;var n=k(4,!1);return d=e,n}return-1}function z(){if(n>=2&&117===V(y,d+1)&&123===V(y,d+2)){var e=d;d+=3;var t=N(1,!1),r=t?parseInt(t,16):-1;return d=e,r}return-1}function X(){for(var e="",t=d;d<u;){var r=V(y,d);if(F(r,n))d+=B(r);else{if(92!==r)break;if((r=z())>=0&&F(r,n)){d+=3,_|=8,e+=j(),t=d;continue}if(!((r=q())>=0&&F(r,n)))break;_|=1024,e+=y.substring(t,d),e+=W(r),t=d+=6}}return e+=y.substring(t,d)}function J(){var e=g.length;if(e>=2&&e<=11){var n=g.charCodeAt(0);if(n>=97&&n<=122){var t=a.get(g);if(void 0!==t)return f=t}}return f=73}function Y(n){for(var t="",r=!1,a=!1;;){var i=y.charCodeAt(d);if(95!==i){if(r=!0,!L(i)||i-48>=n)break;t+=y[d],d++,a=!1}else _|=512,r?(r=!1,a=!0):h(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++}return 95===y.charCodeAt(d-1)&&h(e.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),t}function Q(){if(110===y.charCodeAt(d))return g+="n",384&_&&(g=e.parsePseudoBigInt(g)+"n"),d++,9;var n=128&_?parseInt(g.slice(2),2):256&_?parseInt(g.slice(2),8):+g;return g=""+n,8}function Z(){var t;m=d,_=0;for(var a=!1;;){if(p=d,d>=u)return f=1;var o=V(y,d);if(35===o&&0===d&&M(y,d)){if(d=I(y,d),r)continue;return f=6}switch(o){case 10:case 13:if(_|=1,r){d++;continue}return 13===o&&d+1<u&&10===y.charCodeAt(d+1)?d+=2:d++,f=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(r){d++;continue}for(;d<u&&T(y.charCodeAt(d));)d++;return f=5;case 33:return 61===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,f=36):(d+=2,f=34):(d++,f=52);case 34:case 39:return g=P(),f=10;case 96:return f=U();case 37:return 61===y.charCodeAt(d+1)?(d+=2,f=66):(d++,f=43);case 38:return 38===y.charCodeAt(d+1)?(d+=2,f=54):61===y.charCodeAt(d+1)?(d+=2,f=70):(d++,f=49);case 40:return d++,f=20;case 41:return d++,f=21;case 42:if(61===y.charCodeAt(d+1))return d+=2,f=63;if(42===y.charCodeAt(d+1))return 61===y.charCodeAt(d+2)?(d+=3,f=64):(d+=2,f=41);if(d++,v&&!a&&1&_){a=!0;continue}return f=40;case 43:return 43===y.charCodeAt(d+1)?(d+=2,f=44):61===y.charCodeAt(d+1)?(d+=2,f=61):(d++,f=38);case 44:return d++,f=27;case 45:return 45===y.charCodeAt(d+1)?(d+=2,f=45):61===y.charCodeAt(d+1)?(d+=2,f=62):(d++,f=39);case 46:return L(y.charCodeAt(d+1))?(g=x().value,f=8):46===y.charCodeAt(d+1)&&46===y.charCodeAt(d+2)?(d+=3,f=25):(d++,f=24);case 47:if(47===y.charCodeAt(d+1)){for(d+=2;d<u&&!S(y.charCodeAt(d));)d++;if(r)continue;return f=2}if(42===y.charCodeAt(d+1)){d+=2,42===y.charCodeAt(d)&&47!==y.charCodeAt(d+1)&&(_|=2);for(var s=!1;d<u;){var l=y.charCodeAt(d);if(42===l&&47===y.charCodeAt(d+1)){d+=2,s=!0;break}S(l)&&(_|=1),d++}if(s||h(e.Diagnostics.Asterisk_Slash_expected),r)continue;return s||(_|=4),f=3}return 61===y.charCodeAt(d+1)?(d+=2,f=65):(d++,f=42);case 48:if(d+2<u&&(88===y.charCodeAt(d+1)||120===y.charCodeAt(d+1)))return d+=2,(g=N(1,!0))||(h(e.Diagnostics.Hexadecimal_digit_expected),g="0"),g="0x"+g,_|=64,f=Q();if(d+2<u&&(66===y.charCodeAt(d+1)||98===y.charCodeAt(d+1)))return d+=2,(g=Y(2))||(h(e.Diagnostics.Binary_digit_expected),g="0"),g="0b"+g,_|=128,f=Q();if(d+2<u&&(79===y.charCodeAt(d+1)||111===y.charCodeAt(d+1)))return d+=2,(g=Y(8))||(h(e.Diagnostics.Octal_digit_expected),g="0"),g="0o"+g,_|=256,f=Q();if(d+1<u&&A(y.charCodeAt(d+1)))return g=""+O(),_|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t=x(),f=t.type,g=t.value,f;case 58:return d++,f=57;case 59:return d++,f=26;case 60:if(C(y,d)){if(d=D(y,d,h),r)continue;return f=7}return 60===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,f=67):(d+=2,f=46):61===y.charCodeAt(d+1)?(d+=2,f=31):1===i&&47===y.charCodeAt(d+1)&&42!==y.charCodeAt(d+2)?(d+=2,f=29):(d++,f=28);case 61:if(C(y,d)){if(d=D(y,d,h),r)continue;return f=7}return 61===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,f=35):(d+=2,f=33):62===y.charCodeAt(d+1)?(d+=2,f=37):(d++,f=60);case 62:if(C(y,d)){if(d=D(y,d,h),r)continue;return f=7}return d++,f=30;case 63:return d++,f=56;case 91:return d++,f=22;case 93:return d++,f=23;case 94:return 61===y.charCodeAt(d+1)?(d+=2,f=72):(d++,f=51);case 123:return d++,f=18;case 124:if(C(y,d)){if(d=D(y,d,h),r)continue;return f=7}return 124===y.charCodeAt(d+1)?(d+=2,f=55):61===y.charCodeAt(d+1)?(d+=2,f=71):(d++,f=50);case 125:return d++,f=19;case 126:return d++,f=53;case 64:return d++,f=58;case 92:var c=z();if(c>=0&&G(c,n))return d+=3,_|=8,g=j()+X(),f=J();var b=q();return b>=0&&G(b,n)?(d+=6,_|=1024,g=String.fromCharCode(b)+X(),f=J()):(h(e.Diagnostics.Invalid_character),d++,f=0);default:if(G(o,n)){for(d+=B(o);d<u&&F(o=V(y,d),n);)d+=B(o);return g=y.substring(p,d),92===o&&(g+=X()),f=J()}if(T(o)){d+=B(o);continue}if(S(o)){_|=1,d+=B(o);continue}return h(e.Diagnostics.Invalid_character),d+=B(o),f=0}}}function $(){if(m=p=d,d>=u)return f=1;var e=y.charCodeAt(d);if(60===e)return 47===y.charCodeAt(d+1)?(d+=2,f=29):(d++,f=28);if(123===e)return d++,f=18;for(var n=0;d<u&&123!==(e=y.charCodeAt(d));){if(60===e){if(C(y,d))return d=D(y,d,h),f=7;break}S(e)&&0===n?n=-1:E(e)||(n=d),d++}return g=y.substring(m,d),-1===n?12:11}function ee(e,n){var t=d,r=m,a=p,i=f,o=g,s=_,l=e();return l&&!n||(d=t,m=r,p=a,f=i,g=o,_=s),l}function ne(e,n,t){y=e||"",u=void 0===t?y.length:n+t,te(n||0)}function te(n){e.Debug.assert(n>=0),d=n,m=n,p=n,f=0,g=void 0,_=0}};var V=String.prototype.codePointAt?function(e,n){return e.codePointAt(n)}:function(e,n){var t=e.length;if(!(n<0||n>=t)){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&t>n+1){var a=e.charCodeAt(n+1);if(a>=56320&&a<=57343)return 1024*(r-55296)+a-56320+65536}return r}};function B(e){return e>=65536?2:1}}(u||(u={})),function(e){e.isExternalModuleNameRelative=function(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)},e.sortAndDeduplicateDiagnostics=function(n){return e.sortAndDeduplicate(n,e.compareDiagnostics)}}(u||(u={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.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}},e.createUnderscoreEscapedMap=function(){return new e.MapCtr},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(n){var t=e.createMap();if(n)for(var r=0,a=n;r<a.length;r++){var i=a[r];t.set(i.escapedName,i)}return t};var n,t,r=(n="",{getText:function(){return n},write:t=function(e){return n+=e},rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:function(e,n){return t(e)},writeTrailingSemicolon:t,writeComment:t,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:e.noop,decreaseIndent:e.noop,clear:function(){return n=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function a(n,t,r){return r(e.isRootedDiskPath(n)?e.normalizePath(n):e.getNormalizedAbsolutePath(n,t))}function i(n,t){return e.moduleResolutionOptionDeclarations.some(function(r){return!e.isJsonEqual(e.getCompilerOptionValue(n,r),e.getCompilerOptionValue(t,r))})}function l(e,n){for(;e;){var t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}}function c(e,n){e.forEach(function(e,t){n.set(t,e)})}function d(e){return e.end-e.pos}function u(n){return function(n){if(!(262144&n.flags)){var t=0!=(32768&n.flags)||e.forEachChild(n,u);t&&(n.flags|=131072),n.flags|=262144}}(n),0!=(131072&n.flags)}function m(e){for(;e&&285!==e.kind;)e=e.parent;return e}function p(n,t){e.Debug.assert(n>=0);var r=e.getLineStarts(t),a=n,i=t.text;if(a+1===r.length)return i.length-1;var o=r[a],s=r[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function f(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function g(e){return!f(e)}function _(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r<e.length&&t(e[r]);++r);return e.splice.apply(e,o([r,0],n)),e}function y(e,n,t){if(void 0===n)return e;for(var r=0;r<e.length&&t(e[r]);++r);return e.splice(r,0,n),e}function v(e){return K(e)||!!(1048576&A(e))}function h(e,n){return 42===e.charCodeAt(n+1)&&33===e.charCodeAt(n+2)}function b(n,t,r){return f(n)?n.pos:e.isJSDocNode(n)?e.skipTrivia((t||m(n)).text,n.pos,!1,!0):r&&e.hasJSDocNodes(n)?b(n.jsDoc[0]):314===n.kind&&n._children.length>0?b(n._children[0],t,r):e.skipTrivia((t||m(n)).text,n.pos)}function E(e,n,t){return void 0===t&&(t=!1),T(e.text,n,t)}function T(n,t,r){if(void 0===r&&(r=!1),f(t))return"";var a=n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end);return function e(n){return 289===n.kind||n.parent&&e(n.parent)}(t)&&(a=a.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),a}function S(e,n){return void 0===n&&(n=!1),E(m(e),e,n)}function L(e){return e.pos}function A(e){var n=e.emitNode;return n&&n.flags||0}function x(e){var n=$e(e);return 238===n.kind&&275===n.parent.kind}function C(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||D(n))}function D(e){return!!(512&e.flags)}function R(e){return C(e)&&M(e)}function M(n){switch(n.parent.kind){case 285:return e.isExternalModule(n.parent);case 246:return C(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function I(n,t){switch(n.kind){case 285:case 247:case 275:case 245:case 226:case 227:case 228:case 158:case 157:case 159:case 160:case 240:case 197:case 198:return!0;case 219:return!e.isFunctionLike(t)}return!1}function O(n){switch(n.kind){case 161:case 162:case 156:case 163:case 166:case 167:case 295:case 241:case 210:case 242:case 243:case 311:case 240:case 157:case 158:case 159:case 160:case 197:case 198:return!0;default:return e.assertType(n),!1}}function k(e){switch(e.kind){case 250:case 249:return!0;default:return!1}}function N(e){return e&&0!==d(e)?S(e):"(Missing)"}function w(n){switch(n.kind){case 73:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 150:return We(n.expression)?e.escapeLeadingUnderscores(n.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(n)}}function P(n,t,r,a,i,o,s){var l=F(n,t);return e.createFileDiagnostic(n,l.start,l.length,r,a,i,o,s)}function G(n,t){var r=e.createScanner(n.languageVersion,!0,n.languageVariant,n.text,void 0,t);r.scan();var a=r.getTokenPos();return e.createTextSpanFromBounds(a,r.getTextPos())}function F(n,t){var r=t;switch(t.kind){case 285:var a=e.skipTrivia(n.text,0,!1);return a===n.text.length?e.createTextSpan(0,0):G(n,a);case 238:case 187:case 241:case 210:case 242:case 245:case 244:case 279:case 240:case 197:case 157:case 159:case 160:case 243:case 155:case 154:r=t.name;break;case 198:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&219===t.body.kind){var a=e.getLineAndCharacterOfPosition(n,t.body.pos).line;if(a<e.getLineAndCharacterOfPosition(n,t.body.end).line)return e.createTextSpan(r,p(a,n)-r+1)}return e.createTextSpanFromBounds(r,t.end)}(n,t)}if(void 0===r)return G(n,t.pos);var i=f(r),o=i||e.isJsxText(t)?r.pos:e.skipTrivia(n.text,r.pos);return i?(e.Debug.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,r.end)}function V(e){return 6===e.scriptKind}function B(n){return!!(2&e.getCombinedNodeFlags(n))}function U(e){return 192===e.kind&&93===e.expression.kind}function H(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function K(e){return 222===e.kind&&10===e.expression.kind}e.toPath=a,e.changesAffectModuleResolution=function(e,n){return e.configFilePath!==n.configFilePath||i(e,n)},e.optionsHaveModuleResolutionChanges=i,e.findAncestor=l,e.forEachAncestor=function(n,t){for(;;){var r=t(n);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(n))return;n=n.parent}},e.forEachEntry=function(e,n){for(var t=e.entries(),r=t.next();!r.done;r=t.next()){var a=r.value,i=a[0],o=n(a[1],i);if(o)return o}},e.forEachKey=function(e,n){for(var t=e.keys(),r=t.next();!r.done;r=t.next()){var a=n(r.value);if(a)return a}},e.copyEntries=c,e.arrayToSet=function(n,t){return e.arrayToMap(n,t||function(e){return e},function(){return!0})},e.cloneMap=function(n){var t=e.createMap();return c(n,t),t},e.usingSingleLineStringWriter=function(e){var n=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(n)}},e.getFullWidth=d,e.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},e.setResolvedModule=function(n,t,r){n.resolvedModules||(n.resolvedModules=e.createMap()),n.resolvedModules.set(t,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=e.createMap()),n.resolvedTypeReferenceDirectiveNames.set(t,r)},e.projectReferenceIsEqualTo=function(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular},e.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},e.packageIdToString=function(e){var n=e.name,t=e.subModuleName,r=e.version;return(t?n+"/"+t:n)+"@"+r},e.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary},e.hasChangesInResolutions=function(n,t,r,a){e.Debug.assert(n.length===t.length);for(var i=0;i<n.length;i++){var o=t[i],s=r&&r.get(n[i]);if(s?!o||!a(s,o):o)return!0}return!1},e.containsParseError=u,e.getSourceFileOfNode=m,e.isStatementWithLocals=function(e){switch(e.kind){case 219:case 247:case 226:case 227:case 228:return!0}return!1},e.getStartPositionOfLine=function(n,t){return e.Debug.assert(n>=0),e.getLineStarts(t)[n]},e.nodePosToString=function(n){var t=m(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=p,e.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n)||e.identifiers.has(n))},e.nodeIsMissing=f,e.nodeIsPresent=g,e.insertStatementsAfterStandardPrologue=function(e,n){return _(e,n,K)},e.insertStatementsAfterCustomPrologue=function(e,n){return _(e,n,v)},e.insertStatementAfterStandardPrologue=function(e,n){return y(e,n,K)},e.insertStatementAfterCustomPrologue=function(e,n){return y(e,n,v)},e.isRecognizedTripleSlashComment=function(n,t,r){if(47===n.charCodeAt(t+1)&&t+2<r&&47===n.charCodeAt(t+2)){var a=n.substring(t,r);return!!(a.match(e.fullTripleSlashReferencePathRegEx)||a.match(e.fullTripleSlashAMDReferencePathRegEx)||a.match(j)||a.match(W))}return!1},e.isPinnedComment=h,e.getTokenPosOfNode=b,e.getNonDecoratorTokenPosOfNode=function(n,t){return f(n)||!n.decorators?b(n,t):e.skipTrivia((t||m(n)).text,n.decorators.end)},e.getSourceTextOfNodeFromSourceFile=E,e.getTextOfNodeFromSourceText=T,e.getTextOfNode=S,e.indexOfNode=function(n,t){return e.binarySearch(n,t,L,e.compareValues)},e.getEmitFlags=A,e.getLiteralText=function(n,t,r){if(!en(n)&&n.parent&&!(e.isNumericLiteral(n)&&512&n.numericLiteralFlags||e.isBigIntLiteral(n)))return E(t,n);var a=r||16777216&A(n)?un:_n;switch(n.kind){case 10:return n.singleQuote?"'"+a(n.text,39)+"'":'"'+a(n.text,34)+'"';case 14:case 15:case 16:case 17:var i=n.rawText||a(n.text,96).replace(on,"\\${");switch(n.kind){case 14:return"`"+i+"`";case 15:return"`"+i+"${";case 16:return"}"+i+"${";case 17:return"}"+i+"`"}break;case 8:case 9:case 13:return n.text}return e.Debug.fail("Literal kind '"+n.kind+"' not accounted for.")},e.getTextOfConstantValue=function(n){return e.isString(n)?'"'+_n(n)+'"':""+n},e.makeIdentifierFromModuleName=function(n){return e.getBaseFileName(n).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(n){return 0!=(3&e.getCombinedNodeFlags(n))||x(n)},e.isCatchClauseVariableDeclarationOrBindingElement=x,e.isAmbientModule=C,e.isModuleWithStringLiteralName=function(n){return e.isModuleDeclaration(n)&&10===n.name.kind},e.isNonGlobalAmbientModule=function(n){return e.isModuleDeclaration(n)&&e.isStringLiteral(n.name)},e.isEffectiveModuleDeclaration=function(n){return e.isModuleDeclaration(n)||e.isIdentifier(n)},e.isShorthandAmbientModuleSymbol=function(e){return(n=e.valueDeclaration)&&245===n.kind&&!n.body;var n},e.isBlockScopedContainerTopLevel=function(n){return 285===n.kind||245===n.kind||e.isFunctionLike(n)},e.isGlobalScopeAugmentation=D,e.isExternalModuleAugmentation=R,e.isModuleAugmentationExternal=M,e.getNonAugmentationDeclaration=function(n){return e.find(n.declarations,function(n){return!(R(n)||e.isModuleDeclaration(n)&&D(n))})},e.isEffectiveExternalModule=function(n,t){return e.isExternalModule(n)||t.isolatedModules||e.getEmitModuleKind(t)===e.ModuleKind.CommonJS&&!!n.commonJsModuleIndicator},e.isEffectiveStrictModeSourceFile=function(n,t){switch(n.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(n.isDeclarationFile||!e.getStrictOptionValue(t,"alwaysStrict")&&!e.startsWithUseStrict(n.statements)&&(!e.isExternalModule(n)&&!t.isolatedModules||!(e.getEmitModuleKind(t)>=e.ModuleKind.ES2015)&&t.noImplicitUseStrict))},e.isBlockScope=I,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 305:case 312:case 300:return!0;default:return e.assertType(n),O(n)}},e.isDeclarationWithTypeParameterChildren=O,e.isAnyImportSyntax=k,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 250:case 249:case 220:case 241:case 240:case 245:case 243:case 242:case 244:return!0;default:return!1}},e.isAnyImportOrReExport=function(n){return k(n)||e.isExportDeclaration(n)},e.getEnclosingBlockScopeContainer=function(e){return l(e.parent,function(e){return I(e,e.parent)})},e.declarationNameToString=N,e.getNameFromIndexInfo=function(e){return e.declaration?N(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=w,e.entityNameToString=function n(t){switch(t.kind){case 73:return 0===d(t)?e.idText(t):S(t);case 149:return n(t.left)+"."+n(t.right);case 190:return n(t.expression)+"."+n(t.name);default:throw e.Debug.assertNever(t)}},e.createDiagnosticForNode=function(e,n,t,r,a,i){return P(m(e),e,n,t,r,a,i)},e.createDiagnosticForNodeArray=function(n,t,r,a,i,o,s){var l=e.skipTrivia(n.text,t.pos);return e.createFileDiagnostic(n,l,t.end-l,r,a,i,o,s)},e.createDiagnosticForNodeInSourceFile=P,e.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=m(e),a=F(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}},e.getSpanOfTokenAtPosition=G,e.getErrorSpanForNode=F,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=V,e.isEnumConst=function(n){return!!(2048&e.getCombinedModifierFlags(n))},e.isDeclarationReadonly=function(n){return!(!(64&e.getCombinedModifierFlags(n))||e.isParameterPropertyDeclaration(n))},e.isVarConst=B,e.isLet=function(n){return!!(1&e.getCombinedNodeFlags(n))},e.isSuperCall=function(e){return 192===e.kind&&99===e.expression.kind},e.isImportCall=U,e.isImportMeta=function(n){return e.isMetaProperty(n)&&93===n.keywordToken&&"meta"===n.name.escapedText},e.isLiteralImportTypeNode=H,e.isPrologueDirective=K,e.getLeadingCommentRangesOfNode=function(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=152===n.kind||151===n.kind||197===n.kind||198===n.kind||196===n.kind?e.concatenate(e.getTrailingCommentRanges(t,n.pos),e.getLeadingCommentRanges(t,n.pos)):e.getLeadingCommentRanges(t,n.pos);return e.filter(r,function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var j=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var W=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function q(n){if(164<=n.kind&&n.kind<=184)return!0;switch(n.kind){case 121:case 144:case 136:case 147:case 139:case 124:case 140:case 137:case 142:case 133:return!0;case 107:return 201!==n.parent.kind;case 212:return!Jn(n);case 151:return 182===n.parent.kind||177===n.parent.kind;case 73:149===n.parent.kind&&n.parent.right===n?n=n.parent:190===n.parent.kind&&n.parent.name===n&&(n=n.parent),e.Debug.assert(73===n.kind||149===n.kind||190===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 149:case 190:case 101:var t=n.parent;if(168===t.kind)return!1;if(184===t.kind)return!t.isTypeOf;if(164<=t.kind&&t.kind<=184)return!0;switch(t.kind){case 212:return!Jn(t);case 151:case 311:return n===t.constraint;case 155:case 154:case 152:case 238:return n===t.type;case 240:case 197:case 198:case 158:case 157:case 156:case 159:case 160:return n===t.type;case 161:case 162:case 163:case 195:return n===t.type;case 192:case 193:return e.contains(t.typeArguments,n);case 194:return!1}}return!1}function z(e){if(e)switch(e.kind){case 187:case 279:case 152:case 276:case 155:case 154:case 277:case 238:return!0}return!1}function X(e){return 239===e.parent.kind&&220===e.parent.parent.kind}function J(e,n,t){return e.properties.filter(function(e){if(276===e.kind){var r=w(e.name);return n===r||!!t&&t===r}return!1})}function Y(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function Q(n,t){var r=Y(n);return r?J(r,t):e.emptyArray}function Z(n,t){for(e.Debug.assert(285!==n.kind);;){if(!(n=n.parent))return e.Debug.fail();switch(n.kind){case 150:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 153:152===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 198:if(!t)continue;case 240:case 197:case 245:case 155:case 154:case 157:case 156:case 158:case 159:case 160:case 161:case 162:case 163:case 244:case 285:return n}}}function $(e){var n=e.kind;return(190===n||191===n)&&99===e.expression.kind}function ee(e,n,t){switch(e.kind){case 241:return!0;case 155:return 241===n.kind;case 159:case 160:case 157:return void 0!==e.body&&241===n.kind;case 152:return void 0!==n.body&&(158===n.kind||157===n.kind||160===n.kind)&&241===t.kind}return!1}function ne(e,n,t){return void 0!==e.decorators&&ee(e,n,t)}function te(e,n,t){return ne(e,n,t)||re(e,n)}function re(n,t){switch(n.kind){case 241:return e.some(n.members,function(e){return te(e,n,t)});case 157:case 160:return e.some(n.parameters,function(e){return ne(e,n,t)});default:return!1}}function ae(e){var n=e.parent;return(263===n.kind||262===n.kind||264===n.kind)&&n.tagName===e}function ie(e){switch(e.kind){case 99:case 97:case 103:case 88:case 13:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 213:case 195:case 214:case 196:case 197:case 210:case 198:case 201:case 199:case 200:case 203:case 204:case 205:case 206:case 209:case 207:case 14:case 211:case 261:case 262:case 265:case 208:case 202:case 215:return!0;case 149:for(;149===e.parent.kind;)e=e.parent;return 168===e.parent.kind||ae(e);case 73:if(168===e.parent.kind||ae(e))return!0;case 8:case 9:case 10:case 101:return oe(e);default:return!1}}function oe(e){var n=e.parent;switch(n.kind){case 238:case 152:case 155:case 154:case 279:case 276:case 187:return n.initializer===e;case 222:case 223:case 224:case 225:case 231:case 232:case 233:case 272:case 235:return n.expression===e;case 226:var t=n;return t.initializer===e&&239!==t.initializer.kind||t.condition===e||t.incrementor===e;case 227:case 228:var r=n;return r.initializer===e&&239!==r.initializer.kind||r.expression===e;case 195:case 213:case 217:case 150:return e===n.expression;case 153:case 271:case 270:case 278:return!0;case 212:return n.expression===e&&Jn(n);case 277:return n.objectAssignmentInitializer===e;default:return ie(n)}}function se(e){return 249===e.kind&&260===e.moduleReference.kind}function le(e){return ce(e)}function ce(e){return!!e&&!!(65536&e.flags)}function de(n,t){if(192!==n.kind)return!1;var r=n,a=r.expression,i=r.arguments;if(73!==a.kind||"require"!==a.escapedText)return!1;if(1!==i.length)return!1;var o=i[0];return!t||e.isStringLiteralLike(o)}function ue(e){return 39===e||34===e}function me(n){return ce(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&55===n.initializer.operatorToken.kind&&n.name&&Yn(n.name)&&fe(n.name,n.initializer.left)?n.initializer.right:n.initializer}function pe(n,t){if(e.isCallExpression(n)){var r=we(n.expression);return 197===r.kind||198===r.kind?n:void 0}return 197===n.kind||210===n.kind||198===n.kind?n:e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function fe(n,t){return e.isIdentifier(n)&&e.isIdentifier(t)?n.escapedText===t.escapedText:e.isIdentifier(n)&&e.isPropertyAccessExpression(t)?(101===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))&&fe(n,t.name):!(!e.isPropertyAccessExpression(n)||!e.isPropertyAccessExpression(t))&&(n.name.escapedText===t.name.escapedText&&fe(n.expression,t.expression))}function ge(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function _e(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.expression)&&"module"===n.expression.escapedText&&"exports"===n.name.escapedText}function ye(n){var t=function(n){if(e.isCallExpression(n)){if(!ve(n))return 0;var t=n.arguments[0];return ge(t)||_e(t)?8:e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText&&Yn(t.expression)?9:7}if(60!==n.operatorToken.kind||!e.isPropertyAccessExpression(n.left))return 0;var r=n.left;if(Yn(r.expression)&&"prototype"===r.name.escapedText&&e.isObjectLiteralExpression(be(n)))return 6;return he(r)}(n);return 5===t||ce(n)?t:0}function ve(n){return 3===e.length(n.arguments)&&e.isPropertyAccessExpression(n.expression)&&e.isIdentifier(n.expression.expression)&&"Object"===e.idText(n.expression.expression)&&"defineProperty"===e.idText(n.expression.name)&&We(n.arguments[1])&&Yn(n.arguments[0])}function he(n){if(101===n.expression.kind)return 4;if(_e(n))return 2;if(Yn(n.expression)){if(Zn(n.expression))return 3;for(var t=n;e.isPropertyAccessExpression(t.expression);)t=t.expression;e.Debug.assert(e.isIdentifier(t.expression));var r=t.expression;return"exports"===r.escapedText||"module"===r.escapedText&&"exports"===t.name.escapedText?1:5}return 0}function be(n){for(;e.isBinaryExpression(n.right);)n=n.right;return n.right}function Ee(n){switch(n.parent.kind){case 250:case 256:return n.parent;case 260:return n.parent.parent;case 192:return U(n.parent)||de(n.parent,!1)?n.parent:void 0;case 183:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function Te(e){return 312===e.kind||305===e.kind||306===e.kind}function Se(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==ye(n.expression)&&e.isBinaryExpression(n.expression.right)&&55===n.expression.right.operatorToken.kind?n.expression.right.right:void 0}function Le(e){switch(e.kind){case 220:var n=Ae(e);return n&&n.initializer;case 155:case 276:return e.initializer}}function Ae(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function xe(n){return e.isModuleDeclaration(n)&&n.body&&245===n.body.kind?n.body:void 0}function Ce(n){var t=n.parent;return 276===t.kind||255===t.kind||155===t.kind||222===t.kind&&190===n.kind||xe(t)||e.isBinaryExpression(n)&&60===n.operatorToken.kind?t:t.parent&&(Ae(t.parent)===n||e.isBinaryExpression(t)&&60===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Ae(t.parent.parent)||Le(t.parent.parent)===n||Se(t.parent.parent))?t.parent.parent:void 0}function De(e){return Re(Me(e))}function Re(n){var t,r=Se(n)||(t=n,e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&60===t.expression.operatorToken.kind?t.expression.right:void 0)||Le(n)||Ae(n)||xe(n)||n;return r&&e.isFunctionLike(r)?r:void 0}function Me(n){return e.Debug.assertDefined(l(n.parent,e.isJSDoc)).parent}function Ie(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&296===t.kind}function Oe(e){for(var n=e.parent;;){switch(n.kind){case 205:var t=n.operatorToken.kind;return Wn(t)&&n.left===e?60===t?1:2:0;case 203:case 204:var r=n.operator;return 44===r||45===r?2:0;case 227:case 228:return n.initializer===e?1:0;case 196:case 188:case 209:case 214:e=n;break;case 277:if(n.name!==e)return 0;e=n.parent;break;case 276:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function ke(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function Ne(e){return ke(e,196)}function we(e){for(;196===e.kind;)e=e.expression;return e}function Pe(n){var t=e.isExportAssignment(n)?n.expression:n.right;return Yn(t)||e.isClassExpression(t)}function Ge(n){var t=Fe(n);if(t&&ce(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function Fe(e){var n=Ue(e.heritageClauses,87);return n&&n.types.length>0?n.types[0]:void 0}function Ve(e){var n=Ue(e.heritageClauses,110);return n?n.types:void 0}function Be(e){var n=Ue(e.heritageClauses,87);return n?n.types:void 0}function Ue(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 He(e){return 74<=e&&e<=148}function Ke(e){return 119<=e&&e<=148}function je(e){return He(e)&&!Ke(e)}function We(n){return e.isStringLiteralLike(n)||e.isNumericLiteral(n)}function qe(n){return e.isPrefixUnaryExpression(n)&&(38===n.operator||39===n.operator)&&e.isNumericLiteral(n.operand)}function ze(n){var t=e.getNameOfDeclaration(n);return!!t&&Xe(t)}function Xe(e){return 150===e.kind&&!We(e.expression)&&!qe(e.expression)&&!Je(e.expression)}function Je(n){return e.isPropertyAccessExpression(n)&&Ze(n.expression)}function Ye(n){switch(n.kind){case 73:return n.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(n.text);case 150:var t=n.expression;return Je(t)?Qe(e.idText(t.name)):We(t)?e.escapeLeadingUnderscores(t.text):void 0;default:return e.Debug.assertNever(n)}}function Qe(e){return"__@"+e}function Ze(e){return 73===e.kind&&"Symbol"===e.escapedText}function $e(e){for(;187===e.kind;)e=e.parent.parent;return e}function en(n){return e.positionIsSynthesized(n.pos)||e.positionIsSynthesized(n.end)}function nn(e,n,t){switch(e){case 193:return t?0:1;case 203:case 200:case 201:case 199:case 202:case 206:case 208:return 1;case 205:switch(n){case 41:case 60:case 61:case 62:case 64:case 63:case 65:case 66:case 67:case 68:case 69:case 70:case 72:case 71:return 1}}return 0}function tn(e){return 205===e.kind?e.operatorToken.kind:203===e.kind||204===e.kind?e.operator:e.kind}function rn(e,n,t){switch(e){case 317:return 0;case 209:return 1;case 208:return 2;case 206:return 4;case 205:switch(n){case 27:return 0;case 60:case 61:case 62:case 64:case 63:case 65:case 66:case 67:case 68:case 69:case 70:case 72:case 71:return 3;default:return an(n)}case 203:case 200:case 201:case 199:case 202:return 16;case 204:return 17;case 192:return 18;case 193:return t?19:18;case 194:case 190:case 191:return 19;case 101:case 99:case 73:case 97:case 103:case 88:case 8:case 9:case 10:case 188:case 189:case 197:case 198:case 210:case 261:case 262:case 265:case 13:case 14:case 207:case 196:case 211:return 20;default:return-1}}function an(e){switch(e){case 55:return 5;case 54:return 6;case 50:return 7;case 51:return 8;case 49:return 9;case 33:case 34:case 35:case 36:return 10;case 28:case 30:case 31:case 32:case 95:case 94:case 120:return 11;case 46:case 47:case 48:return 12;case 38:case 39:return 13;case 40:case 42:case 43:return 14;case 41:return 15}return-1}e.isPartOfTypeNode=q,e.isChildOfNodeWithKind=function(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(n,t){return function n(r){switch(r.kind){case 231:return t(r);case 247:case 219:case 223:case 224:case 225:case 226:case 227:case 228:case 232:case 233:case 272:case 273:case 234:case 236:case 275:return e.forEachChild(r,n)}}(n)},e.forEachYieldExpression=function(n,t){return function n(r){switch(r.kind){case 208:t(r);var a=r.expression;return void(a&&n(a));case 244:case 242:case 245:case 243:case 241:case 210:return;default:if(e.isFunctionLike(r)){if(r.name&&150===r.name.kind)return void n(r.name.expression)}else q(r)||e.forEachChild(r,n)}}(n)},e.getRestParameterElementType=function(n){return n&&170===n.kind?n.elementType:n&&165===n.kind?e.singleOrUndefined(n.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 242:case 241:case 210:case 169:return e.members;case 189:return e.properties}},e.isVariableLike=z,e.isVariableLikeOrAccessor=function(n){return z(n)||e.isAccessor(n)},e.isVariableDeclarationInVariableStatement=X,e.isValidESSymbolDeclaration=function(n){return e.isVariableDeclaration(n)?B(n)&&e.isIdentifier(n.name)&&X(n):e.isPropertyDeclaration(n)?Bn(n)&&Vn(n):e.isPropertySignature(n)&&Bn(n)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 157:case 156:case 158:case 159:case 160:case 240:case 197:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,n){for(;;){if(n&&n(e),234!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(n){return n&&219===n.kind&&e.isFunctionLike(n.parent)},e.isObjectLiteralMethod=function(e){return e&&157===e.kind&&189===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 157===e.kind&&(189===e.parent.kind||210===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=J,e.getTsConfigObjectLiteralExpression=Y,e.getTsConfigPropArrayElementValue=function(n,t,r){return e.firstDefined(Q(n,t),function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,function(n){return e.isStringLiteral(n)&&n.text===r}):void 0})},e.getTsConfigPropArray=Q,e.getContainingFunction=function(n){return l(n.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(n){return l(n.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(n){return l(n.parent,e.isClassLike)},e.getThisContainer=Z,e.getNewTargetContainer=function(e){var n=Z(e,!1);if(n)switch(n.kind){case 158:case 240:case 197:return n}},e.getSuperContainer=function(n,t){for(;;){if(!(n=n.parent))return n;switch(n.kind){case 150:n=n.parent;break;case 240:case 197:case 198:if(!t)continue;case 155:case 154:case 157:case 156:case 158:case 159:case 160:return n;case 153:152===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(197===e.kind||198===e.kind){for(var n=e,t=e.parent;196===t.kind;)n=t,t=t.parent;if(192===t.kind&&t.expression===n)return t}},e.isSuperOrSuperProperty=function(e){return 99===e.kind||$(e)},e.isSuperProperty=$,e.isThisProperty=function(e){var n=e.kind;return(190===n||191===n)&&101===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 165:return e.typeName;case 212:return Yn(e.expression)?e.expression:void 0;case 73:case 149:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 194:return e.tag;case 263:case 262:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=ee,e.nodeIsDecorated=ne,e.nodeOrChildIsDecorated=te,e.childIsDecorated=re,e.isJSXTagName=ae,e.isExpressionNode=ie,e.isInExpressionContext=oe,e.isExternalModuleImportEqualsDeclaration=se,e.getExternalModuleImportEqualsDeclarationExpression=function(n){return e.Debug.assert(se(n)),n.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 249===e.kind&&260!==e.moduleReference.kind},e.isSourceFileJS=le,e.isSourceFileNotJS=function(e){return!ce(e)},e.isInJSFile=ce,e.isInJsonFile=function(e){return!!e&&!!(16777216&e.flags)},e.isInJSDoc=function(e){return!!e&&!!(2097152&e.flags)},e.isJSDocIndexSignature=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&n.typeArguments&&2===n.typeArguments.length&&(139===n.typeArguments[0].kind||136===n.typeArguments[0].kind)},e.isRequireCall=de,e.isSingleOrDoubleQuote=ue,e.isStringDoubleQuoted=function(e,n){return 34===E(n,e).charCodeAt(0)},e.getDeclarationOfExpando=function(n){if(n.parent){var t,r;if(e.isVariableDeclaration(n.parent)&&n.parent.initializer===n){if(!ce(n)&&!B(n.parent))return;t=n.parent.name,r=n.parent}else if(e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.right===n)r=t=n.parent.left;else if(e.isBinaryExpression(n.parent)&&55===n.parent.operatorToken.kind&&(e.isVariableDeclaration(n.parent.parent)&&n.parent.parent.initializer===n.parent?(t=n.parent.parent.name,r=n.parent.parent):e.isBinaryExpression(n.parent.parent)&&60===n.parent.parent.operatorToken.kind&&n.parent.parent.right===n.parent&&(r=t=n.parent.parent.left),!t||!Yn(t)||!fe(t,n.parent.left)))return;if(t&&pe(n,Zn(t)))return r}},e.isAssignmentDeclaration=function(n){return e.isBinaryExpression(n)||e.isPropertyAccessExpression(n)||e.isIdentifier(n)||e.isCallExpression(n)},e.getEffectiveInitializer=me,e.getDeclaredExpandoInitializer=function(e){var n=me(e);return n&&pe(n,Zn(e.name))},e.getAssignedExpandoInitializer=function(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind){var t=Zn(n.parent.left);return pe(n.parent.right,t)||function(n,t,r){var a=e.isBinaryExpression(t)&&55===t.operatorToken.kind&&pe(t.right,r);if(a&&fe(n,t.left))return a}(n.parent.left,n.parent.right,t)}if(n&&e.isCallExpression(n)&&ve(n)){var r=function(n,t){return e.forEach(n.properties,function(n){return e.isPropertyAssignment(n)&&e.isIdentifier(n.name)&&"value"===n.name.escapedText&&n.initializer&&pe(n.initializer,t)})}(n.arguments[2],"prototype"===n.arguments[1].text);if(r)return r}},e.getExpandoInitializer=pe,e.isDefaultedExpandoInitializer=function(n){var t=e.isVariableDeclaration(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind?n.parent.left:void 0;return t&&pe(n.right,Zn(t))&&Yn(t)&&fe(t,n.left)},e.getNameOfExpando=function(n){if(e.isBinaryExpression(n.parent)){var t=55===n.parent.operatorToken.kind&&e.isBinaryExpression(n.parent.parent)?n.parent.parent:n.parent;if(60===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name},e.getRightMostAssignedExpression=function(e){for(;Xn(e,!0);)e=e.right;return e},e.isExportsIdentifier=ge,e.isModuleExportsPropertyAccessExpression=_e,e.getAssignmentDeclarationKind=ye,e.isBindableObjectDefinePropertyCall=ve,e.getAssignmentDeclarationPropertyAccessKind=he,e.getInitializerOfBinaryExpression=be,e.isPrototypePropertyAssignment=function(n){return e.isBinaryExpression(n)&&3===ye(n)},e.isSpecialPropertyDeclaration=function(n){return ce(n)&&n.parent&&222===n.parent.kind&&!!e.getJSDocTypeTag(n.parent)},e.isFunctionSymbol=function(n){if(!n||!n.valueDeclaration)return!1;var t=n.valueDeclaration;return 240===t.kind||e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionLike(t.initializer)},e.importFromModuleSpecifier=function(n){return Ee(n)||e.Debug.failBadSyntaxKind(n.parent)},e.tryGetImportFromModuleSpecifier=Ee,e.getExternalModuleName=function(n){switch(n.kind){case 250:case 256:return n.moduleSpecifier;case 249:return 260===n.moduleReference.kind?n.moduleReference.expression:void 0;case 184:return H(n)?n.argument.literal:void 0;default:return e.Debug.assertNever(n)}},e.getNamespaceDeclarationNode=function(n){switch(n.kind){case 250:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 249:return n;case 256:return;default:return e.Debug.assertNever(n)}},e.isDefaultImport=function(e){return 250===e.kind&&!!e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 152:case 157:case 156:case 277:case 276:case 155:case 154:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(n){var t=e.isJSDocFunctionType(n)?e.firstOrUndefined(n.parameters):void 0,r=e.tryCast(t&&t.name,e.isIdentifier);return!!r&&"new"===r.escapedText},e.isJSDocTypeAlias=Te,e.isTypeAlias=function(n){return Te(n)||e.isTypeAliasDeclaration(n)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Le,e.getJSDocCommentsAndTags=function(n){var t;z(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(t=e.append(t,e.last(n.initializer.jsDoc)));for(var r=n;r&&r.parent;){if(e.hasJSDocNodes(r)&&(t=e.append(t,e.last(r.jsDoc))),152===r.kind){t=e.addRange(t,e.getJSDocParameterTags(r));break}if(151===r.kind){t=e.addRange(t,e.getJSDocTypeParameterTags(r));break}r=Ce(r)}return t||e.emptyArray},e.getParameterSymbolFromJSDoc=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=De(n);if(r){var a=e.find(r.parameters,function(e){return 73===e.name.kind&&e.name.escapedText===t});return a&&a.symbol}}},e.getHostSignatureFromJSDoc=De,e.getHostSignatureFromJSDocHost=Re,e.getJSDocHost=Me,e.getTypeParameterFromJsDoc=function(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===t})},e.hasRestParameter=function(n){var t=e.lastOrUndefined(n.parameters);return!!t&&Ie(t)},e.isRestParameter=Ie,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Oe,e.isAssignmentTarget=function(e){return 0!==Oe(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 219:case 220:case 232:case 223:case 233:case 247:case 272:case 273:case 234:case 226:case 227:case 228:case 224:case 225:case 236:case 275:return!0}return!1},e.isValueSignatureDeclaration=function(n){return e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isMethodOrAccessor(n)||e.isFunctionDeclaration(n)||e.isConstructorDeclaration(n)},e.walkUpParenthesizedTypes=function(e){return ke(e,178)},e.walkUpParenthesizedExpressions=Ne,e.skipParentheses=we,e.isDeleteTarget=function(e){return(190===e.kind||191===e.kind)&&(e=Ne(e.parent))&&199===e.kind},e.isNodeDescendantOf=function(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1},e.isDeclarationName=function(n){return!e.isSourceFile(n)&&!e.isBindingPattern(n)&&e.isDeclaration(n.parent)&&n.parent.name===n},e.getDeclarationFromName=function(n){var t=n.parent;switch(n.kind){case 10:case 8:if(e.isComputedPropertyName(t))return t.parent;case 73:if(e.isDeclaration(t))return t.name===n?t:void 0;if(e.isQualifiedName(t)){var r=t.parent;return e.isJSDocParameterTag(r)&&r.name===t?r:void 0}var a=t.parent;return e.isBinaryExpression(a)&&0!==ye(a)&&(a.left.symbol||a.symbol)&&e.getNameOfDeclaration(a)===n?a:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(n){return(10===n.kind||8===n.kind)&&150===n.parent.kind&&e.isDeclaration(n.parent.parent)},e.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 155:case 154:case 157:case 156:case 159:case 160:case 279:case 276:case 190:return n.name===e;case 149:if(n.right===e){for(;149===n.kind;)n=n.parent;return 168===n.kind||165===n.kind}return!1;case 187:case 254:return n.propertyName===e;case 258:case 268:return!0}return!1},e.isAliasSymbolDeclaration=function(n){return 249===n.kind||248===n.kind||251===n.kind&&!!n.name||252===n.kind||254===n.kind||258===n.kind||255===n.kind&&Pe(n)||e.isBinaryExpression(n)&&2===ye(n)&&Pe(n)},e.exportAssignmentIsAlias=Pe,e.getEffectiveBaseTypeNode=Ge,e.getClassExtendsHeritageElement=Fe,e.getClassImplementsHeritageClauseElements=Ve,e.getAllSuperTypeNodes=function(n){return e.isInterfaceDeclaration(n)?Be(n)||e.emptyArray:e.isClassLike(n)&&e.concatenate(e.singleElementArray(Ge(n)),Ve(n))||e.emptyArray},e.getInterfaceBaseTypeNodes=Be,e.getHeritageClause=Ue,e.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},e.isKeyword=He,e.isContextualKeyword=Ke,e.isNonContextualKeyword=je,e.isFutureReservedKeyword=function(e){return 110<=e&&e<=118},e.isStringANonContextualKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&je(t)},e.isIdentifierANonContextualKeyword=function(e){var n=e.originalKeywordKind;return!!n&&!Ke(n)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var n=0;switch(e.kind){case 240:case 197:case 157:e.asteriskToken&&(n|=1);case 198:Fn(e,256)&&(n|=2)}return e.body||(n|=4),n},e.isAsyncFunction=function(e){switch(e.kind){case 240:case 197:case 198:case 157:return void 0!==e.body&&void 0===e.asteriskToken&&Fn(e,256)}return!1},e.isStringOrNumericLiteralLike=We,e.isSignedNumericLiteral=qe,e.hasDynamicName=ze,e.isDynamicName=Xe,e.isWellKnownSymbolSyntactically=Je,e.getPropertyNameForPropertyNameNode=Ye,e.isPropertyNameLiteral=function(e){switch(e.kind){case 73:case 10:case 14:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(n){return 73===n.kind?e.idText(n):n.text},e.getEscapedTextOfIdentifierOrLiteral=function(n){return 73===n.kind?n.escapedText:e.escapeLeadingUnderscores(n.text)},e.getPropertyNameForKnownSymbolName=Qe,e.isKnownSymbol=function(n){return e.startsWith(n.escapedName,"__@")},e.isESSymbolIdentifier=Ze,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 152===$e(e).kind},e.getRootDeclaration=$e,e.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 158===n||197===n||240===n||198===n||157===n||159===n||160===n||245===n||285===n},e.nodeIsSynthesized=en,e.getOriginalSourceFile=function(n){return e.getParseTreeNode(n,e.isSourceFile)||n},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var n=tn(e),t=193===e.kind&&void 0!==e.arguments;return nn(e.kind,n,t)},e.getOperatorAssociativity=nn,e.getExpressionPrecedence=function(e){var n=tn(e),t=193===e.kind&&void 0!==e.arguments;return rn(e.kind,n,t)},e.getOperator=tn,e.getOperatorPrecedence=rn,e.getBinaryOperatorPrecedence=an,e.createDiagnosticCollection=function(){var n=[],t=[],r=e.createMap(),a=!1;return{add:function(i){var o;i.file?(o=r.get(i.file.fileName))||(o=[],r.set(i.file.fileName,o),e.insertSorted(t,i.file.fileName,e.compareStringsCaseSensitive)):(a&&(a=!1,n=n.slice()),o=n),e.insertSorted(o,i,e.compareDiagnostics)},lookup:function(t){var a;if(a=t.file?r.get(t.file.fileName):n){var i=e.binarySearch(a,t,e.identity,e.compareDiagnosticsSkipRelatedInformation);return i>=0?a[i]:void 0}},getGlobalDiagnostics:function(){return a=!0,n},getDiagnostics:function(a){if(a)return r.get(a)||[];var i=e.flatMapToMutable(t,function(e){return r.get(e)});return n.length?(i.unshift.apply(i,n),i):i},reattachFileDiagnostics:function(n){e.forEach(r.get(n.fileName),function(e){return e.file=n})}}};var on=/\$\{/g;var sn=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ln=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,cn=/[\\\`]/g,dn=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","":"\\u0085"});function un(e,n){var t=96===n?cn:39===n?ln:sn;return e.replace(t,pn)}function mn(e){return ue(e.charCodeAt(0))}function pn(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return dn.get(e)||fn(e.charCodeAt(0))}function fn(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=un,e.stripQuotes=function(e){var n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&mn(e)?e.substring(1,n-1):e},e.startsWithQuote=mn,e.isIntrinsicJsxName=function(n){var t=n.charCodeAt(0);return t>=97&&t<=122||e.stringContains(n,"-")};var gn=/[^\u0000-\u007F]/g;function _n(e,n){return e=un(e,n),gn.test(e)?e.replace(gn,function(e){return fn(e.charCodeAt(0))}):e}e.escapeNonAsciiString=_n;var yn=["","    "];function vn(e){return void 0===yn[e]&&(yn[e]=vn(e-1)+yn[1]),yn[e]}function hn(){return yn[1].length}function bn(e,n,t){return n.moduleName||En(e,n.fileName,t&&t.fileName)}function En(n,t,r){var i=function(e){return n.getCanonicalFileName(e)},o=a(r?e.getDirectoryPath(r):n.getCommonSourceDirectory(),n.getCurrentDirectory(),i),s=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),l=e.getRelativePathToDirectoryOrUrl(o,s,o,i,!1),c=e.removeFileExtension(l);return r?e.ensurePathIsNonModuleName(c):c}function Tn(n,t,r,a,i){var o=t.declarationDir||t.outDir,s=o?An(n,o,r,a,i):n;return e.removeFileExtension(s)+".d.ts"}function Sn(e,n,t,r){return!(n.noEmitForJsFiles&&le(e)||e.isDeclarationFile||t(e)||V(e)&&r(e.fileName))}function Ln(e,n,t){return An(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),function(e){return n.getCanonicalFileName(e)})}function An(n,t,r,a,i){var o=e.getNormalizedAbsolutePath(n,r);return o=0===i(o).indexOf(i(a))?o.substring(a.length):o,e.combinePaths(t,o)}function xn(n,t){return e.getLineAndCharacterOfPosition(n,t).line}function Cn(n,t){return e.computeLineAndCharacterOfPosition(n,t).line}function Dn(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&Rn(e.parameters[0]);return e.parameters[n?1:0]}}function Rn(e){return Mn(e.name)}function Mn(e){return!!e&&73===e.kind&&In(e)}function In(e){return 101===e.originalKeywordKind}function On(n){var t=n.type;return t||!ce(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}function kn(e,n,t,r){Nn(e,n,t.pos,r)}function Nn(e,n,t,r){r&&r.length&&t!==r[0].pos&&Cn(e,t)!==Cn(e,r[0].pos)&&n.writeLine()}function wn(e,n,t,r,a,i,o,s){if(r&&r.length>0){a&&t.writeSpace(" ");for(var l=!1,c=0,d=r;c<d.length;c++){var u=d[c];l&&(t.writeSpace(" "),l=!1),s(e,n,t,u.pos,u.end,o),u.hasTrailingNewLine?t.writeLine():l=!0}l&&i&&t.writeSpace(" ")}}function Pn(e,n,t,r,a,i){var o=Math.min(n,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(t.writeComment(s),o!==n&&t.writeLine()):t.rawWrite(r)}function Gn(n,t,r){for(var a=0;t<r&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));t++)9===n.charCodeAt(t)?a+=hn()-a%hn():a++;return a}function Fn(e,n){return!!Un(e,n)}function Vn(e){return Fn(e,32)}function Bn(e){return Fn(e,64)}function Un(e,n){return Hn(e)&n}function Hn(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|=jn(r[t].kind)}return(4&e.flags||73===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function jn(e){switch(e){case 117:return 32;case 116:return 4;case 115:return 16;case 114:return 8;case 119:return 128;case 86:return 1;case 126:return 2;case 78:return 2048;case 81:return 512;case 122:return 256;case 134:return 64}return 0}function Wn(e){return e>=60&&e<=72}function qn(e){var n=zn(e);return n&&!n.isImplements?n.class:void 0}function zn(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:110===n.parent.token}:void 0}function Xn(n,t){return e.isBinaryExpression(n)&&(t?60===n.operatorToken.kind:Wn(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function Jn(e){return void 0!==qn(e)}function Yn(e){return 73===e.kind||Qn(e)}function Qn(n){return e.isPropertyAccessExpression(n)&&Yn(n.expression)}function Zn(n){return e.isPropertyAccessExpression(n)&&"prototype"===n.name.escapedText}e.getIndentString=vn,e.getIndentSize=hn,e.createTextWriter=function(n){var t,r,a,i,o;function s(n){var r=e.computeLineStarts(n);r.length>1?(i=i+r.length-1,o=t.length-n.length+e.last(r),a=o-t.length==0):a=!1}function l(e){e&&e.length&&(a&&(e=vn(r)+e,a=!1),t+=e,s(e))}function c(){t="",r=0,a=!0,i=0,o=0}return c(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e))},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(){a||(i++,o=(t+=n).length,a=!0)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return i},getColumn:function(){return a?r*hn():t.length-o},getText:function(){return t},isAtStartOfLine:function(){return a},clear:c,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,n){return l(e)},writeTrailingSemicolon:l,writeComment:l,getTextPosWithWriteLine:function(){return a?t.length:t.length+n.length}}},e.getTrailingSemicolonOmittingWriter=function(e){var n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return s(s({},e),{writeTrailingSemicolon:function(){n=!0},writeLiteral:function(n){t(),e.writeLiteral(n)},writeStringLiteral:function(n){t(),e.writeStringLiteral(n)},writeSymbol:function(n,r){t(),e.writeSymbol(n,r)},writePunctuation:function(n){t(),e.writePunctuation(n)},writeKeyword:function(n){t(),e.writeKeyword(n)},writeOperator:function(n){t(),e.writeOperator(n)},writeParameter:function(n){t(),e.writeParameter(n)},writeSpace:function(n){t(),e.writeSpace(n)},writeProperty:function(n){t(),e.writeProperty(n)},writeComment:function(n){t(),e.writeComment(n)},writeLine:function(){t(),e.writeLine()},increaseIndent:function(){t(),e.increaseIndent()},decreaseIndent:function(){t(),e.decreaseIndent()}})},e.getResolvedExternalModuleName=bn,e.getExternalModuleNameFromDeclaration=function(e,n,t){var r=n.getExternalModuleFileFromDeclaration(t);if(r&&!r.isDeclarationFile)return bn(e,r)},e.getExternalModuleNameFromPath=En,e.getOwnEmitOutputFilePath=function(n,t,r){var a=t.getCompilerOptions();return(a.outDir?e.removeFileExtension(Ln(n,t,a.outDir)):e.removeFileExtension(n))+r},e.getDeclarationEmitOutputFilePath=function(e,n){return Tn(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),function(e){return n.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=Tn,e.getSourceFilesToEmit=function(n,t){var r=n.getCompilerOptions(),a=function(e){return n.isSourceFileFromExternalLibrary(e)},i=function(e){return n.getResolvedProjectReferenceToRedirect(e)};if(r.outFile||r.out){var o=e.getEmitModuleKind(r),s=r.emitDeclarationOnly||o===e.ModuleKind.AMD||o===e.ModuleKind.System;return e.filter(n.getSourceFiles(),function(n){return(s||!e.isExternalModule(n))&&Sn(n,r,a,i)})}var l=void 0===t?n.getSourceFiles():[t];return e.filter(l,function(e){return Sn(e,r,a,i)})},e.sourceFileMayBeEmitted=Sn,e.getSourceFilePathInNewDir=Ln,e.getSourceFilePathInNewDirWorker=An,e.writeFile=function(n,t,r,a,i,o){n.writeFile(r,a,i,function(n){t.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))},o)},e.getLineOfLocalPosition=xn,e.getLineOfLocalPositionFromLineMap=Cn,e.getFirstConstructorWithBody=function(n){return e.find(n.members,function(n){return e.isConstructorDeclaration(n)&&g(n.body)})},e.getSetAccessorValueParameter=Dn,e.getSetAccessorTypeAnnotationNode=function(e){var n=Dn(e);return n&&n.type},e.getThisParameter=function(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(Rn(t))return t}},e.parameterIsThisKeyword=Rn,e.isThisIdentifier=Mn,e.identifierIsThisKeyword=In,e.getAllAccessorDeclarations=function(n,t){var r,a,i,o;return ze(t)?(r=t,159===t.kind?i=t:160===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,function(n){e.isAccessor(n)&&Fn(n,32)===Fn(t,32)&&Ye(n.name)===Ye(t.name)&&(r?a||(a=n):r=n,159!==n.kind||i||(i=n),160!==n.kind||o||(o=n))}),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}},e.getEffectiveTypeAnnotationNode=On,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(n){return e.isJSDocSignature(n)?n.type&&n.type.typeExpression&&n.type.typeExpression.type:n.type||(ce(n)?e.getJSDocReturnType(n):void 0)},e.getJSDocTypeParameterDeclarations=function(n){return e.flatMap(e.getJSDocTags(n),function(n){return function(n){return e.isJSDocTemplateTag(n)&&!(298===n.parent.kind&&n.parent.tags.some(Te))}(n)?n.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=Dn(e);return n&&On(n)},e.emitNewLineBeforeLeadingComments=kn,e.emitNewLineBeforeLeadingCommentsOfPosition=Nn,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&Cn(e,t)!==Cn(e,r)&&n.writeLine()},e.emitComments=wn,e.emitDetachedComments=function(n,t,r,a,i,o,s){var l,c;if(s?0===i.pos&&(l=e.filter(e.getLeadingCommentRanges(n,i.pos),function(e){return h(n,e.pos)})):l=e.getLeadingCommentRanges(n,i.pos),l){for(var d=[],u=void 0,m=0,p=l;m<p.length;m++){var f=p[m];if(u){var g=Cn(t,u.end);if(Cn(t,f.pos)>=g+2)break}d.push(f),u=f}d.length&&(g=Cn(t,e.last(d).end),Cn(t,e.skipTrivia(n,i.pos))>=g+2&&(kn(t,r,i,l),wn(n,t,r,d,!1,!0,o,a),c={nodePos:i.pos,detachedCommentEndPos:e.last(d).end}))}return c},e.writeCommentRange=function(n,t,r,a,i,o){if(42===n.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(t,a),l=t.length,c=void 0,d=a,u=s.line;d<i;u++){var m=u+1===l?n.length+1:t[u+1];if(d!==a){void 0===c&&(c=Gn(n,t[s.line],a));var p=r.getIndent()*hn()-c+Gn(n,d,m);if(p>0){var f=p%hn(),g=vn((p-f)/hn());for(r.rawWrite(g);f;)r.rawWrite(" "),f--}else r.rawWrite("")}Pn(n,i,r,o,d,m),d=m}else r.writeComment(n.substring(a,i))},e.hasModifiers=function(e){return 0!==Hn(e)},e.hasModifier=Fn,e.hasStaticModifier=Vn,e.hasReadonlyModifier=Bn,e.getSelectedModifierFlags=Un,e.getModifierFlags=Hn,e.getModifierFlagsNoCache=Kn,e.modifierToFlag=jn,e.isLogicalOperator=function(e){return 55===e||54===e||52===e},e.isAssignmentOperator=Wn,e.tryGetClassExtendingExpressionWithTypeArguments=qn,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zn,e.isAssignmentExpression=Xn,e.isDestructuringAssignment=function(e){if(Xn(e,!0)){var n=e.left.kind;return 189===n||188===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Jn,e.isEntityNameExpression=Yn,e.isPropertyAccessEntityNameExpression=Qn,e.tryGetPropertyAccessOrIdentifierToString=function n(t){return e.isPropertyAccessExpression(t)?n(t.expression)+"."+t.name:e.isIdentifier(t)?e.unescapeLeadingUnderscores(t.escapedText):void 0},e.isPrototypeAccess=Zn,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 149===e.parent.kind&&e.parent.right===e||190===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 189===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 188===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(n){return function(n){return n&&e.length(n.declarations)>0&&Fn(n.declarations[0],512)}(n)?n.declarations[0].localSymbol:void 0},e.tryExtractTSExtension=function(n){return e.find(e.supportedTSExtensionsForExtractExtension,function(t){return e.fileExtensionIs(n,t)})};var $n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function et(n){for(var t,r,a,i,o="",s=function(n){for(var t=[],r=n.length,a=0;a<r;a++){var i=n.charCodeAt(a);i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i<131072?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point")}return t}(n),l=0,c=s.length;l<c;)t=s[l]>>2,r=(3&s[l])<<4|s[l+1]>>4,a=(15&s[l+1])<<2|s[l+2]>>6,i=63&s[l+2],l+1>=c?a=i=64:l+2>=c&&(i=64),o+=$n.charAt(t)+$n.charAt(r)+$n.charAt(a)+$n.charAt(i),l+=3;return o}e.convertToBase64=et,e.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):et(n)},e.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)!==$n.charCodeAt(64);){var i=$n.indexOf(n[a]),o=$n.indexOf(n[a+1]),s=$n.indexOf(n[a+2]),l=$n.indexOf(n[a+3]),c=(63&i)<<2|o>>4&3,d=(15&o)<<4|s>>2&15,u=(3&s)<<6|63&l;0===d&&0!==s?r.push(c):0===u&&0!==l?r.push(c,d):r.push(c,d,u),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)},e.readJson=function(n,t){try{var r=t.readFile(n);if(!r)return{};var a=e.parseConfigFileTextToJson(n,r);return a.error?{}:a.config}catch(e){return{}}},e.directoryProbablyExists=function(e,n){return!n.directoryExists||n.directoryExists(e)};var nt,tt="\r\n",rt="\n";function at(n,t){return void 0===t&&(t=n),e.Debug.assert(t>=n||-1===t),{pos:n,end:t}}function it(e,n){return at(n,e.end)}function ot(e){return e.decorators&&e.decorators.length>0?it(e,e.decorators.end):e}function st(e,n,t){return lt(ct(e,t),n.end,t)}function lt(e,n,t){return e===n||xn(t,e)===xn(t,n)}function ct(n,t){return e.positionIsSynthesized(n.pos)?-1:e.skipTrivia(t.text,n.pos)}function dt(e){return void 0!==e.initializer}function ut(e){return 33554432&e.flags?e.checkFlags:0}function mt(n){var t=n.parent;if(!t)return 0;switch(t.kind){case 196:return mt(t);case 204:case 203:var r=t.operator;return 44===r||45===r?l():0;case 205:var a=t,i=a.left,o=a.operatorToken;return i===n&&Wn(o.kind)?60===o.kind?1:l():0;case 190:return t.name!==n?0:mt(t);case 276:var s=mt(t.parent);return n===t.name?function(n){switch(n){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(n)}}(s):s;case 277:return n===t.objectAssignmentInitializer?0:mt(t.parent);case 188:return mt(t);default:return 0}function l(){return t.parent&&222===function(e){for(;196===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function pt(e,n,t){var r=t.onDeleteValue,a=t.onExistingValue;e.forEach(function(t,i){var o=n.get(i);void 0===o?(e.delete(i),r(t,i)):a&&a(t,o,i)})}function ft(n,t){for(;;){var r=t(n);if(void 0!==r)return r;var a=e.getDirectoryPath(n);if(a===n)return;n=a}}function gt(e){if(32&e.flags){var n=_t(e);return!!n&&Fn(n,128)}return!1}function _t(n){return e.find(n.declarations,e.isClassLike)}function yt(e){return 3899392&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(n,t){switch(n.newLine){case 0:return tt;case 1:return rt}return t?t():e.sys?e.sys.newLine:tt},e.createRange=at,e.moveRangeEnd=function(e,n){return at(e.pos,n)},e.moveRangePos=it,e.moveRangePastDecorators=ot,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?it(e,e.modifiers.end):ot(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return at(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return st(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return lt(ct(e,t),ct(n,t),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return lt(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=st,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return lt(e.end,ct(n,t),t)},e.isNodeArrayMultiLine=function(e,n){return!lt(e.pos,e.end,n)},e.positionsAreOnSameLine=lt,e.getStartPositionOfRange=ct,e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 244:case 245:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,dt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=ut,e.getDeclarationModifierFlagsFromSymbol=function(n){if(n.valueDeclaration){var t=e.getCombinedModifierFlags(n.valueDeclaration);return n.parent&&32&n.parent.flags?t:-29&t}if(6&ut(n)){var r=n.checkFlags;return(1024&r?8:256&r?4:16)|(2048&r?32:0)}return 4194304&n.flags?36:0},e.skipAlias=function(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===mt(e)},e.isWriteAccess=function(e){return 0!==mt(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(nt||(nt={})),e.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},e.clearMap=function(e,n){e.forEach(n),e.clear()},e.mutateMapSkippingNewValues=pt,e.mutateMap=function(e,n,t){pt(e,n,t);var r=t.createNewValue;n.forEach(function(n,t){e.has(t)||e.set(t,r(t,n))})},e.forEachAncestorDirectory=ft,e.isAbstractConstructorType=function(e){return!!(16&yt(e))&&!!e.symbol&&gt(e.symbol)},e.isAbstractConstructorSymbol=gt,e.getClassLikeDeclarationOfSymbol=_t,e.getObjectFlags=yt,e.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,n){return!!ft(e,function(e){return!!n(e)||void 0})},e.isUMDExportSymbol=function(n){return!!n&&!!n.declarations&&!!n.declarations[0]&&e.isNamespaceExportDeclaration(n.declarations[0])},e.showModuleSpecifier=function(n){var t=n.moduleSpecifier;return e.isStringLiteral(t)?t.text:S(t)},e.getLastChild=function(n){var t;return e.forEachChild(n,function(e){g(e)&&(t=e)},function(e){for(var n=e.length-1;n>=0;n--)if(g(e[n])){t=e[n];break}}),t},e.addToSeen=function(e,n,t){return void 0===t&&(t=!0),n=String(n),!e.has(n)&&(e.set(n,t),!0)},e.isObjectTypeDeclaration=function(n){return e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isTypeLiteralNode(n)},e.isTypeNodeKind=function(e){return e>=164&&e<=184||121===e||144===e||136===e||147===e||137===e||124===e||139===e||140===e||101===e||107===e||142===e||97===e||133===e||212===e||290===e||291===e||292===e||293===e||294===e||295===e||296===e},e.isAccessExpression=function(e){return 190===e.kind||191===e.kind},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}}(u||(u={})),function(e){function n(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,n){var t=i(e,n);return t&&0===t.length?void 0:t}function a(e,n,t,r){return t<=e+n&&t+r>=e}function i(e,t){var r=Math.max(e.start,t.start),a=Math.min(n(e),n(t));return r<=a?s(r,a):void 0}function o(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function s(e,n){return o(e,n-e)}function l(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function c(n){return!!e.isBindingPattern(n)&&e.every(n.elements,d)}function d(n){return!!e.isOmittedExpression(n)||c(n.name)}function u(n){for(var t=n.parent;e.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function m(n,t){e.isBindingElement(n)&&(n=u(n));var r=t(n);return 238===n.kind&&(n=n.parent),n&&239===n.kind&&(r|=t(n),n=n.parent),n&&220===n.kind&&(r|=t(n)),r}function p(e,n){if(e)for(;void 0!==e.original;)e=e.original;return!n||n(e)?e:void 0}function f(e){return 0==(8&e.flags)}function g(e){var n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function _(n){var t=n.parent.parent;if(t){if(e.isDeclaration(t))return y(t);switch(t.kind){case 220:if(t.declarationList&&t.declarationList.declarations[0])return y(t.declarationList.declarations[0]);break;case 222:var r=t.expression;switch(205===r.kind&&60===r.operatorToken.kind&&(r=r.left),r.kind){case 190:return r.name;case 191:var a=r.argumentExpression;if(e.isIdentifier(a))return a}break;case 196:return y(t.expression);case 234:if(e.isDeclaration(t.statement)||e.isExpression(t.statement))return y(t.statement)}}}function y(n){var t=b(n);return t&&e.isIdentifier(t)?t:void 0}function v(e){return e.name||_(e)}function h(n){switch(n.kind){case 73:return n;case 313:case 307:var t=n.name;if(149===t.kind)return t.right;break;case 192:case 205:var r=n;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return r.left.name;case 7:case 8:case 9:return r.arguments[1];default:return}case 312:return v(n);case 306:return _(n);case 255:var a=n.expression;return e.isIdentifier(a)?a:void 0}return n.name}function b(n){if(void 0!==n)return h(n)||(e.isFunctionExpression(n)||e.isClassExpression(n)?function(n){if(!n.parent)return;if(e.isPropertyAssignment(n.parent)||e.isBindingElement(n.parent))return n.parent.name;if(e.isBinaryExpression(n.parent)&&n===n.parent.right){if(e.isIdentifier(n.parent.left))return n.parent.left;if(e.isPropertyAccessExpression(n.parent.left))return n.parent.left.name}else if(e.isVariableDeclaration(n.parent)&&e.isIdentifier(n.parent.name))return n.parent.name}(n):void 0)}function E(n){if(n.name){if(e.isIdentifier(n.name)){var t=n.name.escapedText;return A(n.parent).filter(function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===t})}var r=n.parent.parameters.indexOf(n);e.Debug.assert(r>-1,"Parameters should always be in their parents' parameter list");var a=A(n.parent).filter(e.isJSDocParameterTag);if(r<a.length)return[a[r]]}return e.emptyArray}function T(n){return x(n,e.isJSDocReturnTag)}function S(n){var t=x(n,e.isJSDocTypeTag);if(t&&t.typeExpression&&t.typeExpression.type)return t}function L(n){var t=x(n,e.isJSDocTypeTag);return!t&&e.isParameter(n)&&(t=e.find(E(n),function(e){return!!e.typeExpression})),t&&t.typeExpression&&t.typeExpression.type}function A(n){var t=n.jsDocCache;if(void 0===t){var r=e.getJSDocCommentsAndTags(n);e.Debug.assert(r.length<2||r[0]!==r[1]),n.jsDocCache=t=e.flatMap(r,function(n){return e.isJSDoc(n)?n.tags:n})}return t}function x(n,t){return e.find(A(n),t)}e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=n,e.textSpanIsEmpty=t,e.textSpanContainsPosition=function(e,t){return t>=e.start&&t<n(e)},e.textRangeContainsPositionInclusive=function(e,n){return n>=e.pos&&n<=e.end},e.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&n(t)<=n(e)},e.textSpanOverlapsWith=function(e,n){return void 0!==r(e,n)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,n){return a(e.start,e.length,n.start,n.length)},e.textSpanIntersectsWith=function(e,n,t){return a(e.start,e.length,n,t)},e.decodedTextSpanIntersectsWith=a,e.textSpanIntersectsWithPosition=function(e,t){return t<=n(e)&&t>=e.start},e.textSpanIntersection=i,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},e.createTextChangeRange=l,e.unchangedTextChangeRange=l(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],a=r.span.start,i=n(r.span),o=a+r.newLength,c=1;c<t.length;c++){var d=t[c],u=a,m=i,p=o,f=d.span.start,g=n(d.span),_=f+d.newLength;a=Math.min(u,f),i=Math.max(m,m+(g-p)),o=Math.max(_,_+(p-g))}return l(s(a,i),o-a)},e.getTypeParameterOwner=function(n){if(n&&151===n.kind)for(var t=n;t;t=t.parent)if(e.isFunctionLike(t)||e.isClassLike(t)||242===t.kind)return t},e.isParameterPropertyDeclaration=function(n){return e.hasModifier(n,92)&&158===n.parent.kind},e.isEmptyBindingPattern=c,e.isEmptyBindingElement=d,e.walkUpBindingElementsAndPatterns=u,e.getCombinedModifierFlags=function(n){return m(n,e.getModifierFlags)},e.getCombinedNodeFlags=function(e){return m(e,function(e){return e.flags})},e.validateLocaleAndSetLanguage=function(n,t,r){var a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(n.toLowerCase());if(a){var i=a[1];o(i,a[3],r)||o(i,void 0,r),e.setUILocale(n)}else r&&r.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function o(n,r,a){var i=e.normalizePath(t.getExecutingFilePath()),o=e.getDirectoryPath(i),s=e.combinePaths(o,n);if(r&&(s=s+"-"+r),s=t.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!t.fileExists(s))return!1;var l="";try{l=t.readFile(s)}catch(n){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(l)}catch(n){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=p,e.isParseTreeNode=f,e.getParseTreeNode=function(e,n){return void 0===e||f(e)?e:!f(e=p(e))||n&&!n(e)?void 0:e},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=g,e.idText=function(e){return g(e.escapedText)},e.symbolName=function(e){return g(e.escapedName)},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=function(e){return!!e.name},e.getNonAssignedNameOfDeclaration=h,e.getNameOfDeclaration=b,e.getJSDocParameterTags=E,e.getJSDocTypeParameterTags=function(n){var t=n.name.escapedText;return A(n.parent).filter(function(n){return e.isJSDocTemplateTag(n)&&n.typeParameters.some(function(e){return e.name.escapedText===t})})},e.hasJSDocParameterTags=function(n){return!!x(n,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(n){return x(n,e.isJSDocAugmentsTag)},e.getJSDocClassTag=function(n){return x(n,e.isJSDocClassTag)},e.getJSDocEnumTag=function(n){return x(n,e.isJSDocEnumTag)},e.getJSDocThisTag=function(n){return x(n,e.isJSDocThisTag)},e.getJSDocReturnTag=T,e.getJSDocTemplateTag=function(n){return x(n,e.isJSDocTemplateTag)},e.getJSDocTypeTag=S,e.getJSDocType=L,e.getJSDocReturnType=function(n){var t=T(n);if(t&&t.typeExpression)return t.typeExpression.type;var r=S(n);if(r&&r.typeExpression){var a=r.typeExpression.type;if(e.isTypeLiteralNode(a)){var i=e.find(a.members,e.isCallSignatureDeclaration);return i&&i.type}if(e.isFunctionTypeNode(a))return a.type}},e.getJSDocTags=A,e.getAllJSDocTagsOfKind=function(e,n){return A(e).filter(function(e){return e.kind===n})},e.getEffectiveTypeParameterDeclarations=function(n){if(e.isJSDocSignature(n))return e.emptyArray;if(e.isJSDocTypeAlias(n))return e.Debug.assert(298===n.parent.kind),e.flatMap(n.parent.tags,function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0});if(n.typeParameters)return n.typeParameters;if(e.isInJSFile(n)){var t=e.getJSDocTypeParameterDeclarations(n);if(t.length)return t;var r=L(n);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(n){return n.constraint?n.constraint:e.isJSDocTemplateTag(n.parent)&&n===n.parent.typeParameters[0]?n.parent.constraint:void 0}}(u||(u={})),function(e){function n(e){return 73===e.kind}function t(e){return 165===e.kind}function r(e){switch(e.kind){case 282:case 283:return!0;default:return!1}}e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=n,e.isQualifiedName=function(e){return 149===e.kind},e.isComputedPropertyName=function(e){return 150===e.kind},e.isTypeParameterDeclaration=function(e){return 151===e.kind},e.isParameter=function(e){return 152===e.kind},e.isDecorator=function(e){return 153===e.kind},e.isPropertySignature=function(e){return 154===e.kind},e.isPropertyDeclaration=function(e){return 155===e.kind},e.isMethodSignature=function(e){return 156===e.kind},e.isMethodDeclaration=function(e){return 157===e.kind},e.isConstructorDeclaration=function(e){return 158===e.kind},e.isGetAccessorDeclaration=function(e){return 159===e.kind},e.isSetAccessorDeclaration=function(e){return 160===e.kind},e.isCallSignatureDeclaration=function(e){return 161===e.kind},e.isConstructSignatureDeclaration=function(e){return 162===e.kind},e.isIndexSignatureDeclaration=function(e){return 163===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 160===e.kind||159===e.kind},e.isTypePredicateNode=function(e){return 164===e.kind},e.isTypeReferenceNode=t,e.isFunctionTypeNode=function(e){return 166===e.kind},e.isConstructorTypeNode=function(e){return 167===e.kind},e.isTypeQueryNode=function(e){return 168===e.kind},e.isTypeLiteralNode=function(e){return 169===e.kind},e.isArrayTypeNode=function(e){return 170===e.kind},e.isTupleTypeNode=function(e){return 171===e.kind},e.isUnionTypeNode=function(e){return 174===e.kind},e.isIntersectionTypeNode=function(e){return 175===e.kind},e.isConditionalTypeNode=function(e){return 176===e.kind},e.isInferTypeNode=function(e){return 177===e.kind},e.isParenthesizedTypeNode=function(e){return 178===e.kind},e.isThisTypeNode=function(e){return 179===e.kind},e.isTypeOperatorNode=function(e){return 180===e.kind},e.isIndexedAccessTypeNode=function(e){return 181===e.kind},e.isMappedTypeNode=function(e){return 182===e.kind},e.isLiteralTypeNode=function(e){return 183===e.kind},e.isImportTypeNode=function(e){return 184===e.kind},e.isObjectBindingPattern=function(e){return 185===e.kind},e.isArrayBindingPattern=function(e){return 186===e.kind},e.isBindingElement=function(e){return 187===e.kind},e.isArrayLiteralExpression=function(e){return 188===e.kind},e.isObjectLiteralExpression=function(e){return 189===e.kind},e.isPropertyAccessExpression=function(e){return 190===e.kind},e.isElementAccessExpression=function(e){return 191===e.kind},e.isCallExpression=function(e){return 192===e.kind},e.isNewExpression=function(e){return 193===e.kind},e.isTaggedTemplateExpression=function(e){return 194===e.kind},e.isTypeAssertion=function(e){return 195===e.kind},e.isConstTypeReference=function(e){return t(e)&&n(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},e.isParenthesizedExpression=function(e){return 196===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;316===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 197===e.kind},e.isArrowFunction=function(e){return 198===e.kind},e.isDeleteExpression=function(e){return 199===e.kind},e.isTypeOfExpression=function(e){return 200===e.kind},e.isVoidExpression=function(e){return 201===e.kind},e.isAwaitExpression=function(e){return 202===e.kind},e.isPrefixUnaryExpression=function(e){return 203===e.kind},e.isPostfixUnaryExpression=function(e){return 204===e.kind},e.isBinaryExpression=function(e){return 205===e.kind},e.isConditionalExpression=function(e){return 206===e.kind},e.isTemplateExpression=function(e){return 207===e.kind},e.isYieldExpression=function(e){return 208===e.kind},e.isSpreadElement=function(e){return 209===e.kind},e.isClassExpression=function(e){return 210===e.kind},e.isOmittedExpression=function(e){return 211===e.kind},e.isExpressionWithTypeArguments=function(e){return 212===e.kind},e.isAsExpression=function(e){return 213===e.kind},e.isNonNullExpression=function(e){return 214===e.kind},e.isMetaProperty=function(e){return 215===e.kind},e.isTemplateSpan=function(e){return 217===e.kind},e.isSemicolonClassElement=function(e){return 218===e.kind},e.isBlock=function(e){return 219===e.kind},e.isVariableStatement=function(e){return 220===e.kind},e.isEmptyStatement=function(e){return 221===e.kind},e.isExpressionStatement=function(e){return 222===e.kind},e.isIfStatement=function(e){return 223===e.kind},e.isDoStatement=function(e){return 224===e.kind},e.isWhileStatement=function(e){return 225===e.kind},e.isForStatement=function(e){return 226===e.kind},e.isForInStatement=function(e){return 227===e.kind},e.isForOfStatement=function(e){return 228===e.kind},e.isContinueStatement=function(e){return 229===e.kind},e.isBreakStatement=function(e){return 230===e.kind},e.isBreakOrContinueStatement=function(e){return 230===e.kind||229===e.kind},e.isReturnStatement=function(e){return 231===e.kind},e.isWithStatement=function(e){return 232===e.kind},e.isSwitchStatement=function(e){return 233===e.kind},e.isLabeledStatement=function(e){return 234===e.kind},e.isThrowStatement=function(e){return 235===e.kind},e.isTryStatement=function(e){return 236===e.kind},e.isDebuggerStatement=function(e){return 237===e.kind},e.isVariableDeclaration=function(e){return 238===e.kind},e.isVariableDeclarationList=function(e){return 239===e.kind},e.isFunctionDeclaration=function(e){return 240===e.kind},e.isClassDeclaration=function(e){return 241===e.kind},e.isInterfaceDeclaration=function(e){return 242===e.kind},e.isTypeAliasDeclaration=function(e){return 243===e.kind},e.isEnumDeclaration=function(e){return 244===e.kind},e.isModuleDeclaration=function(e){return 245===e.kind},e.isModuleBlock=function(e){return 246===e.kind},e.isCaseBlock=function(e){return 247===e.kind},e.isNamespaceExportDeclaration=function(e){return 248===e.kind},e.isImportEqualsDeclaration=function(e){return 249===e.kind},e.isImportDeclaration=function(e){return 250===e.kind},e.isImportClause=function(e){return 251===e.kind},e.isNamespaceImport=function(e){return 252===e.kind},e.isNamedImports=function(e){return 253===e.kind},e.isImportSpecifier=function(e){return 254===e.kind},e.isExportAssignment=function(e){return 255===e.kind},e.isExportDeclaration=function(e){return 256===e.kind},e.isNamedExports=function(e){return 257===e.kind},e.isExportSpecifier=function(e){return 258===e.kind},e.isMissingDeclaration=function(e){return 259===e.kind},e.isExternalModuleReference=function(e){return 260===e.kind},e.isJsxElement=function(e){return 261===e.kind},e.isJsxSelfClosingElement=function(e){return 262===e.kind},e.isJsxOpeningElement=function(e){return 263===e.kind},e.isJsxClosingElement=function(e){return 264===e.kind},e.isJsxFragment=function(e){return 265===e.kind},e.isJsxOpeningFragment=function(e){return 266===e.kind},e.isJsxClosingFragment=function(e){return 267===e.kind},e.isJsxAttribute=function(e){return 268===e.kind},e.isJsxAttributes=function(e){return 269===e.kind},e.isJsxSpreadAttribute=function(e){return 270===e.kind},e.isJsxExpression=function(e){return 271===e.kind},e.isCaseClause=function(e){return 272===e.kind},e.isDefaultClause=function(e){return 273===e.kind},e.isHeritageClause=function(e){return 274===e.kind},e.isCatchClause=function(e){return 275===e.kind},e.isPropertyAssignment=function(e){return 276===e.kind},e.isShorthandPropertyAssignment=function(e){return 277===e.kind},e.isSpreadAssignment=function(e){return 278===e.kind},e.isEnumMember=function(e){return 279===e.kind},e.isSourceFile=function(e){return 285===e.kind},e.isBundle=function(e){return 286===e.kind},e.isUnparsedSource=function(e){return 287===e.kind},e.isUnparsedPrepend=function(e){return 281===e.kind},e.isUnparsedTextLike=r,e.isUnparsedNode=function(e){return r(e)||280===e.kind||284===e.kind},e.isJSDocTypeExpression=function(e){return 289===e.kind},e.isJSDocAllType=function(e){return 290===e.kind},e.isJSDocUnknownType=function(e){return 291===e.kind},e.isJSDocNullableType=function(e){return 292===e.kind},e.isJSDocNonNullableType=function(e){return 293===e.kind},e.isJSDocOptionalType=function(e){return 294===e.kind},e.isJSDocFunctionType=function(e){return 295===e.kind},e.isJSDocVariadicType=function(e){return 296===e.kind},e.isJSDoc=function(e){return 298===e.kind},e.isJSDocAuthorTag=function(e){return 303===e.kind},e.isJSDocAugmentsTag=function(e){return 302===e.kind},e.isJSDocClassTag=function(e){return 304===e.kind},e.isJSDocEnumTag=function(e){return 306===e.kind},e.isJSDocThisTag=function(e){return 309===e.kind},e.isJSDocParameterTag=function(e){return 307===e.kind},e.isJSDocReturnTag=function(e){return 308===e.kind},e.isJSDocTypeTag=function(e){return 310===e.kind},e.isJSDocTemplateTag=function(e){return 311===e.kind},e.isJSDocTypedefTag=function(e){return 312===e.kind},e.isJSDocPropertyTag=function(e){return 313===e.kind},e.isJSDocPropertyLikeTag=function(e){return 313===e.kind||307===e.kind},e.isJSDocTypeLiteral=function(e){return 299===e.kind},e.isJSDocCallbackTag=function(e){return 305===e.kind},e.isJSDocSignature=function(e){return 300===e.kind}}(u||(u={})),function(e){function n(e){return e>=149}function t(e){return 8<=e&&e<=14}function r(e){return 14<=e&&e<=17}function a(e){switch(e){case 119:case 122:case 78:case 126:case 81:case 86:case 116:case 114:case 115:case 134:case 117:return!0}return!1}function i(n){return!!(92&e.modifierToFlag(n))}function o(e){return e&&l(e.kind)}function s(e){switch(e){case 240:case 157:case 158:case 159:case 160:case 197:case 198:return!0;default:return!1}}function l(e){switch(e){case 156:case 161:case 300:case 162:case 163:case 166:case 295:case 167:return!0;default:return s(e)}}function c(e){var n=e.kind;return 158===n||155===n||157===n||159===n||160===n||163===n||218===n}function d(e){var n=e.kind;return 162===n||161===n||154===n||156===n||163===n}function u(e){var n=e.kind;return 276===n||277===n||278===n||157===n||159===n||160===n}function m(e){switch(e.kind){case 185:case 189:return!0}return!1}function p(e){switch(e.kind){case 186:case 188:return!0}return!1}function f(e){switch(e){case 190:case 191:case 193:case 192:case 261:case 262:case 265:case 194:case 188:case 196:case 189:case 210:case 197:case 73:case 13:case 8:case 9:case 10:case 14:case 207:case 88:case 97:case 101:case 103:case 99:case 214:case 215:case 93:return!0;default:return!1}}function g(e){switch(e){case 203:case 204:case 199:case 200:case 201:case 202:case 195:return!0;default:return f(e)}}function _(n){return function(e){switch(e){case 206:case 208:case 198:case 205:case 209:case 213:case 211:case 317:case 316:return!0;default:return g(e)}}(e.skipPartiallyEmittedExpressions(n).kind)}function y(e){return 316===e.kind}function v(e){return 315===e.kind}function h(e){return 240===e||259===e||241===e||242===e||243===e||244===e||245===e||250===e||249===e||256===e||255===e||248===e}function b(e){return 230===e||229===e||237===e||224===e||222===e||221===e||227===e||228===e||226===e||223===e||234===e||231===e||233===e||235===e||236===e||220===e||225===e||232===e||315===e||319===e||318===e}function E(e){return e.kind>=301&&e.kind<=313}function T(e){return!!e.initializer}e.isSyntaxList=function(e){return 314===e.kind},e.isNode=function(e){return n(e.kind)},e.isNodeKind=n,e.isToken=function(e){return e.kind>=0&&e.kind<=148},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=t,e.isLiteralExpression=function(e){return t(e.kind)},e.isTemplateLiteralKind=r,e.isTemplateLiteralToken=function(e){return r(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 16===n||17===n},e.isImportOrExportSpecifier=function(n){return e.isImportSpecifier(n)||e.isExportSpecifier(n)},e.isStringTextContainingNode=function(e){return 10===e.kind||r(e.kind)},e.isGeneratedIdentifier=function(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0},e.isModifierKind=a,e.isParameterPropertyModifier=i,e.isClassMemberModifier=function(e){return i(e)||117===e},e.isModifier=function(e){return a(e.kind)},e.isEntityName=function(e){var n=e.kind;return 149===n||73===n},e.isPropertyName=function(e){var n=e.kind;return 73===n||10===n||8===n||150===n},e.isBindingName=function(e){var n=e.kind;return 73===n||185===n||186===n},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=l,e.isFunctionOrModuleBlock=function(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&o(n.parent)},e.isClassElement=c,e.isClassLike=function(e){return e&&(241===e.kind||210===e.kind)},e.isAccessor=function(e){return e&&(159===e.kind||160===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 157:case 159:case 160:return!0;default:return!1}},e.isTypeElement=d,e.isClassOrTypeElement=function(e){return d(e)||c(e)},e.isObjectLiteralElementLike=u,e.isTypeNode=function(n){return e.isTypeNodeKind(n.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 166:case 167:return!0}return!1},e.isBindingPattern=function(e){if(e){var n=e.kind;return 186===n||185===n}return!1},e.isAssignmentPattern=function(e){var n=e.kind;return 188===n||189===n},e.isArrayBindingElement=function(e){var n=e.kind;return 187===n||211===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 238:case 152:case 187:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return m(e)||p(e)},e.isObjectBindingOrAssignmentPattern=m,e.isArrayBindingOrAssignmentPattern=p,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 190===n||149===n||184===n},e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 190===n||149===n},e.isCallLikeExpression=function(e){switch(e.kind){case 263:case 262:case 192:case 193:case 194:case 153:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 192===e.kind||193===e.kind},e.isTemplateLiteral=function(e){var n=e.kind;return 207===n||14===n},e.isLeftHandSideExpression=function(n){return f(e.skipPartiallyEmittedExpressions(n).kind)},e.isUnaryExpression=function(n){return g(e.skipPartiallyEmittedExpressions(n).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 204:return!0;case 203:return 44===e.operator||45===e.operator;default:return!1}},e.isExpression=_,e.isAssertionExpression=function(e){var n=e.kind;return 195===n||213===n},e.isPartiallyEmittedExpression=y,e.isNotEmittedStatement=v,e.isNotEmittedOrPartiallyEmittedNode=function(e){return v(e)||y(e)},e.isIterationStatement=function e(n,t){switch(n.kind){case 226:case 227:case 228:case 224:case 225:return!0;case 234:return t&&e(n.statement,t)}return!1},e.isForInOrOfStatement=function(e){return 227===e.kind||228===e.kind},e.isConciseBody=function(n){return e.isBlock(n)||_(n)},e.isFunctionBody=function(n){return e.isBlock(n)},e.isForInitializer=function(n){return e.isVariableDeclarationList(n)||_(n)},e.isModuleBody=function(e){var n=e.kind;return 246===n||245===n||73===n},e.isNamespaceBody=function(e){var n=e.kind;return 246===n||245===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 73===n||245===n},e.isNamedImportBindings=function(e){var n=e.kind;return 253===n||252===n},e.isModuleOrEnumDeclaration=function(e){return 245===e.kind||244===e.kind},e.isDeclaration=function(n){return 151===n.kind?n.parent&&311!==n.parent.kind||e.isInJSFile(n):198===(t=n.kind)||187===t||241===t||210===t||158===t||244===t||279===t||258===t||240===t||197===t||159===t||251===t||249===t||254===t||242===t||268===t||157===t||156===t||245===t||248===t||252===t||152===t||276===t||155===t||154===t||160===t||277===t||243===t||151===t||238===t||312===t||305===t||313===t;var t},e.isDeclarationStatement=function(e){return h(e.kind)},e.isStatementButNotDeclaration=function(e){return b(e.kind)},e.isStatement=function(n){var t=n.kind;return b(t)||h(t)||function(n){return 219===n.kind&&((void 0===n.parent||236!==n.parent.kind&&275!==n.parent.kind)&&!e.isFunctionBlock(n))}(n)},e.isModuleReference=function(e){var n=e.kind;return 260===n||149===n||73===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 101===n||73===n||190===n},e.isJsxChild=function(e){var n=e.kind;return 261===n||271===n||262===n||11===n||265===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 268===n||270===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 10===n||271===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 263===n||262===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 272===n||273===n},e.isJSDocNode=function(e){return e.kind>=289&&e.kind<=313},e.isJSDocCommentContainingNode=function(n){return 298===n.kind||E(n)||e.isJSDocTypeLiteral(n)||e.isJSDocSignature(n)},e.isJSDocTag=E,e.isSetAccessor=function(e){return 160===e.kind},e.isGetAccessor=function(e){return 159===e.kind},e.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&n.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=T,e.hasOnlyExpressionInitializer=function(n){return T(n)&&!e.isForStatement(n)&&!e.isForInStatement(n)&&!e.isForOfStatement(n)&&!e.isJsxAttribute(n)},e.isObjectLiteralElement=function(e){return 268===e.kind||270===e.kind||u(e)},e.isTypeReferenceType=function(e){return 165===e.kind||212===e.kind};var S=1073741823;e.guessIndentation=function(n){for(var t=S,r=0,a=n;r<a.length;r++){var i=a[r];if(i.length){for(var o=0;o<i.length&&o<t&&e.isWhiteSpaceLike(i.charCodeAt(o));o++);if(o<t&&(t=o),0===t)return 0}}return t===S?void 0:t},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(u||(u={})),function(e){function n(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 t(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function r(){}function a(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 i(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function s(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,function(n,a){return""+e.Debug.assertDefined(t[+a+r])})}function l(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function c(e){return e.file?e.file.path:void 0}function d(n,t){return u(n,t)||function(n,t){if(!n.relatedInformation&&!t.relatedInformation)return 0;if(n.relatedInformation&&t.relatedInformation)return e.compareValues(n.relatedInformation.length,t.relatedInformation.length)||e.forEach(n.relatedInformation,function(e,n){var r=t.relatedInformation[n];return d(e,r)})||0;return n.relatedInformation?-1:1}(n,t)||0}function u(n,t){return e.compareStringsCaseSensitive(c(n),c(t))||e.compareValues(n.start,t.start)||e.compareValues(n.length,t.length)||e.compareValues(n.code,t.code)||function n(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var a=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(a)return a;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;var i=Math.min(t.next.length,r.next.length);for(var o=0;o<i;o++)if(a=n(t.next[o],r.next[o]))return a;if(t.next.length<r.next.length)return-1;if(t.next.length>r.next.length)return 1;return 0}(n.messageText,t.messageText)||0}function m(e){return e.target||0}function p(n){return"number"==typeof n.module?n.module:m(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function f(e){return!(!e.declaration&&!e.composite)}function g(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function _(e,n){return n.strictFlag?g(e,n.name):e[n.name]}e.isNamedImportsOrExports=function(e){return 253===e.kind||257===e.kind},e.objectAllocator={getNodeConstructor:function(){return a},getTokenConstructor:function(){return a},getIdentifierConstructor:function(){return a},getSourceFileConstructor:function(){return a},getSymbolConstructor:function(){return n},getTypeConstructor:function(){return t},getSignatureConstructor:function(){return r},getSourceMapSourceConstructor:function(){return i}},e.formatStringFromArgs=s,e.getLocaleSpecificMessage=l,e.createFileDiagnostic=function(n,t,r,a){e.Debug.assertGreaterThanOrEqual(t,0),e.Debug.assertGreaterThanOrEqual(r,0),n&&(e.Debug.assertLessThanOrEqual(t,n.text.length),e.Debug.assertLessThanOrEqual(t+r,n.text.length));var i=l(a);return arguments.length>4&&(i=s(i,arguments,4)),{file:n,start:t,length:r,messageText:i,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary}},e.formatMessage=function(e,n){var t=l(n);return arguments.length>2&&(t=s(t,arguments,2)),t},e.createCompilerDiagnostic=function(e){var n=l(e);return arguments.length>1&&(n=s(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,n){var t=l(n);return arguments.length>2&&(t=s(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next[0];t.next=[n]},e.compareDiagnostics=d,e.compareDiagnosticsSkipRelatedInformation=u,e.getEmitScriptTarget=m,e.getEmitModuleKind=p,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;return void 0===t&&(t=p(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t},e.hasJsonModuleEmitEnabled=function(n){switch(p(n)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!f(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(n){var t=p(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop||t===e.ModuleKind.System},e.getEmitDeclarations=f,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=g,e.compilerOptionsAffectSemanticDiagnostics=function(n,t){return t!==n&&e.semanticDiagnosticsOptionDeclarations.some(function(r){return!e.isJsonEqual(_(t,r),_(n,r))})},e.compilerOptionsAffectEmit=function(n,t){return t!==n&&e.affectsEmitOptionDeclarations.some(function(r){return!e.isJsonEqual(_(t,r),_(n,r))})},e.getCompilerOptionValue=_,e.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},e.directorySeparator="/";var y="\\",v="://",h=/\\/g;function b(n){return n.replace(h,e.directorySeparator)}function E(e){return e>=97&&e<=122||e>=65&&e<=90}function T(n){if(!n)return 0;var t=n.charCodeAt(0);if(47===t||92===t){if(n.charCodeAt(1)!==t)return 1;var r=n.indexOf(47===t?e.directorySeparator:y,2);return r<0?n.length:r+1}if(E(t)&&58===n.charCodeAt(1)){var a=n.charCodeAt(2);if(47===a||92===a)return 3;if(2===n.length)return 2}var i=n.indexOf(v);if(-1!==i){var o=i+v.length,s=n.indexOf(e.directorySeparator,o);if(-1!==s){var l=n.slice(0,i),c=n.slice(o,s);if("file"===l&&(""===c||"localhost"===c)&&E(n.charCodeAt(s+1))){var d=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}(n,s+2);if(-1!==d){if(47===n.charCodeAt(d))return~(d+1);if(d===n.length)return~d}}return~(s+1)}return~n.length}return 0}function S(e){var n=T(e);return n<0?~n:n}function L(e){return T(e)>0}function A(n,t){return void 0===t&&(t=""),function(n,t){var r=n.substring(0,t),a=n.substring(t).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),o([r],a)}(n=e.combinePaths(t,n),S(n))}function x(n){if(!e.some(n))return[];for(var t=[n[0]],r=1;r<n.length;r++){var a=n[r];if(a&&"."!==a){if(".."===a)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(a)}}return t}function C(e,n){return x(A(e,n))}function D(n){return 0===n.length?"":(n[0]&&e.ensureTrailingDirectorySeparator(n[0]))+n.slice(1).join(e.directorySeparator)}e.normalizeSlashes=b,e.getRootLength=S,e.normalizePath=function(n){return e.resolvePath(n)},e.normalizePathAndParts=function(n){var t=x(A(n=b(n))),r=t[0],a=t.slice(1);if(a.length){var i=r+a.join(e.directorySeparator);return{path:e.hasTrailingDirectorySeparator(n)?e.ensureTrailingDirectorySeparator(i):i,parts:a}}return{path:r,parts:a}},e.getDirectoryPath=function(n){var t=S(n=b(n));return t===n.length?n:(n=e.removeTrailingDirectorySeparator(n)).slice(0,Math.max(t,n.lastIndexOf(e.directorySeparator)))},e.startsWithDirectory=function(n,t,r){var a=r(n),i=r(t);return e.startsWith(a,i+"/")||e.startsWith(a,i+"\\")},e.isUrl=function(e){return T(e)<0},e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.isRootedDiskPath=L,e.isDiskPathRoot=function(e){var n=T(e);return n>0&&n===e.length},e.convertToRelativePath=function(n,t,r){return L(n)?e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1):n},e.getPathComponents=A,e.reducePathComponents=x,e.getNormalizedPathComponents=C,e.getNormalizedAbsolutePath=function(e,n){return D(C(e,n))},e.getPathFromPathComponents=D,e.getNormalizedAbsolutePathWithoutRoot=function(n,t){return 0===(r=C(n,t)).length?"":r.slice(1).join(e.directorySeparator);var r}}(u||(u={})),function(e){function n(n,t,r,a){var i,s=e.reducePathComponents(e.getPathComponents(n)),l=e.reducePathComponents(e.getPathComponents(t));for(i=0;i<s.length&&i<l.length;i++){var c=a(s[i]),d=a(l[i]);if(!(0===i?e.equateStringsCaseInsensitive:r)(c,d))break}if(0===i)return l;for(var u=l.slice(i),m=[];i<s.length;i++)m.push("..");return o([""],m,u)}function t(t,r,a){e.Debug.assert(e.getRootLength(t)>0==e.getRootLength(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof a?a:e.identity,o=n(t,r,"boolean"==typeof a&&a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i);return e.getPathFromPathComponents(o)}function r(n){return 0!==e.getRootLength(n)||e.pathIsRelative(n)?n:"./"+n}function a(n,t,r){if(n=e.normalizeSlashes(n),e.getRootLength(n)===n.length)return"";var a=(n=c(n)).slice(Math.max(e.getRootLength(n),n.lastIndexOf(e.directorySeparator)+1)),i=void 0!==t&&void 0!==r?K(a,t,r):void 0;return i?a.slice(0,a.length-i.length):a}function i(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n&&(n=e.normalizeSlashes(n));for(var a=0,i=t;a<i.length;a++){var o=i[a];o&&(o=e.normalizeSlashes(o),n=n&&0===e.getRootLength(o)?d(n)+o:o)}return n}function s(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=e.some(t)?i.apply(void 0,o([n],t)):e.normalizeSlashes(n),s=e.getPathFromPathComponents(e.reducePathComponents(e.getPathComponents(a)));return s&&l(a)?d(s):s}function l(e){if(0===e.length)return!1;var n=e.charCodeAt(e.length-1);return 47===n||92===n}function c(e){return l(e)?e.substr(0,e.length-1):e}function d(n){return l(n)?n:n+e.directorySeparator}e.getPathComponentsRelativeTo=n,e.getRelativePathFromFile=function(n,a,i){return r(t(e.getDirectoryPath(n),a,i))},e.getRelativePathFromDirectory=t,e.getRelativePathToDirectoryOrUrl=function(t,r,a,i,o){var l=n(s(a,t),s(a,r),e.equateStringsCaseSensitive,i),c=l[0];if(o&&e.isRootedDiskPath(c)){var d=c.charAt(0)===e.directorySeparator?"file://":"file:///";l[0]=d+c}return e.getPathFromPathComponents(l)},e.ensurePathIsNonModuleName=r,e.getBaseFileName=a,e.combinePaths=i,e.resolvePath=s,e.hasTrailingDirectorySeparator=l,e.removeTrailingDirectorySeparator=c,e.ensureTrailingDirectorySeparator=d;var u=/(^|\/)\.{0,2}($|\/)/;function m(n,t,r){if(n===t)return 0;if(void 0===n)return-1;if(void 0===t)return 1;var a=n.substring(0,e.getRootLength(n)),i=t.substring(0,e.getRootLength(t)),o=e.compareStringsCaseInsensitive(a,i);if(0!==o)return o;var s=n.substring(a.length),l=t.substring(i.length);if(!u.test(s)&&!u.test(l))return r(s,l);for(var c=e.reducePathComponents(e.getPathComponents(n)),d=e.reducePathComponents(e.getPathComponents(t)),m=Math.min(c.length,d.length),p=1;p<m;p++){var f=r(c[p],d[p]);if(0!==f)return f}return e.compareValues(c.length,d.length)}function p(n,t,r,a){if("string"==typeof r?(n=i(r,n),t=i(r,t)):"boolean"==typeof r&&(a=r),void 0===n||void 0===t)return!1;if(n===t)return!0;var o=e.reducePathComponents(e.getPathComponents(n)),s=e.reducePathComponents(e.getPathComponents(t));if(s.length<o.length)return!1;for(var l=a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<o.length;c++){if(!(0===c?e.equateStringsCaseInsensitive:l)(o[c],s[c]))return!1}return!0}e.comparePathsCaseSensitive=function(n,t){return m(n,t,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(n,t){return m(n,t,e.compareStringsCaseInsensitive)},e.comparePaths=function(n,t,r,a){return"string"==typeof r?(n=i(r,n),t=i(r,t)):"boolean"==typeof r&&(a=r),m(n,t,e.getStringComparer(a))},e.containsPath=p,e.tryRemoveDirectoryPrefix=function(n,t,r){var a,i,o=e.tryRemovePrefix(n,t,r);return void 0===o?void 0:47===(i=(a=o).charCodeAt(0))||92===i?a.slice(1):void 0};var f=/[^\w\s\/]/g;function g(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(f,g)};var _=[42,63];function y(n){return e.stringContains(a(n),".")}e.hasExtension=y,e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var v="(?!("+e.commonPackageFolders.join("|")+")(/|$))",h={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+v+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return x(e,h.singleAsteriskRegexFragment)}},b={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+v+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return x(e,b.singleAsteriskRegexFragment)}},E={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return x(e,E.singleAsteriskRegexFragment)}},T={files:h,directories:b,exclude:E};function S(e,n,t){var r=L(e,n,t);if(r&&r.length)return"^("+r.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===t?"($|/)":"$")}function L(n,t,r){if(void 0!==n&&0!==n.length)return e.flatMap(n,function(n){return n&&function(n,t,r,a){var i=a.singleAsteriskRegexFragment,o=a.doubleAsteriskRegexFragment,s=a.replaceWildcardCharacter,l="",d=!1,u=e.getNormalizedPathComponents(n,t),m=e.last(u);if("exclude"!==r&&"**"===m)return;u[0]=c(u[0]),A(m)&&u.push("**","*");for(var p=0,g=0,_=u;g<_.length;g++){var y=_[g];if("**"===y)l+=o;else if("directories"===r&&(l+="(",p++),d&&(l+=e.directorySeparator),"exclude"!==r){var h="";42===y.charCodeAt(0)?(h+="([^./]"+i+")?",y=y.substr(1)):63===y.charCodeAt(0)&&(h+="[^./]",y=y.substr(1)),(h+=y.replace(f,s))!==y&&(l+=v),l+=h}else l+=y.replace(f,s);d=!0}for(;p>0;)l+=")?",p--;return l}(n,t,r,T[r])})}function A(e){return!/[.*?]/.test(e)}function x(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function C(n,t,r,a,o){n=e.normalizePath(n);var s=i(o=e.normalizePath(o),n);return{includeFilePatterns:e.map(L(r,s,"files"),function(e){return"^"+e+"$"}),includeFilePattern:S(r,s,"files"),includeDirectoryPattern:S(r,s,"directories"),excludePattern:S(t,s,"exclude"),basePaths:function(n,t,r){var a=[n];if(t){for(var o=[],s=0,l=t;s<l.length;s++){var c=l[s],d=e.isRootedDiskPath(c)?c:e.normalizePath(i(n,c));o.push(R(d))}o.sort(e.getStringComparer(!r));for(var u=function(t){e.every(a,function(e){return!p(e,t,n,!r)})&&a.push(t)},m=0,f=o;m<f.length;m++){var g=f[m];u(g)}}return a}(n,r,a)}}function D(e,n){return new RegExp(e,n?"":"i")}function R(n){var t=e.indexOfAnyCharCode(n,_);return t<0?y(n)?c(e.getDirectoryPath(n)):n:n.substring(0,n.lastIndexOf(e.directorySeparator,t))}function M(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=S,e.getRegularExpressionsForWildcards=L,e.isImplicitGlob=A,e.getFileMatcherPatterns=C,e.getRegexFromPattern=D,e.matchFiles=function(n,t,r,a,o,s,l,c,d){n=e.normalizePath(n),s=e.normalizePath(s);for(var u=C(n,r,a,o,s),m=u.includeFilePatterns&&u.includeFilePatterns.map(function(e){return D(e,o)}),p=u.includeDirectoryPattern&&D(u.includeDirectoryPattern,o),f=u.excludePattern&&D(u.excludePattern,o),g=m?m.map(function(){return[]}):[[]],_=e.createMap(),y=e.createGetCanonicalFileName(o),v=0,h=u.basePaths;v<h.length;v++){var b=h[v];E(b,i(s,b),l)}return e.flatten(g);function E(n,r,a){var o=y(d(r));if(!_.has(o)){_.set(o,!0);for(var s=c(n),l=s.files,u=s.directories,v=function(a){var o=i(n,a),s=i(r,a);if(t&&!e.fileExtensionIsOneOf(o,t))return"continue";if(f&&f.test(s))return"continue";if(m){var l=e.findIndex(m,function(e){return e.test(s)});-1!==l&&g[l].push(o)}else g[0].push(o)},h=0,b=e.sort(l,e.compareStringsCaseSensitive);h<b.length;h++)v(L=b[h]);if(void 0===a||0!=--a)for(var T=0,S=e.sort(u,e.compareStringsCaseSensitive);T<S.length;T++){var L=S[T],A=i(n,L),x=i(r,L);p&&!p.test(x)||f&&f.test(x)||E(A,x,a)}}}},e.ensureScriptKind=function(e,n){return n||M(e)||3},e.getScriptKindFromFileName=M,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var I=o(e.supportedTSExtensions,e.supportedJSExtensions),O=o(e.supportedTSExtensions,e.supportedJSExtensions,[".json"]);function k(n,t){var r=n&&n.allowJs;if(!t||0===t.length)return r?I:e.supportedTSExtensions;var a=o(r?I:e.supportedTSExtensions,e.mapDefined(t,function(e){return 7===e.scriptKind||r&&(1===(n=e.scriptKind)||2===n)?e.extension:void 0;var n}));return e.deduplicate(a,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function N(n,t){return n&&n.resolveJsonModule?t===I?O:t===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:o(t,[".json"]):t}function w(e,n){return e<2?0:e<n.length?2:n.length}e.getSupportedExtensions=k,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=N,e.hasJSFileExtension=function(n){return e.some(e.supportedJSExtensions,function(t){return e.fileExtensionIs(n,t)})},e.hasJSOrJsonFileExtension=function(n){return e.supportedJSAndJsonExtensions.some(function(t){return e.fileExtensionIs(n,t)})},e.hasTSFileExtension=function(n){return e.some(e.supportedTSExtensions,function(t){return e.fileExtensionIs(n,t)})},e.isSupportedSourceFileName=function(n,t,r){if(!n)return!1;for(var a=0,i=N(t,k(t,r));a<i.length;a++){var o=i[a];if(e.fileExtensionIs(n,o))return!0}return!1},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(n,t){for(var r=t.length-1;r>=0;r--)if(e.fileExtensionIs(n,t[r]))return w(r,t);return 0},e.adjustExtensionPriority=w,e.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var P=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function G(n,t){return e.fileExtensionIs(n,t)?F(n,t):void 0}function F(e,n){return e.substring(0,e.length-n.length)}function V(n,t,r,a){var i=void 0!==r&&void 0!==a?K(n,r,a):K(n);return i?n.slice(0,n.length-i.length)+(e.startsWith(t,".")?t:"."+t):n}function B(n){e.Debug.assert(e.hasZeroOrOneAsteriskCharacter(n));var t=n.indexOf("*");return-1===t?void 0:{prefix:n.substr(0,t),suffix:n.substr(t+1)}}function U(e){return".ts"===e||".tsx"===e||".d.ts"===e}function H(n){return e.find(P,function(t){return e.fileExtensionIs(n,t)})}function K(n,t,r){if(t)return function(n,t,r){"string"==typeof t&&(t=[t]);for(var a=0,i=t;a<i.length;a++){var o=i[a];if(e.startsWith(o,".")||(o="."+o),n.length>=o.length&&"."===n.charAt(n.length-o.length)){var s=n.slice(n.length-o.length);if(r(s,o))return s}}return""}(n,t,r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=a(n),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}e.removeFileExtension=function(e){for(var n=0,t=P;n<t.length;n++){var r=G(e,t[n]);if(void 0!==r)return r}return e},e.tryRemoveExtension=G,e.removeExtension=F,e.changeExtension=function(e,n){return V(e,n,P,!1)},e.changeAnyExtension=V,e.tryParsePattern=B,e.positionIsSynthesized=function(e){return!(e>=0)},e.extensionIsTS=U,e.resolutionExtensionIsTSOrJson=function(e){return U(e)||".json"===e},e.extensionFromPath=function(n){var t=H(n);return void 0!==t?t:e.Debug.fail("File "+n+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==H(e)},e.tryGetExtensionFromPath=H,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(n,t){for(var r=[],a=0,i=n;a<i.length;a++){var o=i[a],s=B(o);if(s)r.push(s);else if(o===t)return o}return e.findBestPatternMatch(r,function(e){return e},t)},e.sliceAfter=function(n,t){var r=n.indexOf(t);return e.Debug.assert(-1!==r),n.slice(r)},e.addRelatedInfo=function(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},e.minAndMax=function(n,t){e.Debug.assert(0!==n.length);for(var r=t(n[0]),a=r,i=1;i<n.length;i++){var o=t(n[i]);o<r?r=o:o>a&&(a=o)}return{min:r,max:a}};var j=function(){function n(){this.map=e.createMap()}return n.prototype.add=function(n){this.map.set(String(e.getNodeId(n)),n)},n.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},n.prototype.has=function(n){return this.map.has(String(e.getNodeId(n)))},n.prototype.forEach=function(e){this.map.forEach(e)},n.prototype.some=function(n){return e.forEachEntry(this.map,n)||!1},n}();e.NodeSet=j;var W=function(){function n(){this.map=e.createMap()}return n.prototype.get=function(n){var t=this.map.get(String(e.getNodeId(n)));return t&&t.value},n.prototype.getOrUpdate=function(e,n){var t=this.get(e);if(t)return t;var r=n();return this.set(e,r),r},n.prototype.set=function(n,t){this.map.set(String(e.getNodeId(n)),{node:n,value:t})},n.prototype.has=function(n){return this.map.has(String(e.getNodeId(n)))},n.prototype.forEach=function(e){this.map.forEach(function(n){var t=n.node,r=n.value;return e(r,t)})},n}();e.NodeMap=W,e.rangeOfNode=function(n){return{pos:e.getTokenPosOfNode(n),end:n.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 n(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,n)},e.getOrUpdate=function(e,n,t){var r=e.get(n);if(void 0===r){var a=t();return e.set(n,a),a}return r},e.parsePseudoBigInt=function(e){var n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:for(var t=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}for(var a=e.length-1,i=(a-2)*n,o=new Uint16Array((i>>>4)+(15&i?1:0)),s=a-1,l=0;s>=2;s--,l+=n){var c=l>>>4,d=e.charCodeAt(s),u=(d<=57?d-48:10+d-(d<=70?65:97))<<(15&l);o[c]|=u;var m=u>>>16;m&&(o[c+1]|=m)}for(var p="",f=o.length-1,g=!0;g;){var _=0;for(g=!1,c=f;c>=0;c--){var y=_<<16|o[c],v=y/10|0;o[c]=v,_=y-10*v,v&&!g&&(f=c,g=!0)}p=_+p}return p},e.pseudoBigIntToString=function(e){var n=e.negative,t=e.base10Value;return(n&&"0"!==t?"-":"")+t}}(u||(u={})),function(e){var n,t,r,a,i,o,s;function l(e,n){return n&&e(n)}function c(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 d(e,n){return 42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&47!==e.charCodeAt(n+3)}function u(n,t,r){if(n&&!(n.kind<=148))switch(n.kind){case 149:return l(t,n.left)||l(t,n.right);case 151:return l(t,n.name)||l(t,n.constraint)||l(t,n.default)||l(t,n.expression);case 277:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.questionToken)||l(t,n.exclamationToken)||l(t,n.equalsToken)||l(t,n.objectAssignmentInitializer);case 278:return l(t,n.expression);case 152:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.dotDotDotToken)||l(t,n.name)||l(t,n.questionToken)||l(t,n.type)||l(t,n.initializer);case 155:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.questionToken)||l(t,n.exclamationToken)||l(t,n.type)||l(t,n.initializer);case 154:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.questionToken)||l(t,n.type)||l(t,n.initializer);case 276:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.questionToken)||l(t,n.initializer);case 238:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.exclamationToken)||l(t,n.type)||l(t,n.initializer);case 187:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.dotDotDotToken)||l(t,n.propertyName)||l(t,n.name)||l(t,n.initializer);case 166:case 167:case 161:case 162:case 163:return c(t,r,n.decorators)||c(t,r,n.modifiers)||c(t,r,n.typeParameters)||c(t,r,n.parameters)||l(t,n.type);case 157:case 156:case 158:case 159:case 160:case 197:case 240:case 198:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.asteriskToken)||l(t,n.name)||l(t,n.questionToken)||l(t,n.exclamationToken)||c(t,r,n.typeParameters)||c(t,r,n.parameters)||l(t,n.type)||l(t,n.equalsGreaterThanToken)||l(t,n.body);case 165:return l(t,n.typeName)||c(t,r,n.typeArguments);case 164:return l(t,n.parameterName)||l(t,n.type);case 168:return l(t,n.exprName);case 169:return c(t,r,n.members);case 170:return l(t,n.elementType);case 171:return c(t,r,n.elementTypes);case 174:case 175:return c(t,r,n.types);case 176:return l(t,n.checkType)||l(t,n.extendsType)||l(t,n.trueType)||l(t,n.falseType);case 177:return l(t,n.typeParameter);case 184:return l(t,n.argument)||l(t,n.qualifier)||c(t,r,n.typeArguments);case 178:case 180:return l(t,n.type);case 181:return l(t,n.objectType)||l(t,n.indexType);case 182:return l(t,n.readonlyToken)||l(t,n.typeParameter)||l(t,n.questionToken)||l(t,n.type);case 183:return l(t,n.literal);case 185:case 186:case 188:return c(t,r,n.elements);case 189:return c(t,r,n.properties);case 190:return l(t,n.expression)||l(t,n.name);case 191:return l(t,n.expression)||l(t,n.argumentExpression);case 192:case 193:return l(t,n.expression)||c(t,r,n.typeArguments)||c(t,r,n.arguments);case 194:return l(t,n.tag)||c(t,r,n.typeArguments)||l(t,n.template);case 195:return l(t,n.type)||l(t,n.expression);case 196:case 199:case 200:case 201:return l(t,n.expression);case 203:return l(t,n.operand);case 208:return l(t,n.asteriskToken)||l(t,n.expression);case 202:return l(t,n.expression);case 204:return l(t,n.operand);case 205:return l(t,n.left)||l(t,n.operatorToken)||l(t,n.right);case 213:return l(t,n.expression)||l(t,n.type);case 214:return l(t,n.expression);case 215:return l(t,n.name);case 206:return l(t,n.condition)||l(t,n.questionToken)||l(t,n.whenTrue)||l(t,n.colonToken)||l(t,n.whenFalse);case 209:return l(t,n.expression);case 219:case 246:return c(t,r,n.statements);case 285:return c(t,r,n.statements)||l(t,n.endOfFileToken);case 220:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.declarationList);case 239:return c(t,r,n.declarations);case 222:return l(t,n.expression);case 223:return l(t,n.expression)||l(t,n.thenStatement)||l(t,n.elseStatement);case 224:return l(t,n.statement)||l(t,n.expression);case 225:return l(t,n.expression)||l(t,n.statement);case 226:return l(t,n.initializer)||l(t,n.condition)||l(t,n.incrementor)||l(t,n.statement);case 227:return l(t,n.initializer)||l(t,n.expression)||l(t,n.statement);case 228:return l(t,n.awaitModifier)||l(t,n.initializer)||l(t,n.expression)||l(t,n.statement);case 229:case 230:return l(t,n.label);case 231:return l(t,n.expression);case 232:return l(t,n.expression)||l(t,n.statement);case 233:return l(t,n.expression)||l(t,n.caseBlock);case 247:return c(t,r,n.clauses);case 272:return l(t,n.expression)||c(t,r,n.statements);case 273:return c(t,r,n.statements);case 234:return l(t,n.label)||l(t,n.statement);case 235:return l(t,n.expression);case 236:return l(t,n.tryBlock)||l(t,n.catchClause)||l(t,n.finallyBlock);case 275:return l(t,n.variableDeclaration)||l(t,n.block);case 153:return l(t,n.expression);case 241:case 210:case 242:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||c(t,r,n.typeParameters)||c(t,r,n.heritageClauses)||c(t,r,n.members);case 243:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||c(t,r,n.typeParameters)||l(t,n.type);case 244:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||c(t,r,n.members);case 279:return l(t,n.name)||l(t,n.initializer);case 245:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.body);case 249:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.name)||l(t,n.moduleReference);case 250:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.importClause)||l(t,n.moduleSpecifier);case 251:return l(t,n.name)||l(t,n.namedBindings);case 248:case 252:return l(t,n.name);case 253:case 257:return c(t,r,n.elements);case 256:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.exportClause)||l(t,n.moduleSpecifier);case 254:case 258:return l(t,n.propertyName)||l(t,n.name);case 255:return c(t,r,n.decorators)||c(t,r,n.modifiers)||l(t,n.expression);case 207:return l(t,n.head)||c(t,r,n.templateSpans);case 217:return l(t,n.expression)||l(t,n.literal);case 150:return l(t,n.expression);case 274:return c(t,r,n.types);case 212:return l(t,n.expression)||c(t,r,n.typeArguments);case 260:return l(t,n.expression);case 259:return c(t,r,n.decorators);case 317:return c(t,r,n.elements);case 261:return l(t,n.openingElement)||c(t,r,n.children)||l(t,n.closingElement);case 265:return l(t,n.openingFragment)||c(t,r,n.children)||l(t,n.closingFragment);case 262:case 263:return l(t,n.tagName)||c(t,r,n.typeArguments)||l(t,n.attributes);case 269:return c(t,r,n.properties);case 268:return l(t,n.name)||l(t,n.initializer);case 270:return l(t,n.expression);case 271:return l(t,n.dotDotDotToken)||l(t,n.expression);case 264:return l(t,n.tagName);case 172:case 173:case 289:case 293:case 292:case 294:case 296:return l(t,n.type);case 295:return c(t,r,n.parameters)||l(t,n.type);case 298:return c(t,r,n.tags);case 307:case 313:return l(t,n.tagName)||(n.isNameFirst?l(t,n.name)||l(t,n.typeExpression):l(t,n.typeExpression)||l(t,n.name));case 303:return l(t,n.tagName);case 302:return l(t,n.tagName)||l(t,n.class);case 311:return l(t,n.tagName)||l(t,n.constraint)||c(t,r,n.typeParameters);case 312:return l(t,n.tagName)||(n.typeExpression&&289===n.typeExpression.kind?l(t,n.typeExpression)||l(t,n.fullName):l(t,n.fullName)||l(t,n.typeExpression));case 305:return l(t,n.tagName)||l(t,n.fullName)||l(t,n.typeExpression);case 308:case 310:case 309:case 306:return l(t,n.tagName)||l(t,n.typeExpression);case 300:return e.forEach(n.typeParameters,t)||e.forEach(n.parameters,t)||l(t,n.type);case 299:return e.forEach(n.jsDocPropertyTags,t);case 301:case 304:return l(t,n.tagName);case 316:return l(t,n.expression)}}function m(n){return e.fileExtensionIs(n,".d.ts")}function p(n,t){for(var r=[],a=0,i=e.getLeadingCommentRanges(t,0)||e.emptyArray;a<i.length;a++){var o=i[a];h(r,o,t.substring(o.pos,o.end))}n.pragmas=e.createMap();for(var s=0,l=r;s<l.length;s++){var c=l[s];if(n.pragmas.has(c.name)){var d=n.pragmas.get(c.name);d instanceof Array?d.push(c.args):n.pragmas.set(c.name,[d,c.args])}else n.pragmas.set(c.name,c.args)}}function f(n,t){n.checkJsDirective=void 0,n.referencedFiles=[],n.typeReferenceDirectives=[],n.libReferenceDirectives=[],n.amdDependencies=[],n.hasNoDefaultLib=!1,n.pragmas.forEach(function(r,a){switch(a){case"reference":var i=n.referencedFiles,o=n.typeReferenceDirectives,s=n.libReferenceDirectives;e.forEach(e.toArray(r),function(r){var a=r.arguments,l=a.types,c=a.lib,d=a.path;r.arguments["no-default-lib"]?n.hasNoDefaultLib=!0:l?o.push({pos:l.pos,end:l.end,fileName:l.value}):c?s.push({pos:c.pos,end:c.end,fileName:c.value}):d?i.push({pos:d.pos,end:d.end,fileName:d.value}):t(r.range.pos,r.range.end-r.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":n.amdDependencies=e.map(e.toArray(r),function(e){return{name:e.arguments.name,path:e.arguments.path}});break;case"amd-module":if(r instanceof Array)for(var l=0,c=r;l<c.length;l++){var d=c[l];n.moduleName&&t(d.range.pos,d.range.end-d.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),n.moduleName=d.arguments.name}else n.moduleName=r.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(r),function(e){(!n.checkJsDirective||e.range.pos>n.checkJsDirective.pos)&&(n.checkJsDirective={enabled:"ts-check"===a,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(n||(n={})),e.createNode=function(n,o,s){return 285===n?new(i||(i=e.objectAllocator.getSourceFileConstructor()))(n,o,s):73===n?new(a||(a=e.objectAllocator.getIdentifierConstructor()))(n,o,s):e.isNodeKind(n)?new(t||(t=e.objectAllocator.getNodeConstructor()))(n,o,s):new(r||(r=e.objectAllocator.getTokenConstructor()))(n,o,s)},e.isJSDocLikeText=d,e.forEachChild=u,e.createSourceFile=function(n,t,r,a,i){var s;return void 0===a&&(a=!1),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(n),s=100===r?o.parseSourceFile(n,t,r,void 0,a,6):o.parseSourceFile(n,t,r,void 0,a,i),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,n){return o.parseIsolatedEntityName(e,n)},e.parseJsonText=function(e,n){return o.parseJsonText(e,n)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.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},e.parseIsolatedJSDocComment=function(e,n,t){var r=o.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&o.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,n,t){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(n){var t,r,a,i,o,s,l,c,g,_,y,v,h,b,T,S,L,A,x=e.createScanner(99,!0),C=10240,D=!1;function R(n,t,r,a,i){void 0===r&&(r=2),I(t,r,a,6),(o=P(n,2,6,!1)).flags=T,ie();var l=te();if(1===re())o.statements=Ae([],l,l),o.endOfFileToken=be();else{var c=Se(222);switch(re()){case 22:c.expression=Nt();break;case 103:case 88:case 97:c.expression=be();break;case 39:me(function(){return 8===ie()&&57!==ie()})?c.expression=ft():c.expression=Pt();break;case 8:case 10:if(me(function(){return 57!==ie()})){c.expression=ln();break}default:c.expression=Pt()}xe(c),o.statements=Ae([c],l),o.endOfFileToken=he(1,e.Diagnostics.Unexpected_token)}i&&w(o),o.parseDiagnostics=s;var d=o;return O(),d}function M(e){return 4===e||2===e||1===e||6===e?1:0}function I(n,o,c,d){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),i=e.objectAllocator.getSourceFileConstructor(),g=n,l=c,s=[],h=0,y=e.createMap(),v=0,_=0,d){case 1:case 2:T=65536;break;case 6:T=16842752;break;default:T=0}D=!1,x.setText(g),x.setOnError(ne),x.setScriptTarget(o),x.setLanguageVariant(M(d))}function O(){x.setText(""),x.setOnError(void 0),s=void 0,o=void 0,y=void 0,l=void 0,g=void 0,b=void 0}function k(n,t,r,a){var i=m(n);return i&&(T|=4194304),(o=P(n,t,a,i)).flags=T,ie(),p(o,g),f(o,function(n,t,r){s.push(e.createFileDiagnostic(o,n,t,r))}),o.statements=Je(0,$t),e.Debug.assert(1===re()),o.endOfFileToken=N(be()),function(n){n.externalModuleIndicator=e.forEach(n.statements,Ur)||function(e){return 1048576&e.flags?Hr(e):void 0}(n)}(o),o.nodeCount=_,o.identifierCount=v,o.identifiers=y,o.parseDiagnostics=s,r&&w(o),o}function N(n){e.Debug.assert(!n.jsDoc);var t=e.mapDefined(e.getJSDocCommentRanges(n,o.text),function(e){return A.parseJSDocComment(n,e.pos,e.end-e.pos)});return t.length&&(n.jsDoc=t),n}function w(n){var t=n;return void u(n,function n(r){if(r.parent!==t){r.parent=t;var a=t;if(t=r,u(r,n),e.hasJSDocNodes(r))for(var i=0,o=r.jsDoc;i<o.length;i++){var s=o[i];s.parent=r,t=s,u(s,n)}t=a}})}function P(n,t,r,a){var o=new i(285,0,g.length);return _++,o.text=g,o.bindDiagnostics=[],o.bindSuggestionDiagnostics=void 0,o.languageVersion=t,o.fileName=e.normalizePath(n),o.languageVariant=M(r),o.isDeclarationFile=a,o.scriptKind=r,o}function G(e,n){e?T|=n:T&=~n}function F(e){G(e,2048)}function V(e){G(e,4096)}function B(e){G(e,8192)}function U(e){G(e,16384)}function H(e,n){var t=e&T;if(t){G(!1,t);var r=n();return G(!0,t),r}return n()}function K(e,n){var t=e&~T;if(t){G(!0,t);var r=n();return G(!1,t),r}return n()}function j(e){return H(2048,e)}function W(e){return K(16384,e)}function q(e){return 0!=(T&e)}function z(){return q(4096)}function X(){return q(2048)}function J(){return q(8192)}function Y(){return q(16384)}function Q(e,n){$(x.getTokenPos(),x.getTextPos(),e,n)}function Z(n,t,r,a){var i=e.lastOrUndefined(s);i&&n===i.start||s.push(e.createFileDiagnostic(o,n,t,r,a)),D=!0}function $(e,n,t,r){Z(e,n-e,t,r)}function ee(e,n,t){$(e.pos,e.end,n,t)}function ne(e,n){Z(x.getTextPos(),n,e)}function te(){return x.getStartPos()}function re(){return c}function ae(){return c=x.scan()}function ie(){return e.isKeyword(c)&&(x.hasUnicodeEscape()||x.hasExtendedUnicodeEscape())&&$(x.getTokenPos(),x.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),ae()}function oe(){return c=x.scanJsDocToken()}function se(){return c=x.reScanGreaterToken()}function le(){return c=x.reScanLessThanToken()}function ce(){return c=x.scanJsxIdentifier()}function de(){return c=x.scanJsxToken()}function ue(n,t){var r=c,a=s.length,i=D,o=T,l=t?x.lookAhead(n):x.tryScan(n);return e.Debug.assert(o===T),l&&!t||(c=r,s.length=a,D=i),l}function me(e){return ue(e,!0)}function pe(e){return ue(e,!1)}function fe(){return 73===re()||(118!==re()||!z())&&((123!==re()||!Y())&&re()>109)}function ge(n,t,r){return void 0===r&&(r=!0),re()===n?(r&&ie(),!0):(t?Q(t):Q(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function _e(e){return re()===e&&(ie(),!0)}function ye(e){if(re()===e)return be()}function ve(e){if(re()===e)return n=Se(re()),oe(),xe(n);var n}function he(n,t,r){return ye(n)||Ce(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function be(){var e=Se(re());return ie(),xe(e)}function Ee(){return 26===re()||(19===re()||1===re()||x.hasPrecedingLineBreak())}function Te(){return Ee()?(26===re()&&ie(),!0):ge(26)}function Se(n,i){_++;var o=i>=0?i:x.getStartPos();return e.isNodeKind(n)||0===n?new t(n,o,o):73===n?new a(n,o,o):new r(n,o,o)}function Le(e,n){var t=Se(e,n);return 2&x.getTokenFlags()&&N(t),t}function Ae(e,n,t){var r=e.length,a=r>=1&&r<=4?e.slice():e;return a.pos=n,a.end=void 0===t?x.getStartPos():t,a}function xe(e,n){return e.end=void 0===n?x.getStartPos():n,T&&(e.flags|=T),D&&(D=!1,e.flags|=32768),e}function Ce(n,t,r,a){t?Z(x.getStartPos(),0,r,a):r&&Q(r,a);var i=Se(n);return 73===n?i.escapedText="":(e.isLiteralKind(n)||e.isTemplateLiteralKind(n))&&(i.text=""),xe(i)}function De(e){var n=y.get(e);return void 0===n&&y.set(e,n=e),n}function Re(n,t){if(v++,n){var r=Se(73);return 73!==re()&&(r.originalKeywordKind=re()),r.escapedText=e.escapeLeadingUnderscores(De(x.getTokenValue())),ae(),xe(r)}return Ce(73,1===re(),t||e.Diagnostics.Identifier_expected)}function Me(e){return Re(fe(),e)}function Ie(n){return Re(e.tokenIsIdentifierOrKeyword(re()),n)}function Oe(){return e.tokenIsIdentifierOrKeyword(re())||10===re()||8===re()}function ke(e){if(10===re()||8===re()){var n=ln();return n.text=De(n.text),n}return e&&22===re()?function(){var e=Se(150);return ge(22),e.expression=j(et),ge(23),xe(e)}():Ie()}function Ne(){return ke(!0)}function we(e){return re()===e&&pe(Ge)}function Pe(){return ie(),!x.hasPrecedingLineBreak()&&Fe()}function Ge(){switch(re()){case 78:return 85===ie();case 86:return ie(),81===re()?me(Ve):40!==re()&&120!==re()&&18!==re()&&Fe();case 81:return Ve();case 117:case 127:case 138:return ie(),Fe();default:return Pe()}}function Fe(){return 22===re()||18===re()||40===re()||25===re()||Oe()}function Ve(){return ie(),77===re()||91===re()||111===re()||119===re()&&me(qt)||122===re()&&me(zt)}function Be(n,t){if(Qe(n))return!0;switch(n){case 0:case 1:case 3:return!(26===re()&&t)&&Qt();case 2:return 75===re()||81===re();case 4:return me(An);case 5:return me(hr)||26===re()&&!t;case 6:return 22===re()||Oe();case 12:switch(re()){case 22:case 40:case 25:case 24:return!0;default:return Oe()}case 18:return Oe();case 9:return 22===re()||25===re()||Oe();case 7:return 18===re()?me(Ue):t?fe()&&!We():Zn()&&!We();case 8:return sr();case 10:return 27===re()||25===re()||sr();case 19:return fe();case 15:switch(re()){case 27:case 24:return!0}case 11:return 25===re()||$n();case 16:return yn(!1);case 17:return yn(!0);case 20:case 21:return 27===re()||Bn();case 22:return Mr();case 23:return e.tokenIsIdentifierOrKeyword(re());case 13:return e.tokenIsIdentifierOrKeyword(re())||18===re();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ue(){if(e.Debug.assert(18===re()),19===ie()){var n=ie();return 27===n||18===n||87===n||110===n}return!0}function He(){return ie(),fe()}function Ke(){return ie(),e.tokenIsIdentifierOrKeyword(re())}function je(){return ie(),e.tokenIsIdentifierOrKeywordOrGreaterThan(re())}function We(){return(110===re()||87===re())&&me(qe)}function qe(){return ie(),$n()}function ze(){return ie(),Bn()}function Xe(e){if(1===re())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===re();case 3:return 19===re()||75===re()||81===re();case 7:return 18===re()||87===re()||110===re();case 8:return function(){if(Ee())return!0;if(dt(re()))return!0;if(37===re())return!0;return!1}();case 19:return 30===re()||20===re()||18===re()||87===re()||110===re();case 11:return 21===re()||26===re();case 15:case 21:case 10:return 23===re();case 17:case 16:case 18:return 21===re()||23===re();case 20:return 27!==re();case 22:return 18===re()||19===re();case 13:return 30===re()||42===re();case 14:return 28===re()&&me(wr);default:return!1}}function Je(e,n){var t=h;h|=1<<e;for(var r=[],a=te();!Xe(e);)if(Be(e,!1)){var i=Ye(e,n);r.push(i)}else if(Ze(e))break;return h=t,Ae(r,a)}function Ye(e,n){var t=Qe(e);return t?function(e){return x.setTextPos(e.end),ie(),e}(t):n()}function Qe(n){if(l&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(n)&&!D){var t=l.currentNode(x.getStartPos());if(!(e.nodeIsMissing(t)||t.intersectsChange||e.containsParseError(t)))if((12679168&t.flags)===T&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 158:case 163:case 159:case 160:case 155:case 218:return!0;case 157:var n=e,t=73===n.name.kind&&125===n.name.originalKeywordKind;return!t}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 272:case 273:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 240:case 220:case 219:case 223:case 222:case 235:case 231:case 233:case 230:case 229:case 227:case 228:case 226:case 225:case 232:case 221:case 236:case 234:case 224:case 237:case 250:case 249:case 256:case 255:case 245:case 241:case 242:case 244:case 243:return!0}return!1}(e);case 6:return function(e){return 279===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 162:case 156:case 163:case 154:case 161:return!0}return!1}(e);case 8:return function(e){if(238!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(152!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(t,n))return t.jsDocCache&&(t.jsDocCache=void 0),t}}function Ze(n){return Q(function(n){switch(n){case 0:case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return e.Diagnostics.Identifier_expected;default:return}}(n)),!!function(){for(var e=0;e<24;e++)if(h&1<<e&&(Be(e,!0)||Xe(e)))return!0;return!1}()||(ie(),!1)}function $e(e,n,t){var r=h;h|=1<<e;for(var a=[],i=te(),o=-1;;)if(Be(e,!1)){var s=x.getStartPos();if(a.push(Ye(e,n)),o=x.getTokenPos(),_e(27))continue;if(o=-1,Xe(e))break;ge(27),t&&26===re()&&!x.hasPrecedingLineBreak()&&ie(),s===x.getStartPos()&&ie()}else{if(Xe(e))break;if(Ze(e))break}h=r;var l=Ae(a,i);return o>=0&&(l.hasTrailingComma=!0),l}function en(){var e=Ae([],te());return e.isMissingList=!0,e}function nn(e,n,t,r){if(ge(t)){var a=$e(e,n);return ge(r),a}return en()}function tn(e,n){for(var t=e?Ie(n):Me(n),r=x.getStartPos();_e(24);){if(28===re()){t.jsdocDotPos=r;break}r=x.getStartPos(),t=rn(t,an(e))}return t}function rn(e,n){var t=Se(149,e.pos);return t.left=e,t.right=n,xe(t)}function an(n){if(x.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(re())&&me(Wt))return Ce(73,!0,e.Diagnostics.Identifier_expected);return n?Ie():Me()}function on(){var n,t=Se(207);t.head=(n=cn(re()),e.Debug.assert(15===n.kind,"Template head has wrong token kind"),n),e.Debug.assert(15===t.head.kind,"Template head has wrong token kind");var r=[],a=te();do{r.push(sn())}while(16===e.last(r).literal.kind);return t.templateSpans=Ae(r,a),xe(t)}function sn(){var n,t,r=Se(217);return r.expression=j(et),19===re()?(c=x.reScanTemplateToken(),t=cn(re()),e.Debug.assert(16===t.kind||17===t.kind,"Template fragment has wrong token kind"),n=t):n=he(17,e.Diagnostics._0_expected,e.tokenToString(19)),r.literal=n,xe(r)}function ln(){return cn(re())}function cn(e){var n=Se(e);switch(n.text=x.getTokenValue(),e){case 14:case 15:case 16:case 17:var t=14===e||17===e,r=x.getTokenText();n.rawText=r.substring(1,r.length-(x.isUnterminated()?0:t?1:2))}return x.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),x.isUnterminated()&&(n.isUnterminated=!0),8===n.kind&&(n.numericLiteralFlags=1008&x.getTokenFlags()),ie(),xe(n),n}function dn(){var n=Se(165);return n.typeName=tn(!0,e.Diagnostics.Type_expected),x.hasPrecedingLineBreak()||28!==le()||(n.typeArguments=nn(20,Jn,28,30)),xe(n)}function un(e){var n=Se(290);return e?Hn(294,n):(ie(),xe(n))}function mn(){var e=Se(152);return 101!==re()&&96!==re()||(e.name=Ie(),ge(57)),e.type=pn(),xe(e)}function pn(){x.setInJSDocType(!0);var e=ye(131);if(e){var n=Se(297,e.pos);e:for(;;)switch(re()){case 19:case 1:case 27:case 5:break e;default:oe()}return x.setInJSDocType(!1),xe(n)}var t=ye(25),r=zn();if(x.setInJSDocType(!1),t){var a=Se(296,t.pos);a.type=r,r=xe(a)}return 60===re()?Hn(294,r):r}function fn(){var e=Se(151);return e.name=Me(),_e(87)&&(Bn()||!$n()?e.constraint=Jn():e.expression=gt()),_e(60)&&(e.default=Jn()),xe(e)}function gn(){if(28===re())return nn(19,fn,28,30)}function _n(){if(_e(57))return Jn()}function yn(n){return 25===re()||sr()||e.isModifierKind(re())||58===re()||Bn(!n)}function vn(){var n=Le(152);return 101===re()?(n.name=Re(!0),n.type=_n(),xe(n)):(n.decorators=br(),n.modifiers=Er(),n.dotDotDotToken=ye(25),n.name=lr(),0===e.getFullWidth(n.name)&&!e.hasModifiers(n)&&e.isModifierKind(re())&&ie(),n.questionToken=ye(56),n.type=_n(),n.initializer=nt(),xe(n))}function hn(n,t,r){32&t||(r.typeParameters=gn());var a=function(e,n){if(!ge(20))return e.parameters=en(),!1;var t=z(),r=Y();return V(!!(1&n)),U(!!(2&n)),e.parameters=32&n?$e(17,mn):$e(16,vn),V(t),U(r),ge(21)}(r,t);return(!function(n,t){if(37===n)return ge(n),!0;if(_e(57))return!0;if(t&&37===re())return Q(e.Diagnostics._0_expected,e.tokenToString(57)),ie(),!0;return!1}(n,!!(4&t))||(r.type=zn(),!function n(t){switch(t.kind){case 165:return e.nodeIsMissing(t.typeName);case 166:case 167:var r=t,a=r.parameters,i=r.type;return!!a.isMissingList||n(i);case 178:return n(t.type);default:return!1}}(r.type)))&&a}function bn(){_e(27)||Te()}function En(e){var n=Le(e);return 162===e&&ge(96),hn(57,4,n),bn(),xe(n)}function Tn(){return 22===re()&&me(Sn)}function Sn(){if(ie(),25===re()||23===re())return!0;if(e.isModifierKind(re())){if(ie(),fe())return!0}else{if(!fe())return!1;ie()}return 57===re()||27===re()||56===re()&&(ie(),57===re()||27===re()||23===re())}function Ln(e){return e.kind=163,e.parameters=nn(16,vn,22,23),e.type=Qn(),bn(),xe(e)}function An(){if(20===re()||28===re())return!0;for(var n=!1;e.isModifierKind(re());)n=!0,ie();return 22===re()||(Oe()&&(n=!0,ie()),!!n&&(20===re()||28===re()||56===re()||57===re()||27===re()||Ee()))}function xn(){if(20===re()||28===re())return En(161);if(96===re()&&me(Cn))return En(162);var e=Le(0);return e.modifiers=Er(),Tn()?Ln(e):function(e){return e.name=Ne(),e.questionToken=ye(56),20===re()||28===re()?(e.kind=156,hn(57,4,e)):(e.kind=154,e.type=Qn(),60===re()&&(e.initializer=nt())),bn(),xe(e)}(e)}function Cn(){return ie(),20===re()||28===re()}function Dn(){return 24===ie()}function Rn(){switch(ie()){case 20:case 28:case 24:return!0}return!1}function Mn(){var e;return ge(18)?(e=Je(4,xn),ge(19)):e=en(),e}function In(){return ie(),38===re()||39===re()?134===ie():(134===re()&&ie(),22===re()&&He()&&94===ie())}function On(){var e=Se(182);return ge(18),134!==re()&&38!==re()&&39!==re()||(e.readonlyToken=be(),134!==e.readonlyToken.kind&&he(134)),ge(22),e.typeParameter=function(){var e=Se(151);return e.name=Me(),ge(94),e.constraint=Jn(),xe(e)}(),ge(23),56!==re()&&38!==re()&&39!==re()||(e.questionToken=be(),56!==e.questionToken.kind&&he(56)),e.type=Qn(),Te(),ge(19),xe(e)}function kn(){var e=te();if(_e(25)){var n=Se(173,e);return n.type=Jn(),xe(n)}var t=Jn();return 2097152&T||292!==t.kind||t.pos!==t.type.pos||(t.kind=172),t}function Nn(){var e=be();return 24===re()?void 0:e}function wn(e){var n,t=Se(183);e&&((n=Se(203)).operator=39,ie());var r=103===re()||88===re()?be():cn(re());return e&&(n.operand=r,xe(n),r=n),t.literal=r,xe(t)}function Pn(){return ie(),93===re()}function Gn(){o.flags|=524288;var n=Se(184);return _e(105)&&(n.isTypeOf=!0),ge(93),ge(20),n.argument=Jn(),ge(21),_e(24)&&(n.qualifier=tn(!0,e.Diagnostics.Type_expected)),x.hasPrecedingLineBreak()||28!==le()||(n.typeArguments=nn(20,Jn,28,30)),xe(n)}function Fn(){return ie(),8===re()||9===re()}function Vn(){switch(re()){case 121:case 144:case 139:case 136:case 147:case 140:case 124:case 142:case 133:case 137:return pe(Nn)||dn();case 40:return un(!1);case 63:return un(!0);case 56:return r=x.getStartPos(),ie(),27===re()||19===re()||21===re()||30===re()||60===re()||50===re()?xe(t=Se(291,r)):((t=Se(292,r)).type=Jn(),xe(t));case 91:return function(){if(me(Nr)){var e=Le(295);return ie(),hn(57,36,e),xe(e)}var n=Se(165);return n.typeName=Ie(),xe(n)}();case 52:return function(){var e=Se(293);return ie(),e.type=Vn(),xe(e)}();case 14:case 10:case 8:case 9:case 103:case 88:return wn();case 39:return me(Fn)?wn(!0):dn();case 107:case 97:return be();case 101:var e=(n=Se(179),ie(),xe(n));return 129!==re()||x.hasPrecedingLineBreak()?e:function(e){ie();var n=Se(164,e.pos);return n.parameterName=e,n.type=Jn(),xe(n)}(e);case 105:return me(Pn)?Gn():function(){var e=Se(168);return ge(105),e.exprName=tn(!0),xe(e)}();case 18:return me(In)?On():function(){var e=Se(169);return e.members=Mn(),xe(e)}();case 22:return function(){var e=Se(171);return e.elementTypes=nn(21,kn,22,23),xe(e)}();case 20:return function(){var e=Se(178);return ge(20),e.type=Jn(),ge(21),xe(e)}();case 93:return Gn();default:return dn()}var n,t,r}function Bn(e){switch(re()){case 121:case 144:case 139:case 136:case 147:case 124:case 134:case 140:case 143:case 107:case 142:case 97:case 101:case 105:case 133:case 18:case 22:case 28:case 50:case 49:case 96:case 10:case 8:case 9:case 103:case 88:case 137:case 40:case 56:case 52:case 25:case 128:case 93:return!0;case 91:return!e;case 39:return!e&&me(Fn);case 20:return!e&&me(Un);default:return fe()}}function Un(){return ie(),21===re()||yn(!1)||Bn()}function Hn(e,n){ie();var t=Se(e,n.pos);return t.type=n,xe(t)}function Kn(){var e=re();switch(e){case 130:case 143:case 134:return function(e){var n=Se(180);return ge(e),n.operator=e,n.type=Kn(),xe(n)}(e);case 128:return function(){var e=Se(177);ge(128);var n=Se(151);return n.name=Me(),e.typeParameter=xe(n),xe(e)}()}return function(){for(var e=Vn();!x.hasPrecedingLineBreak();)switch(re()){case 52:e=Hn(293,e);break;case 56:if(!(2097152&T)&&me(ze))return e;e=Hn(292,e);break;case 22:var n;ge(22),Bn()?((n=Se(181,e.pos)).objectType=e,n.indexType=Jn(),ge(23),e=xe(n)):((n=Se(170,e.pos)).elementType=e,ge(23),e=xe(n));break;default:return e}return e}()}function jn(e,n,t){var r=x.getStartPos(),a=_e(t),i=n();if(re()===t||a){for(var o=[i];_e(t);)o.push(n());var s=Se(e,r);s.types=Ae(o,r),i=xe(s)}return i}function Wn(){return jn(175,Kn,49)}function qn(){if(ie(),21===re()||25===re())return!0;if(function(){if(e.isModifierKind(re())&&Er(),fe()||101===re())return ie(),!0;if(22===re()||18===re()){var n=s.length;return lr(),n===s.length}return!1}()){if(57===re()||27===re()||56===re()||60===re())return!0;if(21===re()&&(ie(),37===re()))return!0}return!1}function zn(){var e=fe()&&pe(Xn),n=Jn();if(e){var t=Se(164,e.pos);return t.parameterName=e,t.type=n,xe(t)}return n}function Xn(){var e=Me();if(129===re()&&!x.hasPrecedingLineBreak())return ie(),e}function Jn(){return H(20480,Yn)}function Yn(e){if(28===re()||20===re()&&me(qn)||96===re())return function(){var e=te(),n=Le(_e(96)?167:166,e);return hn(37,4,n),xe(n)}();var n=jn(174,Wn,50);if(!e&&!x.hasPrecedingLineBreak()&&_e(87)){var t=Se(176,n.pos);return t.checkType=n,t.extendsType=Yn(!0),ge(56),t.trueType=Yn(),ge(57),t.falseType=Yn(),xe(t)}return n}function Qn(){return _e(57)?Jn():void 0}function Zn(){switch(re()){case 101:case 99:case 97:case 103:case 88:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 91:case 77:case 96:case 42:case 65:case 73:return!0;case 93:return me(Rn);default:return fe()}}function $n(){if(Zn())return!0;switch(re()){case 38:case 39:case 53:case 52:case 82:case 105:case 107:case 44:case 45:case 28:case 123:case 118:return!0;default:return!!function(){if(X()&&94===re())return!1;return e.getBinaryOperatorPrecedence(re())>0}()||fe()}}function et(){var e=J();e&&B(!1);for(var n,t=tt();n=ye(27);)t=mt(t,n,tt());return e&&B(!0),t}function nt(){return _e(60)?tt():void 0}function tt(){if(function(){if(118===re())return!!z()||me(Xt);return!1}())return n=Se(208),ie(),x.hasPrecedingLineBreak()||40!==re()&&!$n()?xe(n):(n.asteriskToken=ye(40),n.expression=tt(),xe(n));var n,t=function(){var n=function(){if(20===re()||28===re()||122===re())return me(at);if(37===re())return 1;return 0}();if(0===n)return;var t=1===n?st(!0):pe(it);if(!t)return;var r=e.hasModifier(t,256),a=re();return t.equalsGreaterThanToken=he(37),t.body=37===a||18===a?lt(r):Me(),xe(t)}()||function(){if(122===re()&&1===me(ot)){var e=Tr(),n=ct(0);return rt(n,e)}return}();if(t)return t;var r=ct(0);return 73===r.kind&&37===re()?rt(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(se())?mt(r,be(),tt()):function(n){var t=ye(56);if(!t)return n;var r=Se(206,n.pos);return r.condition=n,r.questionToken=t,r.whenTrue=H(C,tt),r.colonToken=he(57),r.whenFalse=e.nodeIsPresent(r.colonToken)?tt():Ce(73,!1,e.Diagnostics._0_expected,e.tokenToString(57)),xe(r)}(r)}function rt(n,t){var r;e.Debug.assert(37===re(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),t?(r=Se(198,t.pos)).modifiers=t:r=Se(198,n.pos);var a=Se(152,n.pos);return a.name=n,xe(a),r.parameters=Ae([a],a.pos,a.end),r.equalsGreaterThanToken=he(37),r.body=lt(!!t),N(xe(r))}function at(){if(122===re()){if(ie(),x.hasPrecedingLineBreak())return 0;if(20!==re()&&28!==re())return 0}var n=re(),t=ie();if(20===n){if(21===t)switch(ie()){case 37:case 57:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(e.isModifierKind(t)&&122!==t&&me(He))return 1;if(!fe()&&101!==t)return 0;switch(ie()){case 57:return 1;case 56:return ie(),57===re()||27===re()||60===re()||21===re()?1:0;case 27:case 60:case 21:return 2}return 0}return e.Debug.assert(28===n),fe()?1===o.languageVariant?me(function(){var e=ie();if(87===e)switch(ie()){case 60:case 30:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:2:0}function it(){var n=x.getTokenPos();if(!b||!b.has(n.toString())){var t=st(!1);return t||(b||(b=e.createMap())).set(n.toString(),!0),t}}function ot(){if(122===re()){if(ie(),x.hasPrecedingLineBreak()||37===re())return 0;var e=ct(0);if(!x.hasPrecedingLineBreak()&&73===e.kind&&37===re())return 1}return 0}function st(n){var t=Le(198);if(t.modifiers=Tr(),hn(57,e.hasModifier(t,256)?2:0,t)||n){var r=t.type&&e.isJSDocFunctionType(t.type);if(n||37===re()||!r&&18===re())return t}}function lt(e){return 18===re()?Bt(e?2:0):26===re()||91===re()||77===re()||!Qt()||18!==re()&&91!==re()&&77!==re()&&58!==re()&&$n()?e?W(tt):H(16384,tt):Bt(16|(e?2:0))}function ct(e){return ut(e,gt())}function dt(e){return 94===e||148===e}function ut(n,t){for(;;){se();var r=e.getBinaryOperatorPrecedence(re());if(!(41===re()?r>=n:r>n))break;if(94===re()&&X())break;if(120===re()){if(x.hasPrecedingLineBreak())break;ie(),t=pt(t,Jn())}else t=mt(t,be(),ct(r))}return t}function mt(e,n,t){var r=Se(205,e.pos);return r.left=e,r.operatorToken=n,r.right=t,xe(r)}function pt(e,n){var t=Se(213,e.pos);return t.expression=e,t.type=n,xe(t)}function ft(){var e=Se(203);return e.operator=re(),ie(),e.operand=_t(),xe(e)}function gt(){if(function(){switch(re()){case 38:case 39:case 53:case 52:case 82:case 105:case 107:case 123:return!1;case 28:if(1!==o.languageVariant)return!1;default:return!0}}()){var n=yt();return 41===re()?ut(e.getBinaryOperatorPrecedence(re()),n):n}var t=re(),r=_t();if(41===re()){var a=e.skipTrivia(g,r.pos),i=r.end;195===r.kind?$(a,i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):$(a,i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(t))}return r}function _t(){switch(re()){case 38:case 39:case 53:case 52:return ft();case 82:return e=Se(199),ie(),e.expression=_t(),xe(e);case 105:return function(){var e=Se(200);return ie(),e.expression=_t(),xe(e)}();case 107:return function(){var e=Se(201);return ie(),e.expression=_t(),xe(e)}();case 28:return function(){var e=Se(195);return ge(28),e.type=Jn(),ge(30),e.expression=_t(),xe(e)}();case 123:if(123===re()&&(Y()||me(Xt)))return function(){var e=Se(202);return ie(),e.expression=_t(),xe(e)}();default:return yt()}var e}function yt(){if(44===re()||45===re())return(n=Se(203)).operator=re(),ie(),n.operand=vt(),xe(n);if(1===o.languageVariant&&28===re()&&me(je))return bt(!0);var n,t=vt();return e.Debug.assert(e.isLeftHandSideExpression(t)),44!==re()&&45!==re()||x.hasPrecedingLineBreak()?t:((n=Se(204,t.pos)).operand=t,n.operator=re(),ie(),xe(n))}function vt(){var n;if(93===re())if(me(Cn))o.flags|=524288,n=be();else if(me(Dn)){var t=x.getStartPos();ie(),ie();var r=Se(215,t);r.keywordToken=93,r.name=Ie(),n=xe(r),o.flags|=1048576}else n=ht();else n=99===re()?function(){var n=be();if(28===re()){var t=te(),r=pe(Mt);void 0!==r&&$(t,te(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===re()||24===re()||22===re())return n;var a=Se(190,n.pos);return a.expression=n,he(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),a.name=an(!0),xe(a)}():ht();return function(e){for(;;)if(e=xt(e),28!==re()&&46!==re()){if(20!==re())return e;var n=Se(192,e.pos);n.expression=e,n.arguments=Rt(),e=xe(n)}else{var t=pe(Mt);if(!t)return e;if(Ct()){e=Dt(e,t);continue}var n=Se(192,e.pos);n.expression=e,n.typeArguments=t,n.arguments=Rt(),e=xe(n)}}(n)}function ht(){return xt(It())}function bt(n){var t,r=function(e){var n=x.getStartPos();if(ge(28),30===re()){var t=Se(266,n);return de(),xe(t)}var r,a=St(),i=Rr(),o=(s=Se(269),s.properties=Je(13,At),xe(s));var s;30===re()?(r=Se(263,n),de()):(ge(42),e?ge(30):(ge(30,void 0,!1),de()),r=Se(262,n));return r.tagName=a,r.typeArguments=i,r.attributes=o,xe(r)}(n);if(263===r.kind)(a=Se(261,r.pos)).openingElement=r,a.children=Tt(a.openingElement),a.closingElement=function(e){var n=Se(264);ge(29),n.tagName=St(),e?ge(30):(ge(30,void 0,!1),de());return xe(n)}(n),E(a.openingElement.tagName,a.closingElement.tagName)||ee(a.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(g,a.openingElement.tagName)),t=xe(a);else if(266===r.kind){var a;(a=Se(265,r.pos)).openingFragment=r,a.children=Tt(a.openingFragment),a.closingFragment=function(n){var t=Se(267);ge(29),e.tokenIsIdentifierOrKeyword(re())&&ee(St(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);n?ge(30):(ge(30,void 0,!1),de());return xe(t)}(n),t=xe(a)}else e.Debug.assert(262===r.kind),t=r;if(n&&28===re()){var i=pe(function(){return bt(!0)});if(i){Q(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=Se(205,t.pos);return o.end=i.end,o.left=t,o.right=i,o.operatorToken=Ce(27,!1),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return t}function Et(n,t){switch(t){case 1:return void(e.isJsxOpeningFragment(n)?ee(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):ee(n.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,n.tagName)));case 29:case 7:return;case 11:case 12:return(r=Se(11)).text=x.getTokenValue(),r.containsOnlyTriviaWhiteSpaces=12===c,c=x.scanJsxToken(),xe(r);case 18:return Lt(!1);case 28:return bt(!1);default:return e.Debug.assertNever(t)}var r}function Tt(e){var n=[],t=te(),r=h;for(h|=16384;;){var a=Et(e,c=x.reScanJsxToken());if(!a)break;n.push(a)}return h=r,Ae(n,t)}function St(){ce();for(var e=101===re()?be():Ie();_e(24);){var n=Se(190,e.pos);n.expression=e,n.name=an(!0),e=xe(n)}return e}function Lt(e){var n=Se(271);if(ge(18))return 19!==re()&&(n.dotDotDotToken=ye(25),n.expression=et()),e?ge(19):ge(19,void 0,!1)&&de(),xe(n)}function At(){if(18===re())return function(){var e=Se(270);return ge(18),ge(25),e.expression=et(),ge(19),xe(e)}();ce();var e=Se(268);if(e.name=Ie(),60===re())switch(c=x.scanJsxAttributeValue()){case 10:e.initializer=ln();break;default:e.initializer=Lt(!0)}return xe(e)}function xt(n){for(;;){if(ye(24)){var t=Se(190,n.pos);t.expression=n,t.name=an(!0),n=xe(t)}else if(52!==re()||x.hasPrecedingLineBreak())if(J()||!_e(22)){if(!Ct())return n;n=Dt(n,void 0)}else{var r=Se(191,n.pos);if(r.expression=n,23===re())r.argumentExpression=Ce(73,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=j(et);e.isStringOrNumericLiteralLike(a)&&(a.text=De(a.text)),r.argumentExpression=a}ge(23),n=xe(r)}else{ie();var i=Se(214,n.pos);i.expression=n,n=xe(i)}}}function Ct(){return 14===re()||15===re()}function Dt(e,n){var t=Se(194,e.pos);return t.tag=e,t.typeArguments=n,t.template=14===re()?ln():on(),xe(t)}function Rt(){ge(20);var e=$e(11,kt);return ge(21),e}function Mt(){if(28===le()){ie();var e=$e(20,Jn);if(ge(30))return e&&function(){switch(re()){case 20:case 14:case 15:case 24:case 21:case 23:case 57:case 26:case 56:case 33:case 35:case 34:case 36:case 54:case 55:case 51:case 49:case 50:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function It(){switch(re()){case 8:case 9:case 10:case 14:return ln();case 101:case 99:case 97:case 103:case 88:return be();case 20:return n=Le(196),ge(20),n.expression=j(et),ge(21),xe(n);case 22:return Nt();case 18:return Pt();case 122:if(!me(zt))break;return Gt();case 77:return Ar(Le(0),210);case 91:return Gt();case 96:return function(){var n=x.getStartPos();if(ge(96),_e(24)){var t=Se(215,n);return t.keywordToken=96,t.name=Ie(),xe(t)}var r,a=It();for(;;){a=xt(a),r=pe(Mt),Ct()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),a=Dt(a,r),r=void 0);break}var i=Se(193,n);i.expression=a,i.typeArguments=r,(i.typeArguments||20===re())&&(i.arguments=Rt());return xe(i)}();case 42:case 65:if(13===(c=x.reScanSlashToken()))return ln();break;case 15:return on()}var n;return Me(e.Diagnostics.Expression_expected)}function Ot(){return 25===re()?(e=Se(209),ge(25),e.expression=tt(),xe(e)):27===re()?Se(211):tt();var e}function kt(){return H(C,Ot)}function Nt(){var e=Se(188);return ge(22),x.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=$e(15,Ot),ge(23),xe(e)}function wt(){var e=Le(0);if(ye(25))return e.kind=278,e.expression=tt(),xe(e);if(e.decorators=br(),e.modifiers=Er(),we(127))return vr(e,159);if(we(138))return vr(e,160);var n=ye(40),t=fe();if(e.name=Ne(),e.questionToken=ye(56),e.exclamationToken=ye(52),n||20===re()||28===re())return _r(e,n);if(t&&57!==re()){e.kind=277;var r=ye(60);r&&(e.equalsToken=r,e.objectAssignmentInitializer=j(tt))}else e.kind=276,ge(57),e.initializer=j(tt);return xe(e)}function Pt(){var e=Se(189);return ge(18),x.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=$e(12,wt,!0),ge(19),xe(e)}function Gt(){var n=J();n&&B(!1);var t=Le(197);t.modifiers=Er(),ge(91),t.asteriskToken=ye(40);var r=t.asteriskToken?1:0,a=e.hasModifier(t,256)?2:0;return t.name=r&&a?K(20480,Ft):r?function(e){return K(4096,e)}(Ft):a?W(Ft):Ft(),hn(57,r|a,t),t.body=Bt(r|a),n&&B(!0),xe(t)}function Ft(){return fe()?Me():void 0}function Vt(e,n){var t=Se(219);return ge(18,n)||e?(x.hasPrecedingLineBreak()&&(t.multiLine=!0),t.statements=Je(1,$t),ge(19)):t.statements=en(),xe(t)}function Bt(e,n){var t=z();V(!!(1&e));var r=Y();U(!!(2&e));var a=J();a&&B(!1);var i=Vt(!!(16&e),n);return a&&B(!0),V(t),U(r),i}function Ut(){var e=te();ge(90);var n,t,r=ye(123);if(ge(20),26!==re()&&(n=106===re()||112===re()||78===re()?ur(!0):K(2048,et)),r?ge(148):_e(148)){var a=Se(228,e);a.awaitModifier=r,a.initializer=n,a.expression=j(tt),ge(21),t=a}else if(_e(94)){var i=Se(227,e);i.initializer=n,i.expression=j(et),ge(21),t=i}else{var o=Se(226,e);o.initializer=n,ge(26),26!==re()&&21!==re()&&(o.condition=j(et)),ge(26),21!==re()&&(o.incrementor=j(et)),ge(21),t=o}return t.statement=$t(),xe(t)}function Ht(e){var n=Se(e);return ge(230===e?74:79),Ee()||(n.label=Me()),Te(),xe(n)}function Kt(){return 75===re()?(e=Se(272),ge(75),e.expression=j(et),ge(57),e.statements=Je(3,$t),xe(e)):function(){var e=Se(273);return ge(81),ge(57),e.statements=Je(3,$t),xe(e)}();var e}function jt(){var e=Se(236);return ge(104),e.tryBlock=Vt(!1),e.catchClause=76===re()?function(){var e=Se(275);ge(76),_e(20)?(e.variableDeclaration=dr(),ge(21)):e.variableDeclaration=void 0;return e.block=Vt(!1),xe(e)}():void 0,e.catchClause&&89!==re()||(ge(89),e.finallyBlock=Vt(!1)),xe(e)}function Wt(){return ie(),e.tokenIsIdentifierOrKeyword(re())&&!x.hasPrecedingLineBreak()}function qt(){return ie(),77===re()&&!x.hasPrecedingLineBreak()}function zt(){return ie(),91===re()&&!x.hasPrecedingLineBreak()}function Xt(){return ie(),(e.tokenIsIdentifierOrKeyword(re())||8===re()||9===re()||10===re())&&!x.hasPrecedingLineBreak()}function Jt(){for(;;)switch(re()){case 106:case 112:case 78:case 91:case 77:case 85:return!0;case 111:case 141:return ie(),!x.hasPrecedingLineBreak()&&fe();case 131:case 132:return rr();case 119:case 122:case 126:case 114:case 115:case 116:case 134:if(ie(),x.hasPrecedingLineBreak())return!1;continue;case 146:return ie(),18===re()||73===re()||86===re();case 93:return ie(),10===re()||40===re()||18===re()||e.tokenIsIdentifierOrKeyword(re());case 86:if(ie(),60===re()||40===re()||18===re()||81===re()||120===re())return!0;continue;case 117:ie();continue;default:return!1}}function Yt(){return me(Jt)}function Qt(){switch(re()){case 58:case 26:case 18:case 106:case 112:case 91:case 77:case 85:case 92:case 83:case 108:case 90:case 79:case 74:case 98:case 109:case 100:case 102:case 104:case 80:case 76:case 89:return!0;case 93:return Yt()||me(Rn);case 78:case 86:return Yt();case 122:case 126:case 111:case 131:case 132:case 141:case 146:return!0;case 116:case 114:case 115:case 117:case 134:return Yt()||!me(Wt);default:return $n()}}function Zt(){return ie(),fe()||18===re()||22===re()}function $t(){switch(re()){case 26:return e=Se(221),ge(26),xe(e);case 18:return Vt(!1);case 106:return pr(Le(238));case 112:if(me(Zt))return pr(Le(238));break;case 91:return fr(Le(240));case 77:return Lr(Le(241));case 92:return function(){var e=Se(223);return ge(92),ge(20),e.expression=j(et),ge(21),e.thenStatement=$t(),e.elseStatement=_e(84)?$t():void 0,xe(e)}();case 83:return function(){var e=Se(224);return ge(83),e.statement=$t(),ge(108),ge(20),e.expression=j(et),ge(21),_e(26),xe(e)}();case 108:return function(){var e=Se(225);return ge(108),ge(20),e.expression=j(et),ge(21),e.statement=$t(),xe(e)}();case 90:return Ut();case 79:return Ht(229);case 74:return Ht(230);case 98:return function(){var e=Se(231);return ge(98),Ee()||(e.expression=j(et)),Te(),xe(e)}();case 109:return function(){var e=Se(232);return ge(109),ge(20),e.expression=j(et),ge(21),e.statement=K(8388608,$t),xe(e)}();case 100:return function(){var e=Se(233);ge(100),ge(20),e.expression=j(et),ge(21);var n=Se(247);return ge(18),n.clauses=Je(2,Kt),ge(19),e.caseBlock=xe(n),xe(e)}();case 102:return function(){var e=Se(235);return ge(102),e.expression=x.hasPrecedingLineBreak()?void 0:j(et),Te(),xe(e)}();case 104:case 76:case 89:return jt();case 80:return function(){var e=Se(237);return ge(80),Te(),xe(e)}();case 58:return nr();case 122:case 111:case 141:case 131:case 132:case 126:case 78:case 85:case 86:case 93:case 114:case 115:case 116:case 119:case 117:case 134:case 146:if(Yt())return nr()}var e;return function(){var e=Le(0),n=j(et);return 73===n.kind&&_e(57)?(e.kind=234,e.label=n,e.statement=$t()):(e.kind=222,e.expression=n,Te()),xe(e)}()}function er(e){return 126===e.kind}function nr(){var n=Le(0);if(n.decorators=br(),n.modifiers=Er(),e.some(n.modifiers,er)){for(var t=0,r=n.modifiers;t<r.length;t++){r[t].flags|=4194304}return K(4194304,function(){return tr(n)})}return tr(n)}function tr(n){switch(re()){case 106:case 112:case 78:return pr(n);case 91:return fr(n);case 77:return Lr(n);case 111:return function(e){return e.kind=242,ge(111),e.name=Me(),e.typeParameters=gn(),e.heritageClauses=xr(),e.members=Mn(),xe(e)}(n);case 141:return function(e){return e.kind=243,ge(141),e.name=Me(),e.typeParameters=gn(),ge(60),e.type=Jn(),Te(),xe(e)}(n);case 85:return function(e){e.kind=244,ge(85),e.name=Me(),ge(18)?(e.members=$e(6,Ir),ge(19)):e.members=en();return xe(e)}(n);case 146:case 131:case 132:return function(e){var n=0;if(146===re())return kr(e);if(_e(132))n|=16;else if(ge(131),10===re())return kr(e);return function e(n,t){n.kind=245;var r=16&t;n.flags|=t;n.name=Me();n.body=_e(24)?e(Se(0),4|r):Or();return xe(n)}(e,n)}(n);case 93:return function(e){ge(93);var n,t=x.getStartPos();if(fe()&&(n=Me(),27!==re()&&145!==re()))return function(e,n){return e.kind=249,e.name=n,ge(60),e.moduleReference=function(){return 135===re()&&me(Nr)?(e=Se(260),ge(135),ge(20),e.expression=Pr(),ge(21),xe(e)):tn(!1);var e}(),Te(),xe(e)}(e,n);e.kind=250,(n||40===re()||18===re())&&(e.importClause=function(e,n){var t=Se(251,n);e&&(t.name=e);t.name&&!_e(27)||(t.namedBindings=40===re()?(r=Se(252),ge(40),ge(120),r.name=Me(),xe(r)):Gr(253));var r;return xe(t)}(n,t),ge(145));return e.moduleSpecifier=Pr(),Te(),xe(e)}(n);case 86:switch(ie(),re()){case 81:case 60:return function(e){e.kind=255,_e(60)?e.isExportEquals=!0:ge(81);return e.expression=tt(),Te(),xe(e)}(n);case 120:return function(e){return e.kind=248,ge(120),ge(132),e.name=Me(),Te(),xe(e)}(n);default:return function(e){e.kind=256,_e(40)?(ge(145),e.moduleSpecifier=Pr()):(e.exportClause=Gr(257),(145===re()||10===re()&&!x.hasPrecedingLineBreak())&&(ge(145),e.moduleSpecifier=Pr()));return Te(),xe(e)}(n)}default:if(n.decorators||n.modifiers){var t=Ce(259,!0,e.Diagnostics.Declaration_expected);return t.pos=n.pos,t.decorators=n.decorators,t.modifiers=n.modifiers,xe(t)}return}}function rr(){return ie(),!x.hasPrecedingLineBreak()&&(fe()||10===re())}function ar(e,n){if(18===re()||!Ee())return Bt(e,n);Te()}function ir(){if(27===re())return Se(211);var e=Se(187);return e.dotDotDotToken=ye(25),e.name=lr(),e.initializer=nt(),xe(e)}function or(){var e=Se(187);e.dotDotDotToken=ye(25);var n=fe(),t=Ne();return n&&57!==re()?e.name=t:(ge(57),e.propertyName=t,e.name=lr()),e.initializer=nt(),xe(e)}function sr(){return 18===re()||22===re()||fe()}function lr(){return 22===re()?(e=Se(186),ge(22),e.elements=$e(10,ir),ge(23),xe(e)):18===re()?function(){var e=Se(185);return ge(18),e.elements=$e(9,or),ge(19),xe(e)}():Me();var e}function cr(){return dr(!0)}function dr(e){var n=Se(238);return n.name=lr(),e&&73===n.name.kind&&52===re()&&!x.hasPrecedingLineBreak()&&(n.exclamationToken=be()),n.type=Qn(),dt(re())||(n.initializer=nt()),xe(n)}function ur(n){var t=Se(239);switch(re()){case 106:break;case 112:t.flags|=1;break;case 78:t.flags|=2;break;default:e.Debug.fail()}if(ie(),148===re()&&me(mr))t.declarations=en();else{var r=X();F(n),t.declarations=$e(8,n?dr:cr),F(r)}return xe(t)}function mr(){return He()&&21===ie()}function pr(e){return e.kind=220,e.declarationList=ur(!1),Te(),xe(e)}function fr(n){n.kind=240,ge(91),n.asteriskToken=ye(40),n.name=e.hasModifier(n,512)?Ft():Me();var t=n.asteriskToken?1:0,r=e.hasModifier(n,256)?2:0;return hn(57,t|r,n),n.body=ar(t|r,e.Diagnostics.or_expected),xe(n)}function gr(n){return pe(function(){if(125===re()?ge(125):10===re()&&20===me(ie)?pe(function(){var e=ln();return"constructor"===e.text?e:void 0}):void 0)return n.kind=158,hn(57,0,n),n.body=ar(0,e.Diagnostics.or_expected),xe(n)})}function _r(n,t,r){n.kind=157,n.asteriskToken=t;var a=t?1:0,i=e.hasModifier(n,256)?2:0;return hn(57,a|i,n),n.body=ar(a|i,r),xe(n)}function yr(n){return n.kind=155,n.questionToken||52!==re()||x.hasPrecedingLineBreak()||(n.exclamationToken=be()),n.type=Qn(),n.initializer=e.hasModifier(n,32)?j(nt):H(6144,nt),Te(),xe(n)}function vr(e,n){return e.kind=n,e.name=Ne(),hn(57,0,e),e.body=ar(0),xe(e)}function hr(){var n;if(58===re())return!0;for(;e.isModifierKind(re());){if(n=re(),e.isClassMemberModifier(n))return!0;ie()}if(40===re())return!0;if(Oe()&&(n=re(),ie()),22===re())return!0;if(void 0!==n){if(!e.isKeyword(n)||138===n||127===n)return!0;switch(re()){case 20:case 28:case 52:case 57:case 60:case 56:return!0;default:return Ee()}}return!1}function br(){for(var e,n=te();;){var t=te();if(!_e(58))break;var r=Se(153,t);r.expression=K(8192,vt),xe(r),(e||(e=[])).push(r)}return e&&Ae(e,n)}function Er(n){for(var t,r=te();;){var a=x.getStartPos(),i=re();if(78===re()&&n){if(!pe(Pe))break}else if(!e.isModifierKind(re())||!pe(Ge))break;var o=xe(Se(i,a));(t||(t=[])).push(o)}return t&&Ae(t,r)}function Tr(){var e;if(122===re()){var n=x.getStartPos(),t=re();ie(),e=Ae([xe(Se(t,n))],n)}return e}function Sr(){if(26===re()){var n=Se(218);return ie(),xe(n)}var t=Le(0);if(t.decorators=br(),t.modifiers=Er(!0),we(127))return vr(t,159);if(we(138))return vr(t,160);if(125===re()||10===re()){var r=gr(t);if(r)return r}return Tn()?Ln(t):e.tokenIsIdentifierOrKeyword(re())||10===re()||8===re()||40===re()||22===re()?function(n){var t=ye(40);return n.name=Ne(),n.questionToken=ye(56),t||20===re()||28===re()?_r(n,t,e.Diagnostics.or_expected):yr(n)}(t):t.decorators||t.modifiers?(t.name=Ce(73,!0,e.Diagnostics.Declaration_expected),yr(t)):e.Debug.fail("Should not have attempted to parse class member declaration.")}function Lr(e){return Ar(e,241)}function Ar(e,n){return e.kind=n,ge(77),e.name=!fe()||110===re()&&me(Ke)?void 0:Me(),e.typeParameters=gn(),e.heritageClauses=xr(),ge(18)?(e.members=Je(5,Sr),ge(19)):e.members=en(),xe(e)}function xr(){if(Mr())return Je(22,Cr)}function Cr(){var n=re();e.Debug.assert(87===n||110===n);var t=Se(274);return t.token=n,ie(),t.types=$e(7,Dr),xe(t)}function Dr(){var e=Se(212);return e.expression=vt(),e.typeArguments=Rr(),xe(e)}function Rr(){return 28===re()?nn(20,Jn,28,30):void 0}function Mr(){return 87===re()||110===re()}function Ir(){var e=Le(279);return e.name=Ne(),e.initializer=j(nt),xe(e)}function Or(){var e=Se(246);return ge(18)?(e.statements=Je(1,$t),ge(19)):e.statements=en(),xe(e)}function kr(e){return e.kind=245,146===re()?(e.name=Me(),e.flags|=512):(e.name=ln(),e.name.text=De(e.name.text)),18===re()?e.body=Or():Te(),xe(e)}function Nr(){return 20===ie()}function wr(){return 42===ie()}function Pr(){if(10===re()){var e=ln();return e.text=De(e.text),e}return et()}function Gr(e){var n=Se(e);return n.elements=nn(23,253===e?Vr:Fr,18,19),xe(n)}function Fr(){return Br(258)}function Vr(){return Br(254)}function Br(n){var t=Se(n),r=e.isKeyword(re())&&!fe(),a=x.getTokenPos(),i=x.getTextPos(),o=Ie();return 120===re()?(t.propertyName=o,ge(120),r=e.isKeyword(re())&&!fe(),a=x.getTokenPos(),i=x.getTextPos(),t.name=Ie()):t.name=o,254===n&&r&&$(a,i,e.Diagnostics.Identifier_expected),xe(t)}function Ur(n){return e.hasModifier(n,1)||249===n.kind&&260===n.moduleReference.kind||250===n.kind||255===n.kind||256===n.kind?n:void 0}function Hr(n){return function(n){return e.isMetaProperty(n)&&93===n.keywordToken&&"meta"===n.name.escapedText}(n)?n:u(n,Hr)}n.parseSourceFile=function(n,t,r,a,i,o){if(void 0===i&&(i=!1),6===(o=e.ensureScriptKind(n,o))){var s=R(n,t,r,a,i);return e.convertToObjectWorker(s,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=e.emptyArray,s.typeReferenceDirectives=e.emptyArray,s.libReferenceDirectives=e.emptyArray,s.amdDependencies=e.emptyArray,s.hasNoDefaultLib=!1,s.pragmas=e.emptyMap,s}I(t,r,a,o);var l=k(n,r,i,o);return O(),l},n.parseIsolatedEntityName=function(e,n){I(e,n,void 0,1),ie();var t=tn(!0),r=1===re()&&!s.length;return O(),r?t:void 0},n.parseJsonText=R,n.fixupParentReferences=w,function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.Count=24]="Count"}(S||(S={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(L||(L={})),function(n){function t(n){var t,r=Se(289),a=(n?_e:ge)(18);return r.type=K(2097152,pn),n&&!a||(t=19,re()===t?oe():Q(e.Diagnostics._0_expected,e.tokenToString(t))),w(r),xe(r)}var r,a;function i(n,r){void 0===n&&(n=0);var a=g,i=void 0===r?a.length:n+r;if(r=i-n,e.Debug.assert(n>=0),e.Debug.assert(n<=i),e.Debug.assert(i<=a.length),d(a,n)){var o,s,l,c=[];return x.scanRange(n+3,r-5,function(){var e,t,r=1,d=n-Math.max(a.lastIndexOf("\n",n),0)+4;function p(n){e||(e=d),c.push(n),d+=n.length}for(oe();k(5););k(4)&&(r=0,d=0);e:for(;;){switch(re()){case 58:0===r||1===r?(m(c),b(y(d)),r=0,e=void 0):p(x.getTokenText());break;case 4:c.push(x.getTokenText()),r=0,d=0;break;case 40:var f=x.getTokenText();1===r||2===r?(r=2,p(f)):(r=1,d+=f.length);break;case 5:var g=x.getTokenText();2===r?c.push(g):void 0!==e&&d+g.length>e&&c.push(g.slice(e-d-1)),d+=g.length;break;case 1:break e;default:r=2,p(x.getTokenText())}oe()}return u(c),m(c),(t=Se(298,n)).tags=o&&Ae(o,s,l),t.comment=c.length?c.join(""):void 0,xe(t,i)})}function u(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function m(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function p(){for(;;){if(oe(),1===re())return!0;if(5!==re()&&4!==re())return!1}}function f(){if(5!==re()&&4!==re()||!me(p))for(;5===re()||4===re();)oe()}function _(){if((5===re()||4===re())&&me(p))return"";for(var e=x.hasPrecedingLineBreak(),n=!1,t="";e&&40===re()||5===re()||4===re();)t+=x.getTokenText(),4===re()?(e=!0,n=!0,t=""):40===re()&&(e=!1),oe();return n?t:""}function y(n){e.Debug.assert(58===re());var r=x.getTokenPos();oe();var a,i=N(void 0),s=_();switch(i.escapedText){case"author":a=function(e,n,t){var r=Se(303,e);r.tagName=n;var a=pe(function(){return function(){var e=[],n=!1,t=!1,r=x.getToken();e:for(;;){switch(r){case 73:case 5:case 24:case 58:e.push(x.getTokenText());break;case 28:if(n||t)return;n=!0,e.push(x.getTokenText());break;case 30:if(!n||t)return;t=!0,e.push(x.getTokenText()),x.setTextPos(x.getTokenPos()+1);break e;case 4:case 1:break e}r=oe()}if(n&&t)return 0===e.length?void 0:e.join("")}()});if(!a)return xe(r);if(r.comment=a,me(function(){return 4!==ie()})){var i=h(t);i&&(r.comment+=i)}return xe(r)}(r,i,n);break;case"augments":case"extends":a=function(e,n){var t=Se(302,e);return t.tagName=n,t.class=function(){var e=_e(18),n=Se(212);n.expression=function(){for(var e=N();_e(24);){var n=Se(190,e.pos);n.expression=e,n.name=N(),e=xe(n)}return e}(),n.typeArguments=Rr();var t=xe(n);return e&&ge(19),t}(),xe(t)}(r,i);break;case"class":case"constructor":a=function(e,n){var t=Se(304,e);return t.tagName=n,xe(t)}(r,i);break;case"this":a=function(e,n){var r=Se(309,e);return r.tagName=n,r.typeExpression=t(!0),f(),xe(r)}(r,i);break;case"enum":a=function(e,n){var r=Se(306,e);return r.tagName=n,r.typeExpression=t(!0),f(),xe(r)}(r,i);break;case"arg":case"argument":case"param":return L(r,i,2,n);case"return":case"returns":a=function(n,t){e.some(o,e.isJSDocReturnTag)&&$(t.pos,x.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var r=Se(308,n);return r.tagName=t,r.typeExpression=E(),xe(r)}(r,i);break;case"template":a=function(n,r){var a;18===re()&&(a=t());var i=[],o=te();do{f();var s=Se(151);s.name=N(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),xe(s),f(),i.push(s)}while(k(27));var l=Se(311,n);return l.tagName=r,l.constraint=a,l.typeParameters=Ae(i,o),xe(l),l}(r,i);break;case"type":a=A(r,i);break;case"typedef":a=function(n,t,r){var a=E();_();var i,o=Se(312,n);if(o.tagName=t,o.fullName=C(),o.name=D(o.fullName),f(),o.comment=h(r),o.typeExpression=a,!a||S(a.type)){for(var s=void 0,l=void 0,c=void 0;s=pe(function(){return M(r)});)if(l||(l=Se(299,n)),310===s.kind){if(c)break;c=s}else l.jsDocPropertyTags=e.append(l.jsDocPropertyTags,s);l&&(a&&170===a.type.kind&&(l.isArrayType=!0),o.typeExpression=c&&c.typeExpression&&!S(c.typeExpression.type)?c.typeExpression:xe(l),i=o.typeExpression.end)}return xe(o,i||void 0!==o.comment?x.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(r,i,n);break;case"callback":a=function(n,t,r){var a,i=Se(305,n);i.tagName=t,i.fullName=C(),i.name=D(i.fullName),f(),i.comment=h(r);var o=Se(300,n);o.parameters=[];for(;a=pe(function(){return I(4,r)});)o.parameters=e.append(o.parameters,a);var s=pe(function(){if(k(58)){var e=y(r);if(e&&308===e.kind)return e}});s&&(o.type=s);return i.typeExpression=xe(o),xe(i)}(r,i,n);break;default:a=function(e,n){var t=Se(301,e);return t.tagName=n,xe(t)}(r,i)}return a.comment||(s||(n+=a.end-a.pos),a.comment=h(n,s.slice(n))),a}function h(n,t){var r,a=[],i=0;function o(e){r||(r=n),a.push(e),n+=e.length}t&&(o(t),i=2);var s=re();e:for(;;){switch(s){case 4:i>=1&&(i=0,a.push(x.getTokenText())),n=0;break;case 58:if(3===i){a.push(x.getTokenText());break}x.setTextPos(x.getTextPos()-1);case 1:break e;case 5:if(2===i||3===i)o(x.getTokenText());else{var l=x.getTokenText();void 0!==r&&n+l.length>r&&a.push(l.slice(r-n)),n+=l.length}break;case 18:i=2,me(function(){return 58===oe()&&e.tokenIsIdentifierOrKeyword(oe())&&"link"===x.getTokenText()})&&(o(x.getTokenText()),oe(),o(x.getTokenText()),oe()),o(x.getTokenText());break;case 59:i=3===i?2:3,o(x.getTokenText());break;case 40:if(0===i){i=1,n+=1;break}default:3!==i&&(i=2),o(x.getTokenText())}s=oe()}return u(a),m(a),0===a.length?void 0:a.join("")}function b(e){e&&(o?o.push(e):(o=[e],s=e.pos),l=e.end)}function E(){return _(),18===re()?t():void 0}function T(){var n=k(22);n&&f();var t,r=k(59),a=function(){var e=N();_e(22)&&ge(23);for(;_e(24);){var n=N();_e(22)&&ge(23),e=rn(e,n)}return e}();return r&&(ve(t=59)||Ce(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))),n&&(f(),ye(60)&&et(),ge(23)),{name:a,isBracketed:n}}function S(n){switch(n.kind){case 137:return!0;case 170:return S(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText}}function L(n,t,r,a){var i=E(),o=!i;_();var s=T(),l=s.name,c=s.isBracketed;f(),o&&(i=E());var d=Se(1===r?313:307,n),u=h(a+x.getStartPos()-n),m=4!==r&&function(n,t,r,a){if(n&&S(n.type)){for(var i=Se(289,x.getTokenPos()),o=void 0,s=void 0,l=x.getStartPos(),c=void 0;o=pe(function(){return I(r,a,t)});)307!==o.kind&&313!==o.kind||(c=e.append(c,o));if(c)return(s=Se(299,l)).jsDocPropertyTags=c,170===n.type.kind&&(s.isArrayType=!0),i.type=xe(s),xe(i)}}(i,l,r,a);return m&&(i=m,o=!0),d.tagName=t,d.typeExpression=i,d.name=l,d.isNameFirst=o,d.isBracketed=c,d.comment=u,xe(d)}function A(n,r){e.some(o,e.isJSDocTypeTag)&&$(r.pos,x.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=Se(310,n);return a.tagName=r,a.typeExpression=t(!0),xe(a)}function C(n){var t=x.getTokenPos();if(e.tokenIsIdentifierOrKeyword(re())){var r=N();if(_e(24)){var a=Se(245,t);return n&&(a.flags|=4),a.name=r,a.body=C(!0),xe(a)}return n&&(r.isInJSDocNamespace=!0),r}}function D(n){if(n)for(var t=n;;){if(e.isIdentifier(t)||!t.body)return e.isIdentifier(t)?t:t.name;t=t.body}}function R(n,t){for(;!e.isIdentifier(n)||!e.isIdentifier(t);){if(e.isIdentifier(n)||e.isIdentifier(t)||n.right.escapedText!==t.right.escapedText)return!1;n=n.left,t=t.left}return n.escapedText===t.escapedText}function M(e){return I(1,e)}function I(n,t,r){for(var a=!0,i=!1;;)switch(oe()){case 58:if(a){var o=O(n,t);return!(o&&(307===o.kind||313===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!R(r,o.name.left)))&&o}i=!1;break;case 4:a=!0,i=!1;break;case 40:i&&(a=!1),i=!0;break;case 73:a=!1;break;case 1:return!1}}function O(n,t){e.Debug.assert(58===re());var r=x.getStartPos();oe();var a,i=N();switch(f(),i.escapedText){case"type":return 1===n&&A(r,i);case"prop":case"property":a=1;break;case"arg":case"argument":case"param":a=6;break;default:return!1}return!!(n&a)&&L(r,i,n,t)}function k(e){return re()===e&&(oe(),!0)}function N(n){if(!e.tokenIsIdentifierOrKeyword(re()))return Ce(73,!n,n||e.Diagnostics.Identifier_expected);v++;var t=x.getTokenPos(),r=x.getTextPos(),a=Se(73,t);return 73!==re()&&(a.originalKeywordKind=re()),a.escapedText=e.escapeLeadingUnderscores(De(x.getTokenValue())),xe(a,r),oe(),a}}n.parseJSDocTypeExpressionForTests=function(e,n,r){I(e,99,void 0,1),o=P("file.js",99,1,!1),x.setText(e,n,r),c=x.scan();var a=t(),i=s;return O(),a?{jsDocTypeExpression:a,diagnostics:i}:void 0},n.parseJSDocTypeExpression=t,n.parseIsolatedJSDocComment=function(e,n,t){I(e,99,void 0,1),o={languageVariant:0,text:e};var r=K(2097152,function(){return i(n,t)}),a=s;return O(),r?{jsDoc:r,diagnostics:a}:void 0},n.parseJSDocComment=function(e,n,t){var r,a=c,l=s.length,d=D,u=K(2097152,function(){return i(n,t)});return u&&(u.parent=e),65536&T&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(r=o.jsDocDiagnostics).push.apply(r,s)),c=a,s.length=l,D=d,u},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(r||(r={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(A=n.JSDocParser||(n.JSDocParser={}))}(o||(o={})),function(n){function t(n,t,a,o,s,l){return void(t?d(n):c(n));function c(n){var t="";if(l&&r(n)&&(t=o.substring(n.pos,n.end)),n._children&&(n._children=void 0),n.pos+=a,n.end+=a,l&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),u(n,c,d),e.hasJSDocNodes(n))for(var m=0,p=n.jsDoc;m<p.length;m++){c(p[m])}i(n,l)}function d(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 r(e){switch(e.kind){case 10:case 8:case 73:return!0}return!1}function a(n,t,r,a,i){e.Debug.assert(n.end>=t,"Adjusting an element that was entirely before the change range"),e.Debug.assert(n.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(n.pos<=n.end),n.pos=Math.min(n.pos,a),n.end>=r?n.end+=i:n.end=Math.min(n.end,a),e.Debug.assert(n.pos<=n.end),n.parent&&(e.Debug.assert(n.pos>=n.parent.pos),e.Debug.assert(n.end<=n.parent.end))}function i(n,t){if(t){var r=n.pos,a=function(n){e.Debug.assert(n.pos>=r),r=n.end};if(e.hasJSDocNodes(n))for(var i=0,o=n.jsDoc;i<o.length;i++){a(o[i])}u(n,a),e.Debug.assert(r<=n.end)}}function s(n,t){var r,a=n;if(u(n,function n(i){if(e.nodeIsMissing(i))return;if(!(i.pos<=t))return e.Debug.assert(i.pos>t),!0;if(i.pos>=a.pos&&(a=i),t<i.end)return u(i,n),!0;e.Debug.assert(i.end<=t),r=i}),r){var i=function(n){for(;;){var t=e.getLastChild(n);if(!t)return n;n=t}}(r);i.pos>a.pos&&(a=i)}return a}function l(n,t,r,a){var i=n.text;if(r&&(e.Debug.assert(i.length-r.span.length+r.newLength===t.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,r.span.start),s=t.substr(0,r.span.start);e.Debug.assert(o===s);var l=i.substring(e.textSpanEnd(r.span),i.length),c=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(l===c)}}var c;n.updateSourceFile=function(n,r,c,d){if(l(n,r,c,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(c))return n;if(0===n.statements.length)return o.parseSourceFile(n.fileName,r,n.languageVersion,void 0,!0,n.scriptKind);var m=n;e.Debug.assert(!m.hasBeenIncrementallyParsed),m.hasBeenIncrementallyParsed=!0;var p=n.text,f=function(n){var t=n.statements,r=0;e.Debug.assert(r<t.length);var a=t[r],i=-1;return{currentNode:function(o){return o!==i&&(a&&a.end===o&&r<t.length-1&&(a=t[++r]),a&&a.pos===o||function(e){return t=void 0,r=-1,a=void 0,void u(n,i,o);function i(n){return e>=n.pos&&e<n.end&&(u(n,i,o),!0)}function o(n){if(e>=n.pos&&e<n.end)for(var s=0;s<n.length;s++){var l=n[s];if(l){if(l.pos===e)return t=n,r=s,a=l,!0;if(l.pos<e&&e<l.end)return u(l,i,o),!0}}return!1}}(o)),i=o,e.Debug.assert(!a||a.pos===o),a}}}(n),g=function(n,t){for(var r=t.span.start,a=0;r>0&&a<=1;a++){var i=s(n,r);e.Debug.assert(i.pos<=r);var o=i.pos;r=Math.max(0,o-1)}var l=e.createTextSpanFromBounds(r,e.textSpanEnd(t.span)),c=t.newLength+(t.span.start-r);return e.createTextChangeRange(l,c)}(n,c);l(n,r,g,d),e.Debug.assert(g.span.start<=c.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(c.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(c)));var _=e.textChangeRangeNewSpan(g).length-g.span.length;return function(n,r,o,s,l,c,d,m){return void p(n);function p(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!1,l,c,d,m);else{var g=n.end;if(g>=r){if(n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,l),u(n,p,f),e.hasJSDocNodes(n))for(var _=0,y=n.jsDoc;_<y.length;_++){var v=y[_];p(v)}i(n,m)}else e.Debug.assert(g<r)}}function f(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!0,l,c,d,m);else{var i=n.end;if(i>=r){n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,l);for(var u=0,f=n;u<f.length;u++){var g=f[u];p(g)}}else e.Debug.assert(i<r)}}}(m,g.span.start,e.textSpanEnd(g.span),e.textSpanEnd(e.textChangeRangeNewSpan(g)),_,p,r,d),o.parseSourceFile(n.fileName,r,n.languageVersion,f,!0,n.scriptKind)},function(e){e[e.Value=-1]="Value"}(c||(c={}))}(s||(s={})),e.isDeclarationFileName=m,e.processCommentPragmas=p,e.processPragmasIntoFields=f;var g=e.createMap();function _(e){if(g.has(e))return g.get(e);var n=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return g.set(e,n),n}var y=/^\/\/\/\s*<(\S+)\s.*?\/>/im,v=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function h(n,t,r){var a=2===t.kind&&y.exec(r);if(a){var i=a[1].toLowerCase(),o=e.commentPragmas[i];if(!(o&&1&o.kind))return;if(o.args){for(var s={},l=0,c=o.args;l<c.length;l++){var d=c[l],u=_(d.name).exec(r);if(!u&&!d.optional)return;if(u)if(d.captureSpan){var m=t.pos+u.index+u[1].length+u[2].length;s[d.name]={value:u[3],pos:m,end:m+u[3].length}}else s[d.name]=u[3]}n.push({name:i,args:{arguments:s,range:t}})}else n.push({name:i,args:{arguments:{},range:t}})}else{var p=2===t.kind&&v.exec(r);if(p)return b(n,t,2,p);if(3===t.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,g=void 0;g=f.exec(r);)b(n,t,4,g)}}function b(n,t,r,a){if(a){var i=a[1].toLowerCase(),o=e.commentPragmas[i];if(o&&o.kind&r){var s=function(n,t){if(!t)return{};if(!n.args)return{};for(var r=t.split(/\s+/),a={},i=0;i<n.args.length;i++){var o=n.args[i];if(!r[i]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");a[o.name]=r[i]}return a}(o,a[2]);"fail"!==s&&n.push({name:i,args:{arguments:s,range:t}})}}}function E(e,n){return e.kind===n.kind&&(73===e.kind?e.escapedText===n.escapedText:101===e.kind||e.name.escapedText===n.name.escapedText&&E(e.expression,n.expression))}e.tagNamesAreEquivalent=E}(u||(u={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var n,t,r=[["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"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.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.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.esnext.bigint.d.ts"]];function a(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function i(){return n||(n=l(e.optionDeclarations))}function l(n){var t=e.createMap(),r=e.createMap();return e.forEach(n,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),{optionNameMap:t,shortOptionNames:r}}function c(n){return d(n,e.createCompilerDiagnostic)}function d(n,t){var r=e.arrayFrom(n.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return t(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+n.name,r)}function u(e,n,t){return W(e,q(n||""),t)}function m(n,t,r){if(void 0===t&&(t=""),t=q(t),!e.startsWith(t,"-")){if(""===t)return[];var a=t.split(",");switch(n.element.type){case"number":return e.map(a,parseInt);case"string":return e.map(a,function(e){return e||""});default:return e.mapDefined(a,function(e){return u(n.element,e,r)})}}}function p(n,t,r,a){var i=t[0],o=t[1],s={},l=[],c=[];return d(r),{options:s,fileNames:l,errors:c};function d(t){for(var r=0;r<t.length;){var a=t[r];if(r++,64===a.charCodeAt(0))p(a.slice(1));else if(45===a.charCodeAt(0)){var d=g(n,a.slice(45===a.charCodeAt(1)?2:1),!0);if(d)if(d.isTSConfigOnly)c.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,d.name));else switch(t[r]||"boolean"===d.type||c.push(e.createCompilerDiagnostic(o,d.name)),d.type){case"number":s[d.name]=parseInt(t[r]),r++;break;case"boolean":var f=t[r];s[d.name]="false"!==f,"false"!==f&&"true"!==f||r++;break;case"string":s[d.name]=t[r]||"",r++;break;case"list":var _=m(d,t[r],c);s[d.name]=_||[],_&&r++;break;default:s[d.name]=u(d,t[r],c),r++}else c.push(e.createCompilerDiagnostic(i,a))}else l.push(a)}}function p(n){var t=a?a(n):e.sys.readFile(n);if(t){for(var r=[],i=0;;){for(;i<t.length&&t.charCodeAt(i)<=32;)i++;if(i>=t.length)break;var o=i;if(34===t.charCodeAt(o)){for(i++;i<t.length&&34!==t.charCodeAt(i);)i++;i<t.length?(r.push(t.substring(o+1,i)),i++):c.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,n))}else{for(;t.charCodeAt(i)>32;)i++;r.push(t.substring(o,i))}}d(r)}else c.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,n))}}function f(e,n){return g(i,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){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.createCompilerDiagnostic.apply(void 0,arguments).messageText}function y(n,t){var r=e.parseJsonText(n,t);return{config:E(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function v(n,t){var r=h(n,t);return e.isString(r)?e.parseJsonText(n,r):{parseDiagnostics:[r]}}function h(n,t){var r;try{r=t(n)}catch(t){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,n):r}function b(n){return e.arrayToMap(n,function(e){return e.name})}function E(e,n){return T(e,n,!0,void 0,void 0)}function T(n,t,r,a,i){return n.statements.length?l(n.statements[0].expression,a):r?{}:void 0;function o(e){return a&&a.elementOptions===e}function s(a,s,d,u){for(var m=r?{}:void 0,p=0,f=a.properties;p<f.length;p++){var g=f[p];if(276===g.kind){g.questionToken&&t.push(e.createDiagnosticForNodeInSourceFile(n,g.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),c(g.name)||t.push(e.createDiagnosticForNodeInSourceFile(n,g.name,e.Diagnostics.String_literal_with_double_quotes_expected));var _=e.getTextOfPropertyName(g.name),y=_&&e.unescapeLeadingUnderscores(_),v=y&&s?s.get(y):void 0;y&&d&&!v&&t.push(e.createDiagnosticForNodeInSourceFile(n,g.name,d,y));var h=l(g.initializer,v);if(void 0!==y&&(r&&(m[y]=h),i&&(u||o(s)))){var b=L(v,h);u?b&&i.onSetValidOptionKeyValueInParent(u,v,h):o(s)&&(b?i.onSetValidOptionKeyValueInRoot(y,g.name,h,g.initializer):v||i.onSetUnknownOptionKeyValueInRoot(y,g.name,h,g.initializer))}}else t.push(e.createDiagnosticForNodeInSourceFile(n,g,e.Diagnostics.Property_assignment_expected))}return m}function l(a,i){switch(a.kind){case 103:return _(i&&"boolean"!==i.type),!0;case 88:return _(i&&"boolean"!==i.type),!1;case 97:return _(i&&"extends"===i.name),null;case 10:c(a)||t.push(e.createDiagnosticForNodeInSourceFile(n,a,e.Diagnostics.String_literal_with_double_quotes_expected)),_(i&&e.isString(i.type)&&"string"!==i.type);var o=a.text;if(i&&!e.isString(i.type)){var u=i;u.type.has(o.toLowerCase())||t.push(d(u,function(t,r,i){return e.createDiagnosticForNodeInSourceFile(n,a,t,r,i)}))}return o;case 8:return _(i&&"number"!==i.type),Number(a.text);case 203:if(39!==a.operator||8!==a.operand.kind)break;return _(i&&"number"!==i.type),-Number(a.operand.text);case 189:_(i&&"object"!==i.type);var m=a;if(i){var p=i;return s(m,p.elementOptions,p.extraKeyDiagnosticMessage,p.name)}return s(m,void 0,void 0,void 0);case 188:return _(i&&"list"!==i.type),f=a.elements,g=i&&i.element,r?e.filter(f.map(function(e){return l(e,g)}),function(e){return void 0!==e}):f.forEach(function(e){return l(e,g)})}var f,g;return void(i?_(!0):t.push(e.createDiagnosticForNodeInSourceFile(n,a,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function _(r){r&&t.push(e.createDiagnosticForNodeInSourceFile(n,a,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,i.name,S(i)))}}function c(t){return e.isStringLiteral(t)&&e.isStringDoubleQuoted(t,n)}}function S(n){return"list"===n.type?"Array":e.isString(n.type)?n.type:"string"}function L(n,t){return!!n&&(!!R(t)||("list"===n.type?e.isArray(t):typeof t===(e.isString(n.type)?n.type:"string")))}function A(n,t){return e.forEachEntry(t,function(e,t){if(e===n)return t})}function x(n,t){var r=e.createMap(),a=i().optionNameMap,o=t&&e.createGetCanonicalFileName(t.useCaseSensitiveFileNames),s=function(i){if(e.hasProperty(n,i)){if(a.has(i)&&a.get(i).category===e.Diagnostics.Command_line_Options)return"continue";var s=n[i],l=a.get(i.toLowerCase());if(l){var c=function e(n){return"string"===n.type||"number"===n.type||"boolean"===n.type||"object"===n.type?void 0:"list"===n.type?e(n.element):n.type}(l);c?"list"===l.type?r.set(i,s.map(function(e){return A(e,c)})):r.set(i,A(s,c)):t&&l.isFilePath?r.set(i,e.getRelativePathFromFile(t.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(t.configFilePath)),o)):r.set(i,s)}}};for(var l in n)s(l);return r}function C(e,n,t,r,a,i,o,s){return I(void 0,e,n,t,r,a,i,o,s)}function D(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function R(e){return void 0===e||null===e}function M(n,t){return e.getDirectoryPath(e.getNormalizedAbsolutePath(n,t))}function I(n,t,r,a,i,o,s,l,c){void 0===i&&(i={}),void 0===s&&(s=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===n&&void 0!==t||void 0!==n&&void 0===t);var d,u=[],m=P(n,t,r,a,o,s,u,c),p=m.raw,f=e.extend(i,m.options||{});f.configFilePath=o&&e.normalizeSlashes(o),D(f,t);var g=function(){var n,i,c;if(e.hasProperty(p,"files")&&!R(p.files))if(e.isArray(p.files)){n=p.files;var m=e.hasProperty(p,"references")&&!R(p.references),g=!m||0===p.references.length,_=e.hasProperty(p,"extends");if(0===n.length&&g&&!_)if(t){var y=o||"tsconfig.json",v=e.Diagnostics.The_files_list_in_config_file_0_is_empty,b=e.firstDefined(e.getTsConfigPropArray(t,"files"),function(e){return e.initializer}),E=b?e.createDiagnosticForNodeInSourceFile(t,b,v,y):e.createCompilerDiagnostic(v,y);u.push(E)}else h(e.Diagnostics.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json")}else h(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");e.hasProperty(p,"include")&&!R(p.include)&&(e.isArray(p.include)?i=p.include:h(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(e.hasProperty(p,"exclude")&&!R(p.exclude))e.isArray(p.exclude)?c=p.exclude:h(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(p.compilerOptions){var T=p.compilerOptions.outDir,S=p.compilerOptions.declarationDir;(T||S)&&(c=[T,S].filter(function(e){return!!e}))}void 0===n&&void 0===i&&(i=["**/*"]);var L=function(n,t,r,a,i,o,s,l,c){var d,u;a=e.normalizePath(a),t&&(d=Z(t,s,!1,c,"include"));r&&(u=Z(r,s,!0,c,"exclude"));var m=function(n,t,r,a){var i=e.getRegularExpressionForWildcard(t,r,"exclude"),o=i&&new RegExp(i,a?"":"i"),s={};if(void 0!==n){for(var l=[],c=0,d=n;c<d.length;c++){var u=d[c],m=e.normalizePath(e.combinePaths(r,u));if(!o||!o.test(m)){var p=$(m,a);if(p){var f=p.key,g=p.flags,_=s[f];(void 0===_||_<g)&&(s[f]=g,1===g&&l.push(f))}}}for(var f in s)if(e.hasProperty(s,f))for(var y=0,v=l;y<v.length;y++){var h=v[y];f!==h&&e.containsPath(h,f,r,!a)&&delete s[f]}}return s}(d,u,a,o.useCaseSensitiveFileNames);return Q({filesSpecs:n,includeSpecs:t,excludeSpecs:r,validatedIncludeSpecs:d,validatedExcludeSpecs:u,wildcardDirectories:m},a,i,o,l)}(n,i,c,o?M(o,a):a,f,r,u,l,t);k(L,N(p),s)&&u.push(O(L.spec,o));if(e.hasProperty(p,"references")&&!R(p.references))if(e.isArray(p.references))for(var A=0,x=p.references;A<x.length;A++){var C=x[A];"string"!=typeof C.path?h(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(d||(d=[])).push({path:e.getNormalizedAbsolutePath(C.path,a),originalPath:C.path,prepend:C.prepend,circular:C.circular})}else h(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return L}(),_=g.fileNames,y=g.wildcardDirectories,v=g.spec;return{options:f,fileNames:_,projectReferences:d,typeAcquisition:m.typeAcquisition||B(),raw:p,errors:u,wildcardDirectories:y,compileOnSave:!!p.compileOnSave,configFileSpecs:v};function h(n,r,a){t||u.push(e.createCompilerDiagnostic(n,r,a))}}function O(n,t){var r=n.includeSpecs,a=n.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(r||[]),JSON.stringify(a||[]))}function k(e,n,t){return 0===e.fileNames.length&&n&&(!t||0===t.length)}function N(n){return!e.hasProperty(n,"files")&&!e.hasProperty(n,"references")}function w(e){return!!e.options}function P(n,r,a,i,s,l,c,d){i=e.normalizeSlashes(i);var u=e.getNormalizedAbsolutePath(s||"",i);if(l.indexOf(u)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o(l,[u]).join(" -> "))),{raw:n||E(r,c)};var m=n?function(n,t,r,a,i){e.hasProperty(n,"excludes")&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=V(n.compilerOptions,r,i,a),l=U(n.typeAcquisition||n.typingOptions,r,i,a);if(n.compileOnSave=function(n,t,r){if(!e.hasProperty(n,e.compileOnSaveCommandLineOption.name))return!1;var a=K(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return"boolean"==typeof a&&a}(n,r,i),n.extends)if(e.isString(n.extends)){var c=a?M(a,r):r;o=G(n.extends,t,c,i,e.createCompilerDiagnostic)}else i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:n,options:s,typeAcquisition:l,extendedConfigPath:o}}(n,a,i,s,c):function(n,r,a,i,o){var s,l,c,d=F(i),u={onSetValidOptionKeyValueInParent:function(n,t,r){e.Debug.assert("compilerOptions"===n||"typeAcquisition"===n||"typingOptions"===n);var o="compilerOptions"===n?d:"typeAcquisition"===n?s||(s=B(i)):l||(l=B(i));o[t.name]=function n(t,r,a){if(R(a))return;if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(a,function(e){return n(i.element,r,e)}),function(e){return!!e}):a}if(!e.isString(t.type))return t.type.get(e.isString(a)?a.toLowerCase():a);return j(t,r,a)}(t,a,r)},onSetValidOptionKeyValueInRoot:function(t,s,l,d){switch(t){case"extends":var u=i?M(i,a):a;return void(c=G(l,r,u,o,function(t,r){return e.createDiagnosticForNodeInSourceFile(n,d,t,r)}))}},onSetUnknownOptionKeyValueInRoot:function(t,r,a,i){"excludes"===t&&o.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},m=T(n,o,!0,(void 0===t&&(t={name:void 0,type:"object",elementOptions:b([{name:"compilerOptions",type:"object",elementOptions:b(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),t),u);s||(s=l?void 0!==l.enableAutoDiscovery?{enable:l.enableAutoDiscovery,include:l.include,exclude:l.exclude}:l:B(i));return{raw:m,options:d,typeAcquisition:s,extendedConfigPath:c}}(r,a,i,s,c);if(m.extendedConfigPath){l=l.concat([u]);var p=function(n,t,r,a,i,o,s){var l,c,d,u,m=r.useCaseSensitiveFileNames?t:e.toLowerCase(t);if(s&&(c=s.get(m)))d=c.extendedResult,u=c.extendedConfig;else{if(!(d=v(t,function(e){return r.readFile(e)})).parseDiagnostics.length){var p=e.getDirectoryPath(t);if(w(u=P(void 0,d,r,p,e.getBaseFileName(t),i,o,s))){var f=e.convertToRelativePath(p,a,e.identity),g=function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(f,n)},_=function(n){y[n]&&(y[n]=e.map(y[n],g))},y=u.raw;_("include"),_("exclude"),_("files")}}s&&s.set(m,{extendedResult:d,extendedConfig:u})}n&&(n.extendedSourceFiles=[d.fileName],d.extendedSourceFiles&&(l=n.extendedSourceFiles).push.apply(l,d.extendedSourceFiles));if(d.parseDiagnostics.length)return void o.push.apply(o,d.parseDiagnostics);return u}(r,m.extendedConfigPath,a,i,l,c,d);if(p&&w(p)){var f=p.raw,g=m.raw,_=function(e){var n=g[e]||f[e];n&&(g[e]=n)};_("include"),_("exclude"),_("files"),void 0===g.compileOnSave&&(g.compileOnSave=f.compileOnSave),m.options=e.assign({},p.options,m.options)}}return m}function G(n,t,r,a,i){if(n=e.normalizeSlashes(n),e.isRootedDiskPath(n)||e.startsWith(n,"./")||e.startsWith(n,"../")){var o=e.getNormalizedAbsolutePath(n,r);return t.fileExists(o)||e.endsWith(o,".json")||(o+=".json",t.fileExists(o))?o:void a.push(i(e.Diagnostics.File_0_not_found,n))}var s=e.nodeModuleNameResolver(n,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;a.push(i(e.Diagnostics.File_0_not_found,n))}function F(n){return n&&"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function V(n,t,r,a){var i=F(a);return H(e.optionDeclarations,n,t,i,e.Diagnostics.Unknown_compiler_option_0,r),a&&(i.configFilePath=e.normalizeSlashes(a)),i}function B(n){return{enable:!!n&&"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function U(n,t,r,i){var o=B(i),s=a(n);return H(e.typeAcquisitionDeclarations,s,t,o,e.Diagnostics.Unknown_type_acquisition_option_0,r),o}function H(n,t,r,a,i,o){if(t){var s=b(n);for(var l in t){var c=s.get(l);c?a[c.name]=K(c,t[l],r,o):o.push(e.createCompilerDiagnostic(i,l))}}}function K(n,t,r,a){if(L(n,t)){var i=n.type;return"list"===i&&e.isArray(t)?function(n,t,r,a){return e.filter(e.map(t,function(e){return K(n.element,e,r,a)}),function(e){return!!e})}(n,t,r,a):e.isString(i)?j(n,r,t):W(n,t,a)}a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,S(n)))}function j(n,t,r){return n.isFilePath&&""===(r=e.normalizePath(e.combinePaths(t,r)))&&(r="."),r}function W(e,n,t){if(!R(n)){var r=n.toLowerCase(),a=e.type.get(r);if(void 0!==a)return a;t.push(c(e))}}function q(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.libs=r.map(function(e){return e[0]}),e.libMap=e.createMapFromEntries(r),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=o(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),e.buildOpts=o(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=a,e.getOptionNameMap=i,e.createOptionNameMap=l,e.createCompilerDiagnosticForInvalidCustomType=c,e.parseCustomTypeOption=u,e.parseListTypeOption=m,e.parseCommandLine=function(n,t){return p(i,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],n,t)},e.getOptionFromName=f,e.parseBuildCommand=function(n){var t,r=p(function(){return t||(t=l(e.buildOpts))},[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],n),a=r.options,i=r.fileNames,o=r.errors,s=a;return 0===i.length&&i.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,projects:i,errors:o}},e.printVersion=function(){e.sys.write(_(e.Diagnostics.Version_0,e.version)+e.sys.newLine)},e.printHelp=function(n,t){void 0===t&&(t="");var r=[],a=_(e.Diagnostics.Syntax_Colon_0,"").length,i=_(e.Diagnostics.Examples_Colon_0,"").length,o=Math.max(a,i),s=M(o-a);s+="tsc "+t+"["+_(e.Diagnostics.options)+"] ["+_(e.Diagnostics.file)+"...]",r.push(_(e.Diagnostics.Syntax_Colon_0,s)),r.push(e.sys.newLine+e.sys.newLine);var l=M(o);r.push(_(e.Diagnostics.Examples_Colon_0,M(o-i)+"tsc hello.ts")+e.sys.newLine),r.push(l+"tsc --outFile file.js file.ts"+e.sys.newLine),r.push(l+"tsc @args.txt"+e.sys.newLine),r.push(l+"tsc --build tsconfig.json"+e.sys.newLine),r.push(e.sys.newLine),r.push(_(e.Diagnostics.Options_Colon)+e.sys.newLine),o=0;for(var c=[],d=[],u=e.createMap(),m=0,p=n;m<p.length;m++){var f=p[m];if(f.description){var g=" ";f.shortName&&(g+="-"+f.shortName,g+=R(f),g+=", "),g+="--"+f.name,g+=R(f),c.push(g);var y=void 0;if("lib"===f.name){y=_(f.description);var v=f.element.type;u.set(y,e.arrayFrom(v.keys()).map(function(e){return"'"+e+"'"}))}else y=_(f.description);d.push(y),o=Math.max(g.length,o)}}var h=" @<"+_(e.Diagnostics.file)+">";c.push(h),d.push(_(e.Diagnostics.Insert_command_line_options_and_files_from_a_file)),o=Math.max(h.length,o);for(var b=0;b<c.length;b++){var E=c[b],T=(y=d[b],u.get(y));if(r.push(E+M(o-E.length+2)+y+e.sys.newLine),T){r.push(M(o+4));for(var S=0,L=T;S<L.length;S++){var A=L[S];r.push(A+" ")}r.push(e.sys.newLine)}}for(var x=0,C=r;x<C.length;x++){var D=C[x];e.sys.write(D)}return;function R(e){return void 0!==e.paramType?" "+_(e.paramType):""}function M(e){return Array(e+1).join(" ")}},e.getParsedCommandLineOfConfigFile=function(n,t,r,a){var i;try{i=r.readFile(n)}catch(t){var o=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message);return void r.onUnRecoverableConfigFileDiagnostic(o)}if(i){var s=e.parseJsonText(n,i),l=r.getCurrentDirectory();return s.path=e.toPath(n,l,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,C(s,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),l),t,e.getNormalizedAbsolutePath(n,l),void 0,void 0,a)}o=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,n),r.onUnRecoverableConfigFileDiagnostic(o)},e.readConfigFile=function(n,t){var r=h(n,t);return e.isString(r)?y(n,r):{config:{},error:r}},e.parseConfigFileTextToJson=y,e.readJsonConfigFile=v,e.convertToObject=E,e.convertToObjectWorker=T,e.convertToTSConfig=function(n,t,r){var a,i=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),o=e.map(e.filter(n.fileNames,n.configFileSpecs&&n.configFileSpecs.validatedIncludeSpecs?function(n,t,r){if(!t)return function(e){return!0};var a=e.getFileMatcherPatterns(n,r,t,e.sys.useCaseSensitiveFileNames,e.sys.getCurrentDirectory()),i=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,e.sys.useCaseSensitiveFileNames),o=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,e.sys.useCaseSensitiveFileNames);return o?i?function(e){return!(o.test(e)&&!i.test(e))}:function(e){return!o.test(e)}:i?function(e){return i.test(e)}:function(e){return!0}}(t,n.configFileSpecs.validatedIncludeSpecs,n.configFileSpecs.validatedExcludeSpecs):function(e){return!0}),function(n){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),i)}),l=x(n.options,{configFilePath:e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames});return s(s({compilerOptions:s(s({},e.arrayFrom(l.entries()).reduce(function(e,n){var t;return s(s({},e),((t={})[n[0]]=n[1],t))},{})),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),references:e.map(n.projectReferences,function(e){return s(s({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})}),files:e.length(o)?o:void 0},n.configFileSpecs?{include:(a=n.configFileSpecs.validatedIncludeSpecs,e.length(a)?1!==e.length(a)?a:"**/*"===a[0]?void 0:a:void 0),exclude:n.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!n.compileOnSave||void 0})},e.generateTSConfig=function(n,t,r){var a=x(e.extend(n,e.defaultInitCompilerOptions));return function(){for(var n=e.createMultiMap(),l=0,c=e.optionDeclarations;l<c.length;l++){var d=c[l],u=d.category;s(d)&&n.add(e.getLocaleSpecificMessage(u),d)}var m=0,p=0,f=[],g=[];n.forEach(function(n,t){0!==f.length&&(f.push(""),g.push("")),f.push("/* "+t+" */"),g.push("");for(var r=0,o=n;r<o.length;r++){var s=o[r],l=void 0;l=a.has(s.name)?'"'+s.name+'": '+JSON.stringify(a.get(s.name))+((p+=1)===a.size?"":","):'// "'+s.name+'": '+JSON.stringify(i(s))+",",f.push(l),g.push("/* "+(s.description&&e.getLocaleSpecificMessage(s.description)||s.name)+" */"),m=Math.max(l.length,m)}});var _=o(2),y=[];y.push("{"),y.push(_+'"compilerOptions": {');for(var v=0;v<f.length;v++){var h=f[v],b=g[v];y.push(h&&""+_+_+h+(b&&o(m-h.length+2)+b))}if(t.length){y.push(_+"},"),y.push(_+'"files": [');for(var v=0;v<t.length;v++)y.push(""+_+_+JSON.stringify(t[v])+(v===t.length-1?"":","));y.push(_+"]")}else y.push(_+"}");return y.push("}"),y.join(r)+r}();function i(n){switch(n.type){case"number":return 1;case"boolean":return!0;case"string":return n.isFilePath?"./":"";case"list":return[];case"object":return{};default:var t=n.type.keys().next();return t.done?e.Debug.fail("Expected 'option.type' to have entries."):t.value}}function o(e){return Array(e+1).join(" ")}function s(n){var t=n.category,r=n.name;return void 0!==t&&t!==e.Diagnostics.Command_line_Options&&(t!==e.Diagnostics.Advanced_Options||a.has(r))}},e.parseJsonConfigFileContent=function(e,n,t,r,a,i,o,s){return I(e,void 0,n,t,r,a,i,o,s)},e.parseJsonSourceFileConfigFileContent=C,e.setConfigFileInOptions=D,e.canJsonReportNoInutFiles=N,e.updateErrorForNoInputFiles=function(n,t,r,a,i){var o=a.length;return k(n,i)?a.push(O(r,t)):e.filterMutate(a,function(n){return!function(n){return n.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(n)}),o!==a.length},e.convertCompilerOptionsFromJson=function(e,n,t){var r=[];return{options:V(e,n,r,t),errors:r}},e.convertTypeAcquisitionFromJson=function(e,n,t){var r=[];return{options:U(e,n,r,t),errors:r}};var z=/(^|\/)\*\*\/?$/,X=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,J=/\/[^/]*?[*?][^/]*\//,Y=/^[^*?]*(?=\/[^/]*[*?])/;function Q(n,t,r,a,i){void 0===i&&(i=[]),t=e.normalizePath(t);var o,s=a.useCaseSensitiveFileNames?e.identity:e.toLowerCase,l=e.createMap(),c=e.createMap(),d=e.createMap(),u=n.filesSpecs,m=n.validatedIncludeSpecs,p=n.validatedExcludeSpecs,f=n.wildcardDirectories,g=e.getSupportedExtensions(r,i),_=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(r,g);if(u)for(var y=0,v=u;y<v.length;y++){var h=v[y],b=e.getNormalizedAbsolutePath(h,t);l.set(s(b),b)}if(m&&m.length>0)for(var E=function(n){if(e.fileExtensionIs(n,".json")){if(!o){var r=m.filter(function(n){return e.endsWith(n,".json")}),i=e.map(e.getRegularExpressionsForWildcards(r,t,"files"),function(e){return"^"+e+"$"});o=i?i.map(function(n){return e.getRegexFromPattern(n,a.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(n)})){var u=s(n);l.has(u)||d.has(u)||d.set(u,n)}return"continue"}if(function(n,t,r,a,i){for(var o=e.getExtensionPriority(n,a),s=e.adjustExtensionPriority(o,a),l=0;l<s;l++){var c=a[l],d=i(e.changeExtension(n,c));if(t.has(d)||r.has(d))return!0}return!1}(n,l,c,g,s))return"continue";!function(n,t,r,a){for(var i=e.getExtensionPriority(n,r),o=e.getNextLowestExtensionPriority(i,r);o<r.length;o++){var s=r[o],l=a(e.changeExtension(n,s));t.delete(l)}}(n,c,g,s);var p=s(n);l.has(p)||c.has(p)||c.set(p,n)},T=0,S=a.readDirectory(t,_,p,m,void 0);T<S.length;T++){E(b=S[T])}var L=e.arrayFrom(l.values()),A=e.arrayFrom(c.values());return{fileNames:L.concat(A,e.arrayFrom(d.values())),wildcardDirectories:f,spec:n}}function Z(n,t,r,a,i){return n.filter(function(n){var o=function(n,t){if(!t&&z.test(n))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(X.test(n))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}(n,r);return void 0!==o&&t.push(function(n,t){var r=e.getTsConfigPropArrayElementValue(a,i,t);return r?e.createDiagnosticForNodeInSourceFile(a,r,n,t):e.createCompilerDiagnostic(n,t)}(o,n)),void 0===o})}function $(n,t){var r=Y.exec(n);return r?{key:t?r[0]:r[0].toLowerCase(),flags:J.test(n)?1:0}:e.isImplicitGlob(n)?{key:n,flags:1}:void 0}function ee(n,t){switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof n?n:"";case"boolean":return"boolean"==typeof n?n:"";case"list":var r=t.element;return e.isArray(n)?n.map(function(e){return ee(e,r)}):"";default:return e.forEachEntry(t.type,function(e,t){if(e===n)return t})}}e.getFileNamesFromConfigSpecs=Q,e.convertCompilerOptionsForTelemetry=function(e){var n={};for(var t in e)if(e.hasOwnProperty(t)){var r=f(t);void 0!==r&&(n[t]=ee(e[t],r))}return n}}(u||(u={})),function(e){function n(n){n.trace(e.formatMessage.apply(void 0,arguments))}function t(e,n){return!!e.traceResolution&&void 0!==n.trace}function r(n,t){var r;if(t&&n){var a=n.packageJsonContent;"string"==typeof a.name&&"string"==typeof a.version&&(r={name:a.name,subModuleName:t.path.slice(n.packageDirectory.length+e.directorySeparator.length),version:a.version})}return t&&{path:t.path,extension:t.ext,packageId:r}}function a(e){return r(void 0,e)}function i(n){if(n)return e.Debug.assert(void 0===n.packageId),{path:n.path,ext:n.extension}}var l,c;function d(n){if(n)return e.Debug.assert(e.extensionIsTS(n.extension)),{fileName:n.path,packageId:n.packageId}}function u(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 m(t,r,a,i){if(e.hasProperty(t,r)){var o=t[r];if(typeof o===a&&null!==o)return o;i.traceEnabled&&n(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,a,null===o?"null":typeof o)}else i.traceEnabled&&n(i.host,e.Diagnostics.package_json_does_not_have_a_0_field,r)}function p(t,r,a,i){var o=m(t,r,"string",i);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(a,o));return i.traceEnabled&&n(i.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,o,s),s}i.traceEnabled&&n(i.host,e.Diagnostics.package_json_had_a_falsy_0_field,r)}}function f(e,n,t){return p(e,"typings",n,t)||p(e,"types",n,t)}function g(e,n,t){return p(e,"main",n,t)}function _(t,r){var a=function(t,r){var a=m(t,"typesVersions","object",r);if(void 0!==a)return r.traceEnabled&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),a}(t,r);if(void 0!==a){if(r.traceEnabled)for(var i in a)e.hasProperty(a,i)&&!e.VersionRange.tryParse(i)&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,i);var o=y(a);if(o){var s=o.version,l=o.paths;if("object"==typeof l)return o;r.traceEnabled&&n(r.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",typeof l)}else r.traceEnabled&&n(r.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function y(n){for(var t in c||(c=new e.Version(e.version)),n)if(e.hasProperty(n,t)){var r=e.VersionRange.tryParse(t);if(void 0!==r&&r.test(c))return{version:t,paths:n[t]}}}function v(n,t){return n.typeRoots?n.typeRoots:(n.configFilePath?r=e.getDirectoryPath(n.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?function(n,t){if(!t.directoryExists)return[e.combinePaths(n,h)];var r;return e.forEachAncestorDirectory(e.normalizePath(n),function(n){var a=e.combinePaths(n,h);t.directoryExists(a)&&(r||(r=[])).push(a)}),r}(r,t):void 0);var r}e.trace=n,e.isTraceEnabled=t,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly"}(l||(l={})),e.getPackageJsonTypesVersionsPaths=y,e.getEffectiveTypeRoots=v;var h=e.combinePaths("node_modules","@types");function b(n){var t=e.createMap(),r=e.createMap();return{ownMap:t,redirectsMap:r,getOrCreateMapOfCacheRedirects:function(a){if(!a)return t;var i=a.sourceFile.path,o=r.get(i);o||(o=!n||e.optionsHaveModuleResolutionChanges(n,a.commandLine.options)?e.createMap():t,r.set(i,o));return o},clear:function(){t.clear(),r.clear()},setOwnOptions:function(e){n=e},setOwnMap:function(e){t=e}}}function E(n,t,r,a){return{getOrCreateCacheForDirectory:function(t,o){var s=e.toPath(t,r,a);return i(n,o,s,e.createMap)},getOrCreateCacheForModuleName:function(n,r){return e.Debug.assert(!e.isExternalModuleNameRelative(n)),i(t,r,n,o)},directoryToModuleNameMap:n,moduleNameToDirectoryMap:t};function i(e,n,t,r){var a=e.getOrCreateMapOfCacheRedirects(n),i=a.get(t);return i||(i=r(),a.set(t,i)),i}function o(){var n=e.createMap();return{get:function(t){return n.get(e.toPath(t,r,a))},set:function(t,i){var o=e.toPath(t,r,a);if(n.has(o))return;n.set(o,i);var s=i.resolvedModule&&(i.resolvedModule.originalPath||i.resolvedModule.resolvedFileName),l=s&&function(n,t){var i=e.toPath(e.getDirectoryPath(t),r,a),o=0,s=Math.min(n.length,i.length);for(;o<s&&n.charCodeAt(o)===i.charCodeAt(o);)o++;if(o===n.length&&(i.length===o||i[o]===e.directorySeparator))return n;var l=e.getRootLength(n);if(o<l)return;var c=n.lastIndexOf(e.directorySeparator,o-1);if(-1===c)return;return n.substr(0,Math.max(c,l))}(o,s),c=o;for(;c!==l;){var d=e.getDirectoryPath(c);if(d===c||n.has(d))break;n.set(d,i),c=d}}}}}function T(t,r,a,i,o){var s=function(t,r,a,i){var o=i.compilerOptions,s=o.baseUrl,l=o.paths;if(s&&l&&!e.pathIsRelative(r))return i.traceEnabled&&(n(i.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,r),n(i.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)),q(t,r,s,l,a,!1,i)}(t,r,i,o);return s?s.value:e.isExternalModuleNameRelative(r)?function(t,r,a,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&n(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var s,l,c=e.normalizePath(e.combinePaths(a,r)),d=0,u=o.compilerOptions.rootDirs;d<u.length;d++){var m=u[d],p=e.normalizePath(m);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(c,p)&&(void 0===l||l.length<p.length);o.traceEnabled&&n(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,p,c,f),f&&(l=p,s=m)}if(l){o.traceEnabled&&n(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,c,l);var g=c.substr(l.length);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,l,c);var _=i(t,c,!e.directoryProbablyExists(a,o.host),o);if(_)return _;o.traceEnabled&&n(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,v=o.compilerOptions.rootDirs;y<v.length;y++){var m=v[y];if(m!==s){var h=e.combinePaths(e.normalizePath(m),g);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,m,h);var b=e.getDirectoryPath(h),E=i(t,h,!e.directoryProbablyExists(b,o.host),o);if(E)return E}}o.traceEnabled&&n(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(t,r,a,i,o):function(t,r,a,i){var o=i.compilerOptions.baseUrl;if(!o)return;i.traceEnabled&&n(i.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,r);var s=e.normalizePath(e.combinePaths(o,r));i.traceEnabled&&n(i.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,o,s);return a(t,s,!e.directoryProbablyExists(e.getDirectoryPath(s),i.host),i)}(t,r,i,o)}e.resolveTypeReferenceDirective=function(r,a,i,o,s){var c=t(i,o);s&&(i=s.commandLine.options);var u=[],m={compilerOptions:i,host:o,traceEnabled:c,failedLookupLocations:u},p=v(i,o);c&&(void 0===a?void 0===p?n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r):n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,p):void 0===p?n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,a):n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,a,p),s&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var f,g=function(){if(p&&p.length)return c&&n(o,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.firstDefined(p,function(t){var a=e.combinePaths(t,r),i=e.getDirectoryPath(a),s=e.directoryProbablyExists(i,o);return!s&&c&&n(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),d(F(l.DtsOnly,a,!s,m))});c&&n(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),_=!0;if(g||(g=function(){var t=a&&e.getDirectoryPath(a);if(void 0!==t){c&&n(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,t);var i=void 0;if(e.isExternalModuleNameRelative(r)){var s=e.normalizePathAndParts(e.combinePaths(t,r)).path;i=I(l.DtsOnly,s,!1,m,!0)}else{var u=H(l.DtsOnly,r,t,m,void 0,void 0);i=u&&u.value}var p=d(i);return!p&&c&&n(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r),p}c&&n(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),_=!1),g){var y=g.fileName,h=g.packageId,b=i.preserveSymlinks?y:M(y,o,c);c&&(h?n(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,r,b,e.packageIdToString(h),_):n(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,b,_)),f={primary:_,resolvedFileName:b,packageId:h,isExternalLibraryImport:O(y)}}return{resolvedTypeReferenceDirective:f,failedLookupLocations:u}},e.getAutomaticTypeDirectiveNames=function(n,t){if(n.types)return n.types;var r=[];if(t.directoryExists&&t.getDirectories){var a=v(n,t);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(t.directoryExists(s))for(var l=0,c=t.getDirectories(s);l<c.length;l++){var d=c[l],u=e.normalizePath(d),m=e.combinePaths(s,u,"package.json");if(!t.fileExists(m)||null!==e.readJson(m,t).typings){var p=e.getBaseFileName(u);46!==p.charCodeAt(0)&&r.push(p)}}}}return r},e.createModuleResolutionCache=function(e,n,t){return E(b(t),b(t),e,n)},e.createCacheWithRedirects=b,e.createModuleResolutionCacheWithMaps=E,e.resolveModuleNameFromCache=function(n,t,r){var a=e.getDirectoryPath(t),i=r&&r.getOrCreateCacheForDirectory(a);return i&&i.get(n)},e.resolveModuleName=function(r,a,i,o,s,l){var c=t(i,o);l&&(i=l.commandLine.options),c&&(n(o,e.Diagnostics.Resolving_module_0_from_1,r,a),l&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName));var d=e.getDirectoryPath(a),u=s&&s.getOrCreateCacheForDirectory(d,l),m=u&&u.get(r);if(m)c&&n(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,d);else{var p=i.moduleResolution;switch(void 0===p?(p=e.getEmitModuleKind(i)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,c&&n(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[p])):c&&n(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[p]),e.perfLogger.logStartResolveModule(r),p){case e.ModuleResolutionKind.NodeJs:m=D(r,a,i,o,s,l);break;case e.ModuleResolutionKind.Classic:m=Q(r,a,i,o,s,l);break;default:return e.Debug.fail("Unexpected moduleResolution: "+p)}m&&m.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+r+'" resolved to "'+m.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(m&&m.resolvedModule?""+m.resolvedModule.resolvedFileName:"null"),u&&(u.set(r,m),e.isExternalModuleNameRelative(r)||s.getOrCreateCacheForModuleName(r,l).set(d,m))}return c&&(m.resolvedModule?m.resolvedModule.packageId?n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,r,m.resolvedModule.resolvedFileName,e.packageIdToString(m.resolvedModule.packageId)):n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,r,m.resolvedModule.resolvedFileName):n(o,e.Diagnostics.Module_name_0_was_not_resolved,r)),m},e.resolveJSModule=function(e,n,t){var r=C(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},e.tryResolveJSModule=function(e,n,t){var r=C(e,n,t).resolvedModule;return r&&r.resolvedFileName};var S=[l.JavaScript],L=[l.TypeScript,l.JavaScript],A=o(L,[l.Json]),x=[l.TSConfig];function C(n,t,r){return R(n,t,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,S,void 0)}function D(n,t,r,a,i,o,s){return R(n,e.getDirectoryPath(t),r,a,i,s?x:r.resolveJsonModule?A:L,o)}function R(r,a,i,o,c,d,m){var p=t(i,o),f=[],g={compilerOptions:i,host:o,traceEnabled:p,failedLookupLocations:f},_=e.forEach(d,function(t){return function(t){var d=T(t,r,a,function(e,n,t,r){return I(e,n,t,r,!0)},g);if(d)return Z({resolved:d,isExternalLibraryImport:O(d.path)});if(e.isExternalModuleNameRelative(r)){var u=e.normalizePathAndParts(e.combinePaths(a,r)),f=u.path,_=u.parts,y=I(t,f,!1,g,!0);return y&&Z({resolved:y,isExternalLibraryImport:e.contains(_,"node_modules")})}p&&n(o,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,r,l[t]);var v=H(t,r,a,g,c,m);if(!v)return;var h=v.value;if(!i.preserveSymlinks&&h&&!h.originalPath){var b=M(h.path,o,p),E=b===h.path?void 0:h.path;h=s(s({},h),{path:b,originalPath:E})}return{value:h&&{resolved:h,isExternalLibraryImport:!0}}}(t)});if(_&&_.value){var y=_.value;return u(y.resolved,y.isExternalLibraryImport,f)}return{resolvedModule:void 0,failedLookupLocations:f}}function M(t,r,a){if(!r.realpath)return t;var i=e.normalizePath(r.realpath(t));return a&&n(r,e.Diagnostics.Resolving_real_path_for_0_result_1,t,i),e.Debug.assert(r.fileExists(i),t+" linked to nonexistent file "+i),i}function I(t,a,i,o,s){if(o.traceEnabled&&n(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,a,l[t]),!e.hasTrailingDirectorySeparator(a)){if(!i){var c=e.getDirectoryPath(a);e.directoryProbablyExists(c,o.host)||(o.traceEnabled&&n(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),i=!0)}var d=w(t,a,i,o);if(d){var u=s?function(n){var t=e.normalizePath(n.path),r=t.lastIndexOf(e.nodeModulesPathPart);if(-1===r)return;var a=r+e.nodeModulesPathPart.length,i=k(t,a);64===t.charCodeAt(a)&&(i=k(t,i));return t.slice(0,i)}(d):void 0;return r(u?V(u,!1,o):void 0,d)}}i||(e.directoryProbablyExists(a,o.host)||(o.traceEnabled&&n(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),i=!0));return F(t,a,i,o,s)}function O(n){return e.stringContains(n,e.nodeModulesPathPart)}function k(n,t){var r=n.indexOf(e.directorySeparator,t+1);return-1===r?t:r}function N(e,n,t,r){return a(w(e,n,t,r))}function w(t,r,a,i){if(t===l.Json||t===l.TSConfig){var o=e.tryRemoveExtension(r,".json");return void 0===o&&t===l.Json?void 0:P(o||r,t,a,i)}var s=P(r,t,a,i);if(s)return s;if(e.hasJSFileExtension(r)){var c=e.removeFileExtension(r);if(i.traceEnabled){var d=r.substring(c.length);n(i.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,d)}return P(c,t,a,i)}}function P(n,t,r,a){if(!r){var i=e.getDirectoryPath(n);i&&(r=!e.directoryProbablyExists(i,a.host))}switch(t){case l.DtsOnly:return o(".d.ts");case l.TypeScript:return o(".ts")||o(".tsx")||o(".d.ts");case l.JavaScript:return o(".js")||o(".jsx");case l.TSConfig:case l.Json:return o(".json")}function o(e){var t=G(n+e,r,a);return void 0===t?void 0:{path:t,ext:e}}}function G(t,r,a){if(!r){if(a.host.fileExists(t))return a.traceEnabled&&n(a.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,t),t;a.traceEnabled&&n(a.host,e.Diagnostics.File_0_does_not_exist,t)}a.failedLookupLocations.push(t)}function F(e,n,t,a,i){void 0===i&&(i=!0);var o=i?V(n,t,a):void 0;return r(o,B(e,n,t,a,o&&o.packageJsonContent,o&&o.versionPaths))}function V(t,r,a){var i=a.host,o=a.traceEnabled,s=!r&&e.directoryProbablyExists(t,i),l=e.combinePaths(t,"package.json");if(s&&i.fileExists(l)){var c=e.readJson(l,i);return o&&n(i,e.Diagnostics.Found_package_json_at_0,l),{packageDirectory:t,packageJsonContent:c,versionPaths:_(c,a)}}s&&o&&n(i,e.Diagnostics.File_0_does_not_exist,l),a.failedLookupLocations.push(l)}function B(t,r,o,s,c,d){var u;if(c)switch(t){case l.JavaScript:case l.Json:u=g(c,r,s);break;case l.TypeScript:u=f(c,r,s)||g(c,r,s);break;case l.DtsOnly:u=f(c,r,s);break;case l.TSConfig:u=function(e,n,t){return p(e,"tsconfig",n,t)}(c,r,s);break;default:return e.Debug.assertNever(t)}var m=function(t,r,i,o){var s=G(r,i,o);if(s){var c=function(n,t){var r=e.tryGetExtensionFromPath(t);return void 0!==r&&function(e,n){switch(e){case l.JavaScript:return".js"===n||".jsx"===n;case l.TSConfig:case l.Json:return".json"===n;case l.TypeScript:return".ts"===n||".tsx"===n||".d.ts"===n;case l.DtsOnly:return".d.ts"===n}}(n,r)?{path:t,ext:r}:void 0}(t,s);if(c)return a(c);o.traceEnabled&&n(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return I(t===l.DtsOnly?l.TypeScript:t,r,i,o,!1)},_=u?!e.directoryProbablyExists(e.getDirectoryPath(u),s.host):void 0,y=o||!e.directoryProbablyExists(r,s.host),v=e.combinePaths(r,t===l.TSConfig?"tsconfig":"index");if(d&&(!u||e.containsPath(r,u))){var h=e.getRelativePathFromDirectory(r,u||v,!1);s.traceEnabled&&n(s.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,d.version,e.version,h);var b=q(t,h,r,d.paths,m,_||y,s);if(b)return i(b.value)}var E=u&&i(m(t,u,_,s));return E||w(t,v,y,s)}function U(n){var t=n.indexOf(e.directorySeparator);return"@"===n[0]&&(t=n.indexOf(e.directorySeparator,t+1)),-1===t?{packageName:n,rest:""}:{packageName:n.slice(0,t),rest:n.slice(t+1)}}function H(e,n,t,r,a,i){return K(e,n,t,r,!1,a,i)}function K(n,t,r,a,i,o,s){var l=o&&o.getOrCreateCacheForModuleName(t,s);return e.forEachAncestorDirectory(e.normalizeSlashes(r),function(r){if("node_modules"!==e.getBaseFileName(r)){var o=Y(l,t,r,a);return o||Z(j(n,t,r,a,i))}})}function j(t,r,a,i,o){var s=e.combinePaths(a,"node_modules"),c=e.directoryProbablyExists(s,i.host);!c&&i.traceEnabled&&n(i.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);var d=o?void 0:W(t,r,s,c,i);if(d)return d;if(t===l.TypeScript||t===l.DtsOnly){var u=e.combinePaths(s,"@types"),m=c;return c&&!e.directoryProbablyExists(u,i.host)&&(i.traceEnabled&&n(i.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),m=!1),W(l.DtsOnly,function(t,r){var a=X(t);r.traceEnabled&&a!==t&&n(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,a);return a}(r,i),u,m,i)}}function W(t,i,o,s,l){var c=e.normalizePath(e.combinePaths(o,i)),d=V(c,!s,l);if(d){var u=w(t,c,!s,l);if(u)return a(u);var m=B(t,c,!s,l,d.packageJsonContent,d.versionPaths);return r(d,m)}var p=function(e,n,t,a){var i=w(e,n,t,a)||B(e,n,t,a,d&&d.packageJsonContent,d&&d.versionPaths);return r(d,i)},f=U(i),g=f.packageName,_=f.rest;if(""!==_){var y=e.combinePaths(o,g);if((d=V(y,!s,l))&&d.versionPaths){l.traceEnabled&&n(l.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,d.versionPaths.version,e.version,_);var v=s&&e.directoryProbablyExists(y,l.host),h=q(t,_,y,d.versionPaths.paths,p,!v,l);if(h)return h.value}}return p(t,c,!s,l)}function q(t,r,i,o,s,l,c){var d=e.matchPatternOrExact(e.getOwnKeys(o),r);if(d){var u=e.isString(d)?void 0:e.matchedText(d,r),m=e.isString(d)?d:e.patternText(d);return c.traceEnabled&&n(c.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,m),{value:e.forEach(o[m],function(r){var o=u?r.replace("*",u):r,d=e.normalizePath(e.combinePaths(i,o));c.traceEnabled&&n(c.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,o);var m=e.tryGetExtensionFromPath(d);if(void 0!==m){var p=G(d,l,c);if(void 0!==p)return a({path:p,ext:m})}return s(t,d,l||!e.directoryProbablyExists(e.getDirectoryPath(d),c.host),c)})}}}e.nodeModuleNameResolver=D,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=O,e.parsePackageName=U;var z="__";function X(n){if(e.startsWith(n,"@")){var t=n.replace(e.directorySeparator,z);if(t!==n)return t.slice(1)}return n}function J(n){return e.stringContains(n,z)?"@"+n.replace(z,e.directorySeparator):n}function Y(t,r,a,i){var o,s=t&&t.get(a);if(s)return i.traceEnabled&&n(i.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,a),(o=i.failedLookupLocations).push.apply(o,s.failedLookupLocations),{value:s.resolvedModule&&{path:s.resolvedModule.resolvedFileName,originalPath:s.resolvedModule.originalPath||!0,extension:s.resolvedModule.extension,packageId:s.resolvedModule.packageId}}}function Q(n,r,a,i,o,s){var c=[],d={compilerOptions:a,host:i,traceEnabled:t(a,i),failedLookupLocations:c},m=e.getDirectoryPath(r),p=f(l.TypeScript)||f(l.JavaScript);return u(p&&p.value,!1,c);function f(t){var r=T(t,n,m,N,d);if(r)return{value:r};if(e.isExternalModuleNameRelative(n)){var a=e.normalizePath(e.combinePaths(m,n));return Z(N(t,a,!1,d))}var i=o&&o.getOrCreateCacheForModuleName(n,s),c=e.forEachAncestorDirectory(m,function(r){var a=Y(i,n,r,d);if(a)return a;var o=e.normalizePath(e.combinePaths(r,n));return Z(N(t,o,!1,d))});return c||(t===l.TypeScript?function(e,n,t){return K(l.DtsOnly,e,n,t,!0,void 0,void 0)}(n,m,d):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+X(e)},e.mangleScopedPackageName=X,e.getPackageNameFromTypesPackageName=function(n){var t=e.removePrefix(n,"@types/");return t!==n?J(t):n},e.unmangleScopedPackageName=J,e.classicNameResolver=Q,e.loadModuleFromGlobalCache=function(r,a,i,o,s){var c=t(i,o);c&&n(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,a,r,s);var d=[],m={compilerOptions:i,host:o,traceEnabled:c,failedLookupLocations:d};return u(j(l.DtsOnly,r,s,m,!1),!0,d)}}(u||(u={})),function(e){var n;function t(n){return n.body?function n(r){switch(r.kind){case 242:case 243:return 0;case 244:if(e.isEnumConst(r))return 2;break;case 250:case 249:if(!e.hasModifier(r,1))return 0;break;case 246:var a=0;return e.forEachChild(r,function(t){var r=n(t);switch(r){case 0:return;case 2:return void(a=2);case 1:return a=1,!0;default:e.Debug.assertNever(r)}}),a;case 245:return t(r);case 73:if(r.isInJSDocNamespace)return 0}return 1}(n.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(n||(n={}));var r=e.identity,a=function(){var n,a,u,f,g,_,y,v,h,b,E,T,S,L,A,x,C,D,R,M,I,O,k,N,w=0,P={flags:1},G={flags:1},F=0;function V(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,a,i,o)}return function(t,r){n=t,a=r,u=e.getEmitScriptTarget(a),I=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,r),k=e.createUnderscoreEscapedMap(),w=0,N=n.isDeclarationFile,O=e.objectAllocator.getSymbolConstructor(),n.locals||(Ie(n),n.symbolCount=w,n.classifiableNames=k,function(){if(!h)return;for(var t=g,r=v,a=y,i=f,o=E,s=0,l=h;s<l.length;s++){var c=l[s],d=e.getJSDocHost(c);g=e.findAncestor(d.parent,function(e){return!!(1&ve(e))})||n,y=e.getEnclosingBlockScopeContainer(d)||n,E={flags:2},f=c,Ie(c.typeExpression);var u=e.getNameOfDeclaration(c);if((e.isJSDocEnumTag(c)||!c.fullName)&&u&&e.isPropertyAccessEntityNameExpression(u.parent)){var m=He(u.parent);if(m){Be(n.symbol,u.parent,m,!!e.findAncestor(u,function(n){return e.isPropertyAccessExpression(n)&&"prototype"===n.name.escapedText}));var p=g;g=e.isPropertyAccessExpression(u.parent.expression)?u.parent.expression.name:u.parent.expression,q(c,524288,788968),g=p}}else e.isJSDocEnumTag(c)||!c.fullName||73===c.fullName.kind?(f=c.parent,Le(c,524288,788968)):Ie(c.fullName)}g=t,v=r,y=a,f=i,E=o}());n=void 0,a=void 0,u=void 0,f=void 0,g=void 0,_=void 0,y=void 0,v=void 0,h=void 0,b=!1,E=void 0,T=void 0,S=void 0,L=void 0,A=void 0,x=void 0,D=void 0,R=!1,M=0,F=0};function B(e,n){return w++,new O(e,n)}function U(n,t,r){n.flags|=r,t.symbol=n,n.declarations=e.append(n.declarations,t),1955&r&&!n.exports&&(n.exports=e.createSymbolTable()),6240&r&&!n.members&&(n.members=e.createSymbolTable()),n.constEnumOnlyModule&&304&n.flags&&(n.constEnumOnlyModule=!1),111551&r&&H(n,t)}function H(n,t){var r=n.valueDeclaration;(!r||e.isAssignmentDeclaration(r)&&!e.isAssignmentDeclaration(t)||r.kind!==t.kind&&e.isEffectiveModuleDeclaration(r))&&(n.valueDeclaration=t)}function K(n){if(255===n.kind)return n.isExportEquals?"export=":"default";var t=e.getNameOfDeclaration(n);if(t){if(e.isAmbientModule(n)){var r=e.getTextOfIdentifierOrLiteral(t);return e.isGlobalScopeAugmentation(n)?"__global":'"'+r+'"'}if(150===t.kind){var a=t.expression;return e.isStringOrNumericLiteralLike(a)?e.escapeLeadingUnderscores(a.text):e.isSignedNumericLiteral(a)?e.tokenToString(a.operator)+a.operand.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(a)),e.getPropertyNameForKnownSymbolName(e.idText(a.name)))}return e.isPropertyNameLiteral(t)?e.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(n.kind){case 158:return"__constructor";case 166:case 161:case 300:return"__call";case 167:case 162:return"__new";case 163:return"__index";case 256:return"__export";case 285:return"export=";case 205:if(2===e.getAssignmentDeclarationKind(n))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 295:return e.isJSDocConstructSignature(n)?"__new":"__call";case 152:e.Debug.assert(295===n.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[n.parent.kind]:n.parent.kind)+", expected JSDocFunctionType"});var i=n.parent,o=i.parameters.indexOf(n);return"arg"+o}}function j(n){return e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(e.Debug.assertDefined(K(n)))}function W(t,r,a,i,s,l){e.Debug.assert(!e.hasDynamicName(a));var c,d=e.hasModifier(a,512),u=d&&r?"default":K(a);if(void 0===u)c=B(0,"__missing");else if(c=t.get(u),2885600&i&&k.set(u,!0),c){if(l&&!c.isReplaceableByMethod)return c;if(c.flags&s)if(c.isReplaceableByMethod)t.set(u,c=B(0,u));else if(!(3&i&&67108864&c.flags)){e.isNamedDeclaration(a)&&(a.name.parent=a);var m=2&c.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,p=!0;(384&c.flags||384&i)&&(m=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,p=!1);var f=!1;e.length(c.declarations)&&(d?(m=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0):c.declarations&&c.declarations.length&&255===a.kind&&!a.isExportEquals&&(m=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0));var g=e.getNameOfDeclaration(a)||a,_=[];e.forEach(c.declarations,function(t,r){var a=e.getNameOfDeclaration(t)||t,i=V(a,m,p?j(t):void 0);n.bindDiagnostics.push(f?e.addRelatedInfo(i,V(g,0===r?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):i),f&&_.push(V(a,e.Diagnostics.The_first_export_default_is_here))});var y=V(g,m,p?j(a):void 0);n.bindDiagnostics.push(f?e.addRelatedInfo.apply(void 0,o([y],_)):y),c=B(0,u)}}else t.set(u,c=B(0,u)),l&&(c.isReplaceableByMethod=!0);return U(c,a,i),c.parent?e.Debug.assert(c.parent===r,"Existing symbol parent should match new one"):c.parent=r,c}function q(n,t,r){var a=1&e.getCombinedModifierFlags(n);if(2097152&t)return 258===n.kind||249===n.kind&&a?W(g.symbol.exports,g.symbol,n,t,r):W(g.locals,void 0,n,t,r);if(e.isJSDocTypeAlias(n)&&e.Debug.assert(e.isInJSFile(n)),!e.isAmbientModule(n)&&(a||32&g.flags)||e.isJSDocTypeAlias(n)){if(!g.locals||e.hasModifier(n,512)&&!K(n))return W(g.symbol.exports,g.symbol,n,t,r);var i=111551&t?1048576:0,o=W(g.locals,void 0,n,i,r);return o.exportSymbol=W(g.symbol.exports,g.symbol,n,t,r),n.localSymbol=o,o}return W(g.locals,void 0,n,t,r)}function z(e){if(N)Q(e);else if(536870912&e.transformFlags)N=!0,Q(e),N=!1,F|=e.transformFlags&~m(e.kind);else{var n=F;F=0,Q(e),F=n|d(e,F)}}function X(e){J(e,function(e){return 240===e.kind?Ie(e):void 0}),J(e,function(e){return 240!==e.kind?Ie(e):void 0})}function J(n,t){if(void 0===t&&(t=Ie),void 0!==n)if(N)e.forEach(n,t);else{var r=F;F=0;for(var a=0,i=0,o=n;i<o.length;i++){var s=o[i];t(s),a|=-536870913&s.transformFlags}n.transformFlags=536870912|a,F|=r}}function Y(n){e.forEachChild(n,Ie,J)}function Q(n){if(function(n){if(!(1&E.flags))return!1;if(E===P){var r=e.isStatementButNotDeclaration(n)&&221!==n.kind||241===n.kind||245===n.kind&&function(e){var n=t(e);return 1===n||2===n&&!!a.preserveConstEnums}(n);if(r&&(E=G,!a.allowUnreachableCode)){var o=e.unreachableCodeIsError(a)&&!(4194304&n.flags)&&(!e.isVariableStatement(n)||!!(3&e.getCombinedNodeFlags(n.declarationList))||n.declarationList.declarations.some(function(e){return!!e.initializer}));!function(n,t){if(e.isStatement(n)&&i(n)&&e.isBlock(n.parent)){var r=n.parent.statements,a=e.sliceAfter(r,n);e.getRangesWhere(a,i,function(e,n){return t(a[e],a[n-1])})}else t(n,n)}(n,function(n,t){return Me(o,n,t,e.Diagnostics.Unreachable_code_detected)})}}return!0}(n))return Y(n),void Oe(n);switch(n.kind){case 225:!function(e){var n=re(),t=te(),r=te();ie(n,E),E=n,me(e.expression,t,r),E=de(t),pe(e.statement,r,n),ie(n,E),E=de(r)}(n);break;case 224:!function(n){var t=re(),r=234===n.parent.kind?e.lastOrUndefined(D):void 0,a=r?r.continueTarget:te(),i=r?r.breakTarget:te();ie(t,E),E=t,pe(n.statement,i,a),ie(a,E),E=de(a),me(n.expression,t,i),E=de(i)}(n);break;case 226:!function(e){var n=re(),t=te(),r=te();Ie(e.initializer),ie(n,E),E=n,me(e.condition,t,r),E=de(t),pe(e.statement,r,n),Ie(e.incrementor),ie(n,E),E=de(r)}(n);break;case 227:case 228:!function(e){var n=re(),t=te();ie(n,E),E=n,228===e.kind&&Ie(e.awaitModifier);Ie(e.expression),ie(t,E),Ie(e.initializer),239!==e.initializer.kind&&_e(e.initializer);pe(e.statement,t,n),ie(n,E),E=de(t)}(n);break;case 223:!function(e){var n=te(),t=te(),r=te();me(e.expression,n,t),E=de(n),Ie(e.thenStatement),ie(r,E),E=de(t),Ie(e.elseStatement),ie(r,E),E=de(r)}(n);break;case 231:case 235:!function(e){Ie(e.expression),231===e.kind&&(R=!0,L&&ie(L,E));E=P}(n);break;case 230:case 229:!function(e){if(Ie(e.label),e.label){var n=function(e){if(D)for(var n=0,t=D;n<t.length;n++){var r=t[n];if(r.name===e)return r}return}(e.label.escapedText);n&&(n.referenced=!0,fe(e,n.breakTarget,n.continueTarget))}else fe(e,T,S)}(n);break;case 236:!function(e){var n=te(),t=E,a=[],i=r;(e.catchClause||e.finallyBlock)&&(r=function(e){return a.push(e),e});Ie(e.tryBlock),r=i,ie(n,E);var o=E,s=P;if(e.catchClause){if(E=t,a.length){var l=te();ie(l,E);for(var c=0,d=a;c<d.length;c++){var u=d[c];ie(l,u)}E=de(l)}Ie(e.catchClause),ie(n,E),s=E}if(e.finallyBlock){var m=t;if(!e.catchClause&&a.length){var p=te();ie(p,t);for(var f=0,g=a;f<g.length;f++){var u=g[f];ie(p,u)}m=de(p)}var _={flags:2048,antecedent:m,lock:{}};if(ie(n,_),E=de(n),Ie(e.finallyBlock),1&E.flags||1&o.flags&&1&s.flags&&(E=o===G||s===G?G:P),!(1&E.flags)){var y=r({flags:4096,antecedent:E});_.lock=y,E=y}}else E=de(n)}(n);break;case 233:!function(n){var t=te();Ie(n.expression);var r=T,a=C;T=t,C=E,Ie(n.caseBlock),ie(t,E);var i=e.forEach(n.caseBlock.clauses,function(e){return 273===e.kind});n.possiblyExhaustive=!i&&!t.antecedents,i||ie(t,se(C,n,0,0));T=r,C=a,E=de(t)}(n);break;case 247:!function(n){var t=F;F=0;for(var r=n.clauses,i=P,o=0;o<r.length;o++){for(var s=o;!r[o].statements.length&&o+1<r.length;)Ie(r[o]),o++;var l=te();ie(l,se(C,n.parent,s,o+1)),ie(l,i),E=de(l);var c=r[o];Ie(c),i=E,1&E.flags||o===r.length-1||!a.noFallthroughCasesInSwitch||Re(c,e.Diagnostics.Fallthrough_case_in_switch)}r.transformFlags=536870912|F,F|=t}(n);break;case 272:!function(e){var n=E;E=C,Ie(e.expression),E=n,J(e.statements)}(n);break;case 234:!function(n){var t=re(),r=te();Ie(n.label),ie(t,E);var i=function(e,n,t){var r={name:e,breakTarget:n,continueTarget:t,referenced:!1};return(D||(D=[])).push(r),r}(n.label.escapedText,r,t);Ie(n.statement),D.pop(),i.referenced||a.allowUnusedLabels||function(e,n,t){Me(e,n,n,t)}(e.unusedLabelIsError(a),n.label,e.Diagnostics.Unused_label);n.statement&&224===n.statement.kind||(ie(r,E),E=de(r))}(n);break;case 203:!function(e){if(52===e.operator){var n=A;A=x,x=n,Y(e),x=A,A=n}else Y(e),44!==e.operator&&45!==e.operator||_e(e.operand)}(n);break;case 204:!function(e){Y(e),(44===e.operator||45===e.operator)&&_e(e.operand)}(n);break;case 205:!function(n){var t=n.operatorToken.kind;if(54===t||55===t)if(function(e){for(;196===e.parent.kind||203===e.parent.kind&&52===e.parent.operator;)e=e.parent;return!function(e){var n=e.parent;switch(n.kind){case 223:case 225:case 224:return n.expression===e;case 226:case 206:return n.condition===e}return!1}(e)&&!ue(e.parent)}(n)){var r=te();ye(n,r,r),E=de(r)}else ye(n,A,x);else if(Y(n),e.isAssignmentOperator(t)&&!e.isAssignmentTarget(n)&&(_e(n.left),60===t&&191===n.left.kind)){var a=n.left;ne(a.expression)&&(E=ce(E,n))}}(n);break;case 199:!function(e){Y(e),190===e.expression.kind&&_e(e.expression)}(n);break;case 206:!function(e){var n=te(),t=te(),r=te();me(e.condition,n,t),E=de(n),Ie(e.questionToken),Ie(e.whenTrue),ie(r,E),E=de(t),Ie(e.colonToken),Ie(e.whenFalse),ie(r,E),E=de(r)}(n);break;case 238:!function(n){Y(n),(n.initializer||e.isForInOrOfStatement(n.parent.parent))&&function n(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];n(o)}else E=le(E,t)}(n)}(n);break;case 192:!function(n){var t=n.expression;for(;196===t.kind;)t=t.expression;197===t.kind||198===t.kind?(J(n.typeArguments),J(n.arguments),Ie(n.expression)):Y(n);if(190===n.expression.kind){var r=n.expression;ne(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(E=ce(E,n))}}(n);break;case 312:case 305:case 306:!function(e){e.tagName.parent=e,306!==e.kind&&e.fullName&&p(e,e.fullName)}(n);break;case 285:X(n.statements),Ie(n.endOfFileToken);break;case 219:case 246:X(n.statements);break;default:Y(n)}Oe(n)}function Z(n){switch(n.kind){case 73:case 101:case 190:case 191:return $(n);case 192:return function(e){if(e.arguments)for(var n=0,t=e.arguments;n<t.length;n++){var r=t[n];if($(r))return!0}if(190===e.expression.kind&&$(e.expression.expression))return!0;return!1}(n);case 196:return Z(n.expression);case 205:return function(n){switch(n.operatorToken.kind){case 60:return $(n.left);case 33:case 34:case 35:case 36:return ne(n.left)||ne(n.right)||ee(n.right,n.left)||ee(n.left,n.right);case 95:return ne(n.left);case 94:return t=n.left,r=n.right,e.isStringLiteralLike(t)&&Z(r);case 27:return Z(n.right)}var t,r;return!1}(n);case 203:return 52===n.operator&&Z(n.operand);case 200:return Z(n.expression)}return!1}function $(n){return 73===n.kind||101===n.kind||99===n.kind||(e.isPropertyAccessExpression(n)||e.isNonNullExpression(n)||e.isParenthesizedExpression(n))&&$(n.expression)||e.isElementAccessExpression(n)&&n.argumentExpression&&(e.isStringLiteral(n.argumentExpression)||e.isNumericLiteral(n.argumentExpression))&&$(n.expression)}function ee(n,t){return e.isTypeOfExpression(n)&&ne(n.expression)&&e.isStringLiteralLike(t)}function ne(e){switch(e.kind){case 196:return ne(e.expression);case 205:switch(e.operatorToken.kind){case 60:return ne(e.left);case 27:return ne(e.right)}}return $(e)}function te(){return{flags:4,antecedents:void 0}}function re(){return{flags:8,antecedents:void 0}}function ae(e){e.flags|=512&e.flags?1024:512}function ie(n,t){1&t.flags||e.contains(n.antecedents,t)||((n.antecedents||(n.antecedents=[])).push(t),ae(t))}function oe(e,n,t){return 1&n.flags?n:t?103===t.kind&&64&e||88===t.kind&&32&e?P:Z(t)?(ae(n),r({flags:e,expression:t,antecedent:n})):n:32&e?n:P}function se(e,n,t,a){return Z(n.expression)?(ae(e),r({flags:128,switchStatement:n,clauseStart:t,clauseEnd:a,antecedent:e})):e}function le(e,n){return ae(e),r({flags:16,antecedent:e,node:n})}function ce(e,n){ae(e);var t=r({flags:256,antecedent:e,node:n});return t}function de(e){var n=e.antecedents;return n?1===n.length?n[0]:e:P}function ue(e){for(;;)if(196===e.kind)e=e.expression;else{if(203!==e.kind||52!==e.operator)return 205===e.kind&&(54===e.operatorToken.kind||55===e.operatorToken.kind);e=e.operand}}function me(e,n,t){var r=A,a=x;A=n,x=t,Ie(e),A=r,x=a,e&&ue(e)||(ie(n,oe(32,E,e)),ie(t,oe(64,E,e)))}function pe(e,n,t){var r=T,a=S;T=n,S=t,Ie(e),T=r,S=a}function fe(e,n,t){var r=230===e.kind?n:t;r&&(ie(r,E),E=P)}function ge(e){205===e.kind&&60===e.operatorToken.kind?_e(e.left):_e(e)}function _e(e){if($(e))E=le(E,e);else if(188===e.kind)for(var n=0,t=e.elements;n<t.length;n++){var r=t[n];209===r.kind?_e(r.expression):ge(r)}else if(189===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];276===o.kind?ge(o.initializer):277===o.kind?_e(o.name):278===o.kind&&_e(o.expression)}}function ye(e,n,t){var r=te();54===e.operatorToken.kind?me(e.left,r,t):me(e.left,n,r),E=de(r),Ie(e.operatorToken),me(e.right,n,t)}function ve(n){switch(n.kind){case 210:case 241:case 244:case 189:case 169:case 299:case 269:return 1;case 242:return 65;case 245:case 243:case 182:return 33;case 285:return 37;case 157:if(e.isObjectLiteralOrClassExpressionMethod(n))return 173;case 158:case 240:case 156:case 159:case 160:case 161:case 300:case 295:case 166:case 162:case 163:case 167:return 45;case 197:case 198:return 61;case 246:return 4;case 155:return n.initializer?4:0;case 275:case 226:case 227:case 228:case 247:return 2;case 219:return e.isFunctionLike(n.parent)?0:2}return 0}function he(e){v&&(v.nextContainer=e),v=e}function be(t,r,a){switch(g.kind){case 245:return q(t,r,a);case 285:return function(t,r,a){return e.isExternalModule(n)?q(t,r,a):W(n.locals,void 0,t,r,a)}(t,r,a);case 210:case 241:return function(n,t,r){return e.hasModifier(n,32)?W(g.symbol.exports,g.symbol,n,t,r):W(g.symbol.members,g.symbol,n,t,r)}(t,r,a);case 244:return W(g.symbol.exports,g.symbol,t,r,a);case 169:case 299:case 189:case 242:case 269:return W(g.symbol.members,g.symbol,t,r,a);case 166:case 167:case 161:case 162:case 300:case 163:case 157:case 156:case 158:case 159:case 160:case 240:case 197:case 198:case 295:case 312:case 305:case 243:case 182:return W(g.locals,void 0,t,r,a)}}function Ee(n){4194304&n.flags&&!function(n){var t=e.isSourceFile(n)?n:e.tryCast(n.body,e.isModuleBlock);return!!t&&t.statements.some(function(n){return e.isExportDeclaration(n)||e.isExportAssignment(n)})}(n)?n.flags|=32:n.flags&=-33}function Te(e){var n=t(e),r=0!==n;return be(e,r?512:1024,r?110735:0),n}function Se(e,n,t){var r=B(n,t);return 106508&n&&(r.parent=g.symbol),U(r,e,n),r}function Le(n,t,r){switch(y.kind){case 245:q(n,t,r);break;case 285:if(e.isExternalOrCommonJsModule(g)){q(n,t,r);break}default:y.locals||(y.locals=e.createSymbolTable(),he(y)),W(y.locals,void 0,n,t,r)}}function Ae(t){!(I&&t.originalKeywordKind>=110&&t.originalKeywordKind<=118)||e.isIdentifierName(t)||4194304&t.flags||2097152&t.flags||n.parseDiagnostics.length||n.bindDiagnostics.push(V(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),e.declarationNameToString(t)))}function xe(t,r){if(r&&73===r.kind){var a=r;if(o=a,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var i=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,i.start,i.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(a)))}}var o}function Ce(e){I&&xe(e,e.name)}function De(t){if(u<2&&285!==y.kind&&245!==y.kind&&!e.isFunctionLike(y)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function Re(t,r,a,i,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,a,i,o))}function Me(t,r,a,i){!function(t,r,a){var i=e.createFileDiagnostic(n,r.pos,r.end-r.pos,a);t?n.bindDiagnostics.push(i):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,s(s({},i),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(r,n),end:a.end},i)}function Ie(t){if(t){t.parent=f;var i=I;if(function(t){switch(t.kind){case 73:if(t.isInJSDocNamespace){for(var r=t.parent;r&&!e.isJSDocTypeAlias(r);)r=r.parent;Le(r,524288,788968);break}case 101:return E&&(e.isExpression(t)||277===f.kind)&&(t.flowNode=E),Ae(t);case 190:case 191:E&&$(t)&&(t.flowNode=E),e.isSpecialPropertyDeclaration(t)&&function(n){101===n.expression.kind?Ge(n):e.isPropertyAccessEntityNameExpression(n)&&285===n.parent.parent.kind&&(e.isPrototypeAccess(n.expression)?Fe(n,n.parent):Ve(n))}(t),e.isInJSFile(t)&&n.commonJsModuleIndicator&&e.isModuleExportsPropertyAccessExpression(t)&&!c(y,"module")&&W(n.locals,void 0,t.expression,134217729,111550);break;case 205:var i=e.getAssignmentDeclarationKind(t);switch(i){case 1:Pe(t);break;case 2:!function(t){if(!we(t))return;var r=e.getRightMostAssignedExpression(t.right);if(e.isEmptyObjectLiteral(r)||g===n&&l(n,r))return;var a=e.exportAssignmentIsAlias(t)?2097152:1049092;W(n.symbol.exports,n.symbol,t,67108864|a,0)}(t);break;case 3:Fe(t.left,t);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var n=e.left;Ke(n.expression,n,!1)}(t);break;case 4:Ge(t);break;case 5:!function(t){var r=t.left,a=je(r.expression);if(!e.isInJSFile(t)&&!e.isFunctionSymbol(a))return;t.left.parent=t,t.right.parent=t,e.isIdentifier(r.expression)&&g===n&&l(n,r.expression)?Pe(t):Ve(r)}(t);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(n){I&&e.isLeftHandSideExpression(n.left)&&e.isAssignmentOperator(n.operatorToken.kind)&&xe(n,n.left)}(t);case 275:return function(e){I&&e.variableDeclaration&&xe(e,e.variableDeclaration.name)}(t);case 199:return function(t){if(I&&73===t.expression.kind){var r=e.getErrorSpanForNode(n,t.expression);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(t);case 8:return function(t){I&&32&t.numericLiteralFlags&&n.bindDiagnostics.push(V(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(t);case 204:return function(e){I&&xe(e,e.operand)}(t);case 203:return function(e){I&&(44!==e.operator&&45!==e.operator||xe(e,e.operand))}(t);case 232:return function(n){I&&Re(n,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(t);case 234:return function(n){I&&a.target>=2&&(e.isDeclarationStatement(n.statement)||e.isVariableStatement(n.statement))&&Re(n.label,e.Diagnostics.A_label_is_not_allowed_here)}(t);case 179:return void(b=!0);case 164:break;case 151:return function(n){if(e.isJSDocTemplateTag(n.parent)){var t=e.find(n.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(n.parent);t?(t.locals||(t.locals=e.createSymbolTable()),W(t.locals,void 0,n,262144,526824)):be(n,262144,526824)}else if(177===n.parent.kind){var r=function(n){var t=e.findAncestor(n,function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&n.parent.extendsType===n});return t&&t.parent}(n.parent);r?(r.locals||(r.locals=e.createSymbolTable()),W(r.locals,void 0,n,262144,526824)):Se(n,262144,K(n))}else be(n,262144,526824)}(t);case 152:return ze(t);case 238:return qe(t);case 187:return t.flowNode=E,qe(t);case 155:case 154:return function(e){return Xe(e,4|(e.questionToken?16777216:0),0)}(t);case 276:case 277:return Xe(t,4,0);case 279:return Xe(t,8,900095);case 161:case 162:case 163:return be(t,131072,0);case 157:case 156:return Xe(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:103359);case 240:return function(t){n.isDeclarationFile||4194304&t.flags||e.isAsyncFunction(t)&&(M|=1024);Ce(t),I?(De(t),Le(t,16,110991)):be(t,16,110991)}(t);case 158:return be(t,16384,0);case 159:return Xe(t,32768,46015);case 160:return Xe(t,65536,78783);case 166:case 295:case 300:case 167:return function(n){var t=B(131072,K(n));U(t,n,131072);var r=B(2048,"__type");U(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(t);case 169:case 299:case 182:return function(e){return Se(e,2048,"__type")}(t);case 189:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),I)for(var a=e.createUnderscoreEscapedMap(),i=0,o=t.properties;i<o.length;i++){var s=o[i];if(278!==s.kind&&73===s.name.kind){var l=s.name,c=276===s.kind||277===s.kind||157===s.kind?1:2,d=a.get(l.escapedText);if(d){if(1===c&&1===d){var u=e.getErrorSpanForNode(n,l);n.bindDiagnostics.push(e.createFileDiagnostic(n,u.start,u.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else a.set(l.escapedText,c)}}return Se(t,4096,"__object")}(t);case 197:case 198:return function(t){n.isDeclarationFile||4194304&t.flags||e.isAsyncFunction(t)&&(M|=1024);E&&(t.flowNode=E);Ce(t);var r=t.name?t.name.escapedText:"__function";return Se(t,16,r)}(t);case 192:var o=e.getAssignmentDeclarationKind(t);switch(o){case 7:return function(e){var n=je(e.arguments[0]),t=285===e.parent.parent.kind;n=Be(n,e.arguments[0],t,!1),Ue(e,n,!1)}(t);case 8:return function(e){if(!we(e))return;var n=We(e.arguments[0],void 0,function(e,n){return n&&U(n,e,67110400),n});if(n){W(n.exports,n,e,1048580,0)}}(t);case 9:return function(e){var n=je(e.arguments[0].expression);Ue(e,n,!0)}(t);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(t)&&function(t){!n.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&we(t)}(t);break;case 210:case 241:return I=!0,function(t){if(241===t.kind)Le(t,32,899503);else{var r=t.name?t.name.escapedText:"__class";Se(t,32,r),t.name&&k.set(t.name.escapedText,!0)}var a=t.symbol,i=B(4194308,"prototype"),o=a.exports.get(i.escapedName);o&&(t.name&&(t.name.parent=t),n.bindDiagnostics.push(V(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i))));a.exports.set(i.escapedName,i),i.parent=a}(t);case 242:return Le(t,64,788872);case 243:return Le(t,524288,788968);case 244:return function(n){return e.isEnumConst(n)?Le(n,128,899967):Le(n,256,899327)}(t);case 245:return function(t){if(Ee(t),e.isAmbientModule(t))if(e.hasModifier(t,1)&&Re(t,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(t))Te(t);else{var r=void 0;if(10===t.name.kind){var a=t.name.text;e.hasZeroOrOneAsteriskCharacter(a)?r=e.tryParsePattern(a):Re(t.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a)}var i=be(t,512,110735);n.patternAmbientModules=e.append(n.patternAmbientModules,r&&{pattern:r,symbol:i})}else{var o=Te(t);if(0!==o){var i=t.symbol;i.constEnumOnlyModule=!(304&i.flags)&&2===o&&!1!==i.constEnumOnlyModule}}}(t);case 269:return function(e){return Se(e,4096,"__jsxAttributes")}(t);case 268:return function(e,n,t){return be(e,n,t)}(t,4,0);case 249:case 252:case 254:case 258:return be(t,2097152,2097152);case 248:return function(t){t.modifiers&&t.modifiers.length&&n.bindDiagnostics.push(V(t,e.Diagnostics.Modifiers_cannot_appear_here));var r=e.isSourceFile(t.parent)?e.isExternalModule(t.parent)?t.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;r?n.bindDiagnostics.push(V(t,r)):(n.symbol.globalExports=n.symbol.globalExports||e.createSymbolTable(),W(n.symbol.globalExports,n.symbol,t,2097152,2097152))}(t);case 251:return function(e){e.name&&be(e,2097152,2097152)}(t);case 256:return function(e){g.symbol&&g.symbol.exports?e.exportClause||W(g.symbol.exports,g.symbol,e,8388608,0):Se(e,8388608,K(e))}(t);case 255:return function(n){if(g.symbol&&g.symbol.exports){var t=e.exportAssignmentIsAlias(n)?2097152:4,r=W(g.symbol.exports,g.symbol,n,t,67108863);n.isExportEquals&&H(r,n)}else Se(n,2097152,K(n))}(t);case 285:return ke(t.statements),function(){if(Ee(n),e.isExternalModule(n))Ne();else if(e.isJsonSourceFile(n)){Ne();var t=n.symbol;W(n.symbol.exports,n.symbol,n,4,67108863),n.symbol=t}}();case 219:if(!e.isFunctionLike(t.parent))return;case 246:return ke(t.statements);case 307:if(300===t.parent.kind)return ze(t);if(299!==t.parent.kind)break;case 313:var s=t,d=s.isBracketed||s.typeExpression&&294===s.typeExpression.type.kind?16777220:4;return be(s,d,0);case 312:case 305:case 306:(h||(h=[])).push(t)}}(t),t.kind>148){var o=f;f=t;var s=ve(t);0===s?z(t):function(n,t){var a=g,i=_,o=y;1&t?(198!==n.kind&&(_=g),g=y=n,32&t&&(g.locals=e.createSymbolTable()),he(g)):2&t&&((y=n).locals=void 0);if(4&t){var s=r,l=E,c=T,d=S,u=L,m=D,p=R,f=16&t&&!e.hasModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);f||(E={flags:2},144&t&&(E.container=n)),L=f||158===n.kind?te():void 0,T=void 0,S=void 0,D=void 0,R=!1,r=e.identity,z(n),n.flags&=-1409,!(1&E.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=128,R&&(n.flags|=256)),285===n.kind&&(n.flags|=M),L&&(ie(L,E),E=de(L),158===n.kind&&(n.returnFlowNode=E)),f||(E=l),T=c,S=d,L=u,D=m,R=p,r=s}else 64&t?(b=!1,z(n),n.flags=b?64|n.flags:-65&n.flags):z(n);g=a,_=i,y=o}(t,s),f=o}else if(!N&&0==(536870912&t.transformFlags)){F|=d(t,0);var o=f;1===t.kind&&(f=t),Oe(t),f=o}I=i}}function Oe(n){if(e.hasJSDocNodes(n))if(e.isInJSFile(n))for(var t=0,r=n.jsDoc;t<r.length;t++){var a=r[t];Ie(a)}else for(var i=0,o=n.jsDoc;i<o.length;i++){var a=o[i];p(n,a)}}function ke(t){if(!I)for(var r=0,a=t;r<a.length;r++){var i=a[r];if(!e.isPrologueDirective(i))return;if(o=i,void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(n,o.expression))||"'use strict'"===s)return void(I=!0)}var o,s}function Ne(){Se(n,512,'"'+e.removeFileExtension(n.fileName)+'"')}function we(e){return!n.externalModuleIndicator&&(n.commonJsModuleIndicator||(n.commonJsModuleIndicator=e,Ne()),!0)}function Pe(n){if(we(n)){var t=n.left,r=We(t.expression,void 0,function(e,n){return n&&U(n,e,67110400),n});if(r){var a=e.isClassExpression(n.right)?1048612:1048580;W(r.exports,r,t,a,0)}}}function Ge(n){e.Debug.assert(e.isInJSFile(n));var t=e.getThisContainer(n,!1);switch(t.kind){case 240:case 197:var r=t.symbol;if(e.isBinaryExpression(t.parent)&&60===t.parent.operatorToken.kind){var a=t.parent.left;e.isPropertyAccessEntityNameExpression(a)&&e.isPrototypeAccess(a.expression)&&(r=je(a.expression.expression,_))}r&&(r.members=r.members||e.createSymbolTable(),W(r.members,r,n,4,0));break;case 158:case 155:case 157:case 159:case 160:var i=t.parent,o=e.hasModifier(t,32)?i.symbol.exports:i.symbol.members;W(o,i.symbol,n,4,0,!0);break;case 285:t.commonJsModuleIndicator?W(t.symbol.exports,t.symbol,n,1048580,0):be(n,1,111550);break;default:e.Debug.failBadSyntaxKind(t)}}function Fe(e,n){var t=e.expression,r=t.expression;e.parent=n,r.parent=t,t.parent=e,Ke(r,e,!0)}function Ve(e){e.expression.parent=e,Ke(e.expression,e,!1)}function Be(t,r,a,i){if(a&&!i){t=We(r,t,function(t,r,a){if(r)return U(r,t,67110400),r;var i=a?a.exports:n.jsGlobalAugmentations||(n.jsGlobalAugmentations=e.createSymbolTable());return W(i,a,t,67110400,110735)})}return t}function Ue(n,t,r){if(t&&function(n){if(1072&n.flags)return!0;var t=n.valueDeclaration;if(t&&e.isCallExpression(t))return!!e.getAssignedExpandoInitializer(t);var r=t?e.isVariableDeclaration(t)?t.initializer:e.isBinaryExpression(t)?t.right:e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)?t.parent.right:void 0:void 0;if(r=r&&e.getRightMostAssignedExpression(r)){var a=e.isPrototypeAccess(e.isVariableDeclaration(t)?t.name:e.isBinaryExpression(t)?t.left:t);return!!e.getExpandoInitializer(e.isBinaryExpression(r)&&55===r.operatorToken.kind?r.right:r,a)}return!1}(t)){var a=r?t.members||(t.members=e.createSymbolTable()):t.exports||(t.exports=e.createSymbolTable()),i=e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(n)),o=i?8192:4,s=i?103359:0;W(a,t,n,67108864|o,-67108865&s)}}function He(n){return e.isBinaryExpression(n.parent)?285===function(n){for(;e.isBinaryExpression(n.parent);)n=n.parent;return n.parent}(n.parent).parent.kind:285===n.parent.parent.kind}function Ke(e,n,t){var r=je(e),a=He(n);r=Be(r,n.expression,a,t),Ue(n,r,t)}function je(n,t){if(void 0===t&&(t=g),e.isIdentifier(n))return c(t,n.escapedText);var r=je(n.expression);return r&&r.exports&&r.exports.get(n.name.escapedText)}function We(t,r,a){if(l(n,t))return n.symbol;if(e.isIdentifier(t))return a(t,je(t),r);var i=We(t.expression,r,a);return a(t.name,i&&i.exports&&i.exports.get(t.name.escapedText),i)}function qe(n){I&&xe(n,n.name),e.isBindingPattern(n.name)||(e.isBlockOrCatchScoped(n)?Le(n,2,111551):e.isParameterDeclaration(n)?be(n,1,111551):be(n,1,111550))}function ze(n){if((307!==n.kind||300===g.kind)&&(!I||4194304&n.flags||xe(n,n.name),e.isBindingPattern(n.name)?Se(n,1,"__"+n.parent.parameters.indexOf(n)):be(n,1,111551),e.isParameterPropertyDeclaration(n))){var t=n.parent.parent;W(t.symbol.members,t.symbol,n,4|(n.questionToken?16777216:0),0)}}function Xe(t,r,a){return n.isDeclarationFile||4194304&t.flags||!e.isAsyncFunction(t)||(M|=1024),E&&e.isObjectLiteralOrClassExpressionMethod(t)&&(t.flowNode=E),e.hasDynamicName(t)?Se(t,r,"__computed"):be(t,r,a)}}();function i(n){return!(e.isFunctionDeclaration(n)||function(n){switch(n.kind){case 242:case 243:return!0;case 245:return 1!==t(n);case 244:return e.hasModifier(n,2048);default:return!1}}(n)||e.isEnumDeclaration(n)||e.isVariableStatement(n)&&!(3&e.getCombinedNodeFlags(n))&&n.declarationList.declarations.some(function(e){return!e.initializer}))}function l(n,t){for(var r=0,a=[t];a.length&&r<100;){if(r++,t=a.shift(),e.isExportsIdentifier(t)||e.isModuleExportsPropertyAccessExpression(t))return!0;if(e.isIdentifier(t)){var i=c(n,t.escapedText);if(i&&i.valueDeclaration&&e.isVariableDeclaration(i.valueDeclaration)&&i.valueDeclaration.initializer){var o=i.valueDeclaration.initializer;a.push(o),e.isAssignmentExpression(o,!0)&&(a.push(o.left),a.push(o.right))}}}return!1}function c(n,t){var r=n.locals&&n.locals.get(t);return r?r.exportSymbol||r:e.isSourceFile(n)&&n.jsGlobalAugmentations&&n.jsGlobalAugmentations.has(t)?n.jsGlobalAugmentations.get(t):n.symbol&&n.symbol.exports&&n.symbol.exports.get(t)}function d(n,t){var r=n.kind;switch(r){case 192:return function(n,t){var r=t,a=e.skipOuterExpressions(n.expression),i=n.expression;n.typeArguments&&(r|=1);(4096&t||e.isSuperOrSuperProperty(a))&&(r|=128,e.isSuperProperty(a)&&(r|=2048));93===i.kind&&(r|=524288);return n.transformFlags=536870912|r,-536875009&r}(n,t);case 193:return function(e,n){var t=n;e.typeArguments&&(t|=1);4096&n&&(t|=128);return e.transformFlags=536870912|t,-536875009&t}(n,t);case 245:return function(n,t){var r=1;0==(2&e.getModifierFlags(n))&&(r|=t);return n.transformFlags=536870912|r,-537168897&r}(n,t);case 196:return function(e,n){var t=n,r=e.expression.kind;213!==r&&195!==r||(t|=1);return e.transformFlags=536870912|t,-536870913&t}(n,t);case 205:return function(e,n){var t=n,r=e.operatorToken.kind,a=e.left.kind;60===r&&189===a?t|=656:60===r&&188===a?t|=640:41!==r&&64!==r||(t|=64);return e.transformFlags=536870912|t,-536870913&t}(n,t);case 222:return function(e,n){var t=n;return e.transformFlags=536870912|t,-536870913&t}(n,t);case 152:return function(n,t){var r=t,a=n.name,i=n.initializer,o=n.dotDotDotToken;(n.questionToken||n.type||1024&t&&e.some(n.decorators)||e.isThisIdentifier(a))&&(r|=1);e.hasModifier(n,92)&&(r|=1025);8192&t&&(r|=16);(65536&t||i||o)&&(r|=128);return n.transformFlags=536870912|r,-536870913&r}(n,t);case 198:return function(n,t){var r=128|t;(e.hasModifier(n,2270)||n.typeParameters||n.type)&&(r|=1);e.hasModifier(n,256)&&(r|=32);8192&t&&(r|=16);return n.transformFlags=536870912|r,-537371649&r}(n,t);case 197:return function(n,t){var r=t;(e.hasModifier(n,2270)||n.typeParameters||n.type)&&(r|=1);e.hasModifier(n,256)&&(r|=n.asteriskToken?16:32);8192&t&&(r|=16);n.asteriskToken&&(r|=256);return n.transformFlags=536870912|r,-537373697&r}(n,t);case 240:return function(n,t){var r,a=e.getModifierFlags(n);!n.body||2&a?r=1:(r=262144|t,(2270&a||n.typeParameters||n.type)&&(r|=1),256&a&&(r|=n.asteriskToken?16:32),8192&t&&(r|=16),n.asteriskToken&&(r|=256));return n.transformFlags=536870912|r,-537373697&r}(n,t);case 238:return function(e,n){var t=n;t|=65664,8192&n&&(t|=16);e.type&&(t|=1);return e.transformFlags=536870912|t,-536870913&t}(n,t);case 239:return function(e,n){var t=262144|n;65536&n&&(t|=128);3&e.flags&&(t|=32896);return e.transformFlags=536870912|t,-536944641&t}(n,t);case 220:return function(n,t){var r,a=n.declarationList.transformFlags;e.hasModifier(n,2)?r=1:(r=t,65536&a&&(r|=128));return n.transformFlags=536870912|r,-536870913&r}(n,t);case 234:return function(n,t){var r=t;32768&t&&e.isIterationStatement(n,!0)&&(r|=128);return n.transformFlags=536870912|r,-536870913&r}(n,t);case 241:return function(n,t){var r;e.hasModifier(n,2)?r=1:(r=128|t,(1024&t||n.typeParameters)&&(r|=1));return n.transformFlags=536870912|r,-536888321&r}(n,t);case 210:return function(e,n){var t=128|n;(1024&n||e.typeParameters)&&(t|=1);return e.transformFlags=536870912|t,-536888321&t}(n,t);case 274:return function(n,t){var r=t;switch(n.token){case 87:r|=128;break;case 110:r|=1;break;default:e.Debug.fail("Unexpected token for heritage clause")}return n.transformFlags=536870912|r,-536870913&r}(n,t);case 275:return function(n,t){var r=t;n.variableDeclaration?e.isBindingPattern(n.variableDeclaration.name)&&(r|=128):r|=8;return n.transformFlags=536870912|r,-536879105&r}(n,t);case 212:return function(e,n){var t=128|n;e.typeArguments&&(t|=1);return e.transformFlags=536870912|t,-536870913&t}(n,t);case 158:return function(n,t){var r=t;!e.hasModifier(n,2270)&&n.body||(r|=1);8192&t&&(r|=16);return n.transformFlags=536870912|r,-537372673&r}(n,t);case 155:return function(n,t){var r=1048576|t;(e.some(n.decorators)||e.hasModifier(n,2270)||n.type)&&(r|=1);(e.isComputedPropertyName(n.name)||e.hasStaticModifier(n)&&n.initializer)&&(r|=1024);return n.transformFlags=536870912|r,u(n.name,-536872961&r)}(n,t);case 157:return function(n,t){var r=128|t;(n.decorators||e.hasModifier(n,2270)||n.typeParameters||n.type||!n.body)&&(r|=1);8192&t&&(r|=16);e.hasModifier(n,256)&&(r|=n.asteriskToken?16:32);n.asteriskToken&&(r|=256);return n.transformFlags=536870912|r,u(n.name,-537372673&r)}(n,t);case 159:case 160:return function(n,t){var r=t;(n.decorators||e.hasModifier(n,2270)||n.type||!n.body)&&(r|=1);8192&t&&(r|=16);return n.transformFlags=536870912|r,u(n.name,-537372673&r)}(n,t);case 249:return function(n,t){var r=t;e.isExternalModuleImportEqualsDeclaration(n)||(r|=1);return n.transformFlags=536870912|r,-536870913&r}(n,t);case 190:case 191:return function(e,n){var t=n;99===e.expression.kind&&(t|=48);return e.transformFlags=536870912|t,-536870913&t}(n,t);default:return function(e,n,t){var r=t,a=536870912;switch(n){case 122:case 202:r|=48;break;case 195:case 213:case 316:r|=1,a=536870912;break;case 116:case 114:case 115:case 119:case 126:case 78:case 244:case 279:case 214:case 134:r|=1;break;case 261:case 262:case 263:case 11:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:r|=2;break;case 14:case 15:case 16:case 17:case 207:case 194:case 277:case 117:case 215:r|=128;break;case 10:e.hasExtendedUnicodeEscape&&(r|=128);break;case 8:384&e.numericLiteralFlags&&(r|=128);break;case 9:r|=4;break;case 228:e.awaitModifier&&(r|=16),r|=128;break;case 208:r|=131216;break;case 121:case 136:case 147:case 133:case 137:case 139:case 124:case 140:case 107:case 151:case 154:case 156:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 242:case 243:case 179:case 180:case 181:case 182:case 183:case 248:r=1,a=-2;break;case 150:r|=16384;break;case 209:r|=4224;break;case 278:r|=8208;break;case 99:r|=128,a=536870912;break;case 101:r|=2048;break;case 185:r|=65664,4096&t&&(r|=8208),a=536875008;break;case 186:r|=65664,a=536875008;break;case 187:r|=128,e.dotDotDotToken&&(r|=4096);break;case 153:r|=1025;break;case 189:a=536896512,16384&t&&(r|=128),8192&t&&(r|=16);break;case 188:a=536875008;break;case 224:case 225:case 226:case 227:32768&t&&(r|=128);break;case 285:break;case 231:r|=262160;break;case 229:case 230:r|=262144}return e.transformFlags=536870912|r,r&~a}(n,r,t)}}function u(e,n){return n|2048&e.transformFlags}function m(e){if(e>=164&&e<=184)return-2;switch(e){case 192:case 193:case 188:return 536875008;case 245:return 537168896;case 152:return 536870912;case 198:return 537371648;case 197:case 240:return 537373696;case 239:return 536944640;case 241:case 210:return 536888320;case 158:return 537372672;case 157:case 159:case 160:return 537372672;case 121:case 136:case 147:case 133:case 139:case 137:case 124:case 140:case 107:case 151:case 154:case 156:case 161:case 162:case 163:case 242:case 243:return-2;case 189:return 536896512;case 275:return 536879104;case 185:case 186:return 536875008;case 195:case 213:case 316:case 196:case 99:return 536870912;case 190:case 191:default:return 536870912}}function p(n,t){t.parent=n,e.forEachChild(t,function(e){return p(t,e)})}e.bindSourceFile=function(n,t){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+n.fileName),a(n,t),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=l,e.computeTransformFlagsForNode=d,e.getTransformFlagsSubtreeExclusions=m}(u||(u={})),function(e){e.createGetSymbolWalker=function(n,t,r,a,i,o,s,l,c,d){return function(u){void 0===u&&(u=function(){return!0});var m=[],p=[];return{walkType:function(n){try{return f(n),{visitedTypes:e.getOwnValues(m),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(m),e.clear(p)}},walkSymbol:function(n){try{return y(n),{visitedTypes:e.getOwnValues(m),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(m),e.clear(p)}}};function f(n){if(n&&!m[n.id]){m[n.id]=n;var t=y(n.symbol);if(!t){if(524288&n.flags){var r=n,i=r.objectFlags;4&i&&function(n){f(n.target),e.forEach(n.typeArguments,f)}(n),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(n),3&i&&(_(o=n),e.forEach(o.typeParameters,f),e.forEach(a(o),f),f(o.thisType)),24&i&&_(r)}var o;262144&n.flags&&function(e){f(c(e))}(n),3145728&n.flags&&function(n){e.forEach(n.types,f)}(n),4194304&n.flags&&function(e){f(e.type)}(n),8388608&n.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(n)}}}function g(a){var i=t(a);i&&f(i.type),e.forEach(a.typeParameters,f);for(var o=0,s=a.parameters;o<s.length;o++){var l=s[o];y(l)}f(n(a)),f(r(a))}function _(e){var n=l(e,0);f(n);var t=l(e,1);f(t);for(var r=i(e),a=0,o=r.callSignatures;a<o.length;a++){var s=o[a];g(s)}for(var c=0,d=r.constructSignatures;c<d.length;c++){var s=d[c];g(s)}for(var u=0,m=r.properties;u<m.length;u++){var p=m[u];y(p)}}function y(n){if(!n)return!1;var t=e.getSymbolId(n);if(p[t])return!1;if(p[t]=n,!u(n))return!0;var r=o(n);return f(r),n.exports&&n.exports.forEach(y),e.forEach(n.declarations,function(e){if(e.type&&168===e.type.kind){var n=e.type,t=s(d(n.exprName));y(t)}}),!1}}}}(u||(u={})),function(e){var n,t,r,a,i=/^".+"$/,c=1,d=1,u=1,m=1;!function(e){e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"}(n||(n={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(t||(t={})),function(e){e[e.Normal=0]="Normal",e[e.GeneratorYield=1]="GeneratorYield"}(r||(r={})),function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(a||(a={}));var p,f,g,_,y,v,h,b,E,T=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),S=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384});!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.JSDocTypeReference=6]="JSDocTypeReference"}(p||(p={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"}(f||(f={})),function(e){e[e.None=0]="None",e[e.Signature=1]="Signature"}(g||(g={})),function(e){e[e.None=0]="None",e[e.NoIndexSignatures=1]="NoIndexSignatures",e[e.Writing=2]="Writing",e[e.CacheSymbol=4]="CacheSymbol",e[e.NoTupleBoundsCheck=8]="NoTupleBoundsCheck"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(y||(y={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(h||(h={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(b||(b={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(E||(E={}));var L,A,x,C=e.and(I,function(n){return!e.isAccessor(n)});function D(e){return e.id||(e.id=d,d++),e.id}function R(e){return e.id||(e.id=c,c++),e.id}function M(n,t){var r=e.getModuleInstanceState(n);return 1===r||t&&2===r}function I(e){return 240!==e.kind&&157!==e.kind||!!e.body}function O(n){switch(n.parent.kind){case 254:case 258:return e.isIdentifier(n);default:return e.isDeclarationName(n)}}function k(e){switch(e.kind){case 251:case 249:case 252:case 254:return!0;case 73:return 254===e.parent.kind;default:return!1}}function N(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}!function(e){e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"}(L||(L={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(A||(A={})),e.getNodeId=D,e.getSymbolId=R,e.isInstantiatedModule=M,e.createTypeChecker=function(n,t){var r,a,c,d,p=e.memoize(function(){var t=e.createMap();return n.getSourceFiles().forEach(function(n){n.resolvedModules&&e.forEachEntry(n.resolvedModules,function(e){e&&e.packageId&&t.set(e.packageId.name,!0)})}),t}),f=e.objectAllocator.getSymbolConstructor(),g=e.objectAllocator.getTypeConstructor(),_=e.objectAllocator.getSignatureConstructor(),y=0,v=0,h=0,b=0,E=0,L=0,A=e.createSymbolTable(),w=e.identity,P=n.getCompilerOptions(),G=e.getEmitScriptTarget(P),F=e.getEmitModuleKind(P),V=e.getAllowSyntheticDefaultImports(P),B=e.getStrictOptionValue(P,"strictNullChecks"),U=e.getStrictOptionValue(P,"strictFunctionTypes"),H=e.getStrictOptionValue(P,"strictBindCallApply"),K=e.getStrictOptionValue(P,"strictPropertyInitialization"),j=e.getStrictOptionValue(P,"noImplicitAny"),W=e.getStrictOptionValue(P,"noImplicitThis"),q=!!P.keyofStringsOnly,z=P.suppressExcessPropertyErrors?0:32768,X=function(){var t,r=n.getResolvedTypeReferenceDirectives();return r&&(t=e.createMap(),r.forEach(function(r,a){if(r&&r.resolvedFileName){var i=n.getSourceFile(r.resolvedFileName);!function r(a,i){if(!t.has(a.path)){t.set(a.path,i);for(var o=0,s=a.referencedFiles;o<s.length;o++){var l=s[o].fileName,c=e.resolveTripleslashReference(l,a.originalFileName),d=n.getSourceFile(c);d&&r(d,i)}}}(i,a)}})),{getReferencedExportContainer:Ph,getReferencedImportDeclaration:Gh,getReferencedDeclarationWithCollidingName:Vh,isDeclarationWithCollidingName:Bh,isValueAliasDeclaration:function(n){return!(n=e.getParseTreeNode(n))||Uh(n)},hasGlobalName:ib,isReferencedAliasDeclaration:function(n,t){return!(n=e.getParseTreeNode(n))||function n(t,r){if(e.isAliasSymbolDeclaration(t)){var a=qr(t);if(a&&tr(a).referenced)return!0;var i=tr(a).target;if(i&&1&e.getModifierFlags(t)&&111551&i.flags&&(P.preserveConstEnums||!jh(i)))return!0}return!!r&&!!e.forEachChild(t,function(e){return n(e,r)})}(n,t)},getNodeCheckFlags:function(n){return(n=e.getParseTreeNode(n))?Yh(n):0},isTopLevelValueImportEqualsWithEntityName:Hh,isDeclarationVisible:Ia,isImplementationOfOverload:Wh,isRequiredInitializedParameter:qh,isOptionalUninitializedParameterProperty:zh,isExpandoFunctionDeclaration:Xh,getPropertiesOfContainerFunction:Jh,createTypeOfDeclaration:tb,createReturnTypeOfSignatureDeclaration:rb,createTypeOfExpression:ab,createLiteralConstValue:cb,isSymbolAccessible:fa,isEntityNameVisible:ha,getConstantValue:function(n){var t=e.getParseTreeNode(n,Zh);return t?$h(t):void 0},collectLinkedAliases:Oa,getReferencedValueDeclaration:sb,getTypeReferenceSerializationKind:nb,isOptionalParameter:_s,moduleExportsSomeValue:wh,isArgumentsLocalBinding:Nh,getExternalModuleFileFromDeclaration:db,getTypeReferenceDirectivesForEntityName:function(e){if(t){var n=790504;(73===e.kind&&pm(e)||190===e.kind&&!function(e){return e.parent&&212===e.parent.kind&&e.parent.parent&&274===e.parent.parent.kind}(e))&&(n=1160127);var r=Mr(e,n,!0);return r&&r!==me?a(r,n):void 0}},getTypeReferenceDirectivesForSymbol:a,isLiteralConstDeclaration:lb,isLateBound:function(n){var t=e.getParseTreeNode(n,e.isDeclaration),r=t&&qr(t);return!!(r&&4096&e.getCheckFlags(r))},getJsxFactoryEntity:function(n){return n?(Ut(n),e.getSourceFileOfNode(n).localJsxFactory||Un):Un},getAllAccessorDeclarations:function(n){var t=160===(n=e.getParseTreeNode(n,e.isGetOrSetAccessorDeclaration)).kind?159:160,r=e.getDeclarationOfKind(qr(n),t),a=r&&r.pos<n.pos?r:n,i=r&&r.pos<n.pos?n:r,o=160===n.kind?n:r,s=159===n.kind?n:r;return{firstAccessor:a,secondAccessor:i,setAccessor:o,getAccessor:s}},getSymbolOfExternalModuleSpecifier:function(e){return kr(e,e,void 0)},isBindingCapturedByNode:function(n,t){var r=e.getParseTreeNode(n),a=e.getParseTreeNode(t);return!!r&&!!a&&(e.isVariableDeclaration(a)||e.isBindingElement(a))&&function(n,t){var r=rr(n);return!!r&&e.contains(r.capturedBlockScopeBindings,qr(t))}(r,a)}};function a(n,r){if(t&&function(n){if(!n.declarations)return!1;for(var r=n;;){var a=zr(r);if(!a)break;r=a}if(r.valueDeclaration&&285===r.valueDeclaration.kind&&512&r.flags)return!1;for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i],l=e.getSourceFileOfNode(s);if(t.has(l.path))return!0}return!1}(n)){for(var a,i=0,o=n.declarations;i<o.length;i++){var s=o[i];if(s.symbol&&s.symbol.flags&r){var l=e.getSourceFileOfNode(s),c=t.get(l.path);if(!c)return;(a||(a=[])).push(c)}}return a}}}(),J=function(){return{typeToTypeNode:function(e,n,r,a){return t(n,r,a,function(n){return o(e,n)})},indexInfoToIndexSignatureDeclaration:function(e,n,r,a,i){return t(r,a,i,function(t){return u(e,n,t)})},signatureToSignatureDeclaration:function(e,n,r,a,i){return t(r,a,i,function(t){return m(e,n,t)})},symbolToEntityName:function(e,n,r,a,i){return t(r,a,i,function(t){return L(e,t,n,!1)})},symbolToExpression:function(n,r,a,i,o){return t(a,i,o,function(t){return function(n,t,r){var a=y(n,t,r);return function n(r,a){var i=h(r,a,t),o=r[a];if(e.some(o.declarations,ya))return e.createLiteral(b(o,t));0===a&&(t.flags|=16777216);var s=Ma(o,t);0===a&&(t.flags^=16777216);var l=s.charCodeAt(0),c=e.isIdentifierStart(l,G);if(0===a||c){var d=e.setEmitFlags(e.createIdentifier(s,i),16777216);return d.symbol=o,a>0?e.createPropertyAccess(n(r,a-1),d):d}91===l&&(s=s.substring(1,s.length-1),l=s.charCodeAt(0));var u=void 0;return e.isSingleOrDoubleQuote(l)?(u=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===l:""+ +s===s&&(u=e.createLiteral(+s)),u||((u=e.setEmitFlags(e.createIdentifier(s,i),16777216)).symbol=o),e.createElementAccess(n(r,a-1),u)}(a,a.length-1)}(n,t,r)})},symbolToTypeParameterDeclarations:function(e,n,r,a){return t(n,r,a,function(n){return v(e,n)})},symbolToParameterDeclaration:function(e,n,r,a){return t(n,r,a,function(n){return g(e,n)})},typeParameterToDeclaration:function(e,n,r,a){return t(n,r,a,function(n){return f(e,n)})}};function t(t,r,a,i){e.Debug.assert(void 0===t||0==(8&t.flags));var o={enclosingDeclaration:t,flags:r||0,tracker:a&&a.trackSymbol?a:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},getCurrentDirectory:n.getCurrentDirectory&&function(){return n.getCurrentDirectory()}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=i(o);return o.encounteredError?void 0:s}function a(n){return n.truncating?n.truncating:n.truncating=!(1&n.flags)&&n.approximateLength>e.defaultMaximumTruncationLength}function o(n,t){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&t.flags;if(t.flags&=-8388609,n){if(1&n.flags)return t.approximateLength+=3,e.createKeywordTypeNode(121);if(2&n.flags)return e.createKeywordTypeNode(144);if(4&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(139);if(8&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(136);if(64&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(147);if(16&n.flags)return t.approximateLength+=7,e.createKeywordTypeNode(124);if(1024&n.flags&&!(1048576&n.flags)){var s=zr(n.symbol),f=E(s,t,788968),g=Hi(s)===n?f:P(f,e.createTypeReferenceNode(e.symbolName(n.symbol),void 0));return g}if(1056&n.flags)return E(n.symbol,t,788968);if(128&n.flags)return t.approximateLength+=n.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(n.value),16777216));if(256&n.flags){var _=n.value;return t.approximateLength+=(""+_).length,e.createLiteralTypeNode(_<0?e.createPrefix(39,e.createLiteral(-_)):e.createLiteral(_))}if(2048&n.flags)return t.approximateLength+=e.pseudoBigIntToString(n.value).length+1,e.createLiteralTypeNode(e.createLiteral(n.value));if(512&n.flags)return t.approximateLength+=n.intrinsicName.length,"true"===n.intrinsicName?e.createTrue():e.createFalse();if(8192&n.flags){if(!(1048576&t.flags)){if(pa(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,E(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.createTypeOperatorNode(143,e.createKeywordTypeNode(140))}if(16384&n.flags)return t.approximateLength+=4,e.createKeywordTypeNode(107);if(32768&n.flags)return t.approximateLength+=9,e.createKeywordTypeNode(142);if(65536&n.flags)return t.approximateLength+=4,e.createKeywordTypeNode(97);if(131072&n.flags)return t.approximateLength+=5,e.createKeywordTypeNode(133);if(4096&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(140);if(67108864&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(137);if(rc(n))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),t.tracker.reportInaccessibleThisError&&t.tracker.reportInaccessibleThisError()),t.approximateLength+=4,e.createThis();var y=e.getObjectFlags(n);if(4&y)return e.Debug.assert(!!(524288&n.flags)),function(n){var r=n.typeArguments||e.emptyArray;if(n.target===sn||n.target===ln){if(2&t.flags){var a=o(r[0],t);return e.createTypeReferenceNode(n.target===sn?"Array":"ReadonlyArray",[a])}var i=o(r[0],t),s=e.createArrayTypeNode(i);return n.target===sn?s:e.createTypeOperatorNode(134,s)}if(!(8&n.target.objectFlags)){if(2048&t.flags&&n.symbol.valueDeclaration&&e.isClassLike(n.symbol.valueDeclaration)&&!pa(n.symbol,t.enclosingDeclaration))return N(n);var l=n.target.outerTypeParameters,c=0,u=void 0;if(l)for(var m=l.length;c<m;){var p=c,f=qs(l[c]);do{c++}while(c<m&&qs(l[c])===f);if(!e.rangeEquals(l,r,p,c)){var g=d(r.slice(p,c),t),_=t.flags;t.flags|=16;var y=E(f,t,788968,g);t.flags=_,u=u?P(u,y):y}}var v=void 0;if(r.length>0){var h=(n.target.typeParameters||e.emptyArray).length;v=d(r.slice(c,h),t)}var b=t.flags;t.flags|=16;var T=E(n.symbol,t,788968,v);return t.flags=b,u?P(u,T):T}if(r.length>0){var S=Qs(n),L=d(r.slice(0,S),t),A=n.target.hasRestElement;if(L){for(var c=n.target.minLength;c<Math.min(S,L.length);c++)L[c]=A&&c===S-1?e.createRestTypeNode(e.createArrayTypeNode(L[c])):e.createOptionalTypeNode(L[c]);var x=e.createTupleTypeNode(L);return n.target.readonly?e.createTypeOperatorNode(134,x):x}}if(t.encounteredError||524288&t.flags){var x=e.createTupleTypeNode([]);return n.target.readonly?e.createTypeOperatorNode(134,x):x}t.encounteredError=!0}(n);if(262144&n.flags||3&y){if(262144&n.flags&&e.contains(t.inferTypeParameters,n))return t.approximateLength+=e.symbolName(n.symbol).length+6,e.createInferTypeNode(p(n,t,void 0));if(4&t.flags&&!ma(n.symbol,t.enclosingDeclaration)){var v=S(n,t);return t.approximateLength+=e.idText(v).length,e.createTypeReferenceNode(e.createIdentifier(e.idText(v)),void 0)}return n.symbol?E(n.symbol,t,788968):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(!i&&n.aliasSymbol&&(16384&t.flags||ma(n.aliasSymbol,t.enclosingDeclaration))){var h=d(n.aliasTypeArguments,t);return!aa(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?E(n.aliasSymbol,t,788968,h):e.createTypeReferenceNode(e.createIdentifier(""),h)}if(!(3145728&n.flags)){if(48&y)return e.Debug.assert(!!(524288&n.flags)),N(n);if(4194304&n.flags){var b=n.type;t.approximateLength+=6;var T=o(b,t);return e.createTypeOperatorNode(T)}if(8388608&n.flags){var L=o(n.objectType,t),T=o(n.indexType,t);return t.approximateLength+=2,e.createIndexedAccessTypeNode(L,T)}if(16777216&n.flags){var A=o(n.checkType,t),x=t.inferTypeParameters;t.inferTypeParameters=n.root.inferTypeParameters;var C=o(n.extendsType,t);t.inferTypeParameters=x;var D=o(fc(n),t),M=o(gc(n),t);return t.approximateLength+=15,e.createConditionalTypeNode(A,C,D,M)}return 33554432&n.flags?o(n.typeVariable,t):e.Debug.fail("Should be unreachable.")}var I=1048576&n.flags?function(e){for(var n=[],t=0,r=0;r<e.length;r++){var a=e[r];if(t|=a.flags,!(98304&a.flags)){if(1536&a.flags){var i=512&a.flags?Me:Fi(a);if(1048576&i.flags){var o=i.types.length;if(r+o<=e.length&&Rc(e[r+o-1])===Rc(i.types[o-1])){n.push(i),r+=o-1;continue}}}n.push(a)}}return 65536&t&&n.push(Ee),32768&t&&n.push(he),n||e}(n.types):n.types;if(1===e.length(I))return o(I[0],t);var O=d(I,t,!0);if(O&&O.length>0){var k=e.createUnionOrIntersectionTypeNode(1048576&n.flags?174:175,O);return k}t.encounteredError||262144&t.flags||(t.encounteredError=!0)}else t.encounteredError=!0;function N(n){var r,a=""+n.id,i=n.symbol;if(i){var o=16&e.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags;if(r=(o?"+":"")+R(i),Hg(i.valueDeclaration)){var s=n===Wg(i)?788968:111551;return E(i,t,s)}if(32&i.flags&&!gi(i)&&!(210===i.valueDeclaration.kind&&2048&t.flags)||896&i.flags||function(){var n=!!(8192&i.flags)&&e.some(i.declarations,function(n){return e.hasModifier(n,32)}),r=!!(16&i.flags)&&(i.parent||e.forEach(i.declarations,function(e){return 285===e.parent.kind||246===e.parent.kind}));if(n||r)return(!!(4096&t.flags)||t.visitedTypes&&t.visitedTypes.has(a))&&(!(8&t.flags)||pa(i,t.enclosingDeclaration))}())return E(i,t,111551);if(t.visitedTypes&&t.visitedTypes.has(a)){var c=function(n){if(n.symbol&&2048&n.symbol.flags){var t=e.findAncestor(n.symbol.declarations[0].parent,function(e){return 178!==e.kind});if(243===t.kind)return qr(t)}}(n);return c?E(c,t,788968):l(t)}t.visitedTypes||(t.visitedTypes=e.createMap()),t.symbolDepth||(t.symbolDepth=e.createMap());var d=t.symbolDepth.get(r)||0;if(d>10)return l(t);t.symbolDepth.set(r,d+1),t.visitedTypes.set(a,!0);var u=w(n);return t.visitedTypes.delete(a),t.symbolDepth.set(r,d),u}return w(n)}function w(n){if(wo(n))return function(n){e.Debug.assert(!!(524288&n.flags));var r,a=n.declaration.readonlyToken?e.createToken(n.declaration.readonlyToken.kind):void 0,i=n.declaration.questionToken?e.createToken(n.declaration.questionToken.kind):void 0;r=Mo(n)?e.createTypeOperatorNode(o(Io(n),t)):o(Co(n),t);var s=p(xo(n),t,r),l=o(Do(n),t),c=e.createMappedTypeNode(a,s,i,l);return t.approximateLength+=10,e.setEmitFlags(c,1)}(n);var r=Po(n);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return t.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length){var i=r.callSignatures[0],s=m(i,166,t);return s}if(1===r.constructSignatures.length&&!r.callSignatures.length){var i=r.constructSignatures[0],s=m(i,167,t);return s}}var d=t.flags;t.flags|=4194304;var f=function(n){if(a(t))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var r=[],i=0,o=n.callSignatures;i<o.length;i++){var s=o[i];r.push(m(s,161,t))}for(var d=0,p=n.constructSignatures;d<p.length;d++){var s=p[d];r.push(m(s,162,t))}if(n.stringIndexInfo){var f=void 0;2048&n.objectFlags?(f=u(Hs(fe,n.stringIndexInfo.isReadonly,n.stringIndexInfo.declaration),0,t)).type=l(t):f=u(n.stringIndexInfo,0,t),r.push(f)}n.numberIndexInfo&&r.push(u(n.numberIndexInfo,1,t));var g=n.properties;if(!g)return r;for(var _=0,y=0,v=g;y<v.length;y++){var h=v[y];if(_++,2048&t.flags){if(4194304&h.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(h)&&t.tracker.reportPrivateInBaseOfClassExpression&&t.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(h.escapedName))}if(a(t)&&_+2<g.length-1){r.push(e.createPropertySignature(void 0,"... "+(g.length-_)+" more ...",void 0,void 0,void 0)),c(g[g.length-1],t,r);break}c(h,t,r)}return r.length?r:void 0}(r);t.flags=d;var g=e.createTypeLiteralNode(f);return t.approximateLength+=2,e.setEmitFlags(g,1024&t.flags?0:1)}function P(n,t){if(e.isImportTypeNode(n)){var r=n.typeArguments;n.qualifier&&((e.isIdentifier(n.qualifier)?n.qualifier:n.qualifier.right).typeArguments=r),n.typeArguments=t.typeArguments;for(var a=G(t),i=0,o=a;i<o.length;i++){var s=o[i];n.qualifier=n.qualifier?e.createQualifiedName(n.qualifier,s):s}return n}var r=n.typeArguments;(e.isIdentifier(n.typeName)?n.typeName:n.typeName.right).typeArguments=r,n.typeArguments=t.typeArguments;for(var a=G(t),l=0,c=a;l<c.length;l++){var s=c[l];n.typeName=e.createQualifiedName(n.typeName,s)}return n}function G(n){for(var t=n.typeName,r=[];!e.isIdentifier(t);)r.unshift(t.right),t=t.left;return r.unshift(t),r}}function l(n){return n.approximateLength+=3,1&n.flags?e.createKeywordTypeNode(121):e.createTypeReferenceNode(e.createIdentifier("..."),void 0)}function c(n,t,r){var a=!!(8192&e.getCheckFlags(n)),i=a&&33554432&t.flags?fe:hi(n),s=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.trackSymbol&&4096&e.getCheckFlags(n)){var c=e.first(n.declarations);eo(c)&&_(c.name,s,t)}var d=L(n,t,111551,!0);t.approximateLength+=e.symbolName(n).length+1,t.enclosingDeclaration=s;var u=16777216&n.flags?e.createToken(56):void 0;if(8208&n.flags&&!Go(i).length&&!R_(n))for(var p=os(Km(i,function(e){return!(32768&e.flags)}),0),f=0,g=p;f<g.length;f++){var y=g[f],v=m(y,156,t);v.name=d,v.questionToken=u,n.valueDeclaration&&e.setCommentRange(v,n.valueDeclaration),r.push(v)}else{var h=t.flags;t.flags|=a?33554432:0;var b=void 0;b=a&&33554432&h?l(t):i?o(i,t):e.createKeywordTypeNode(121),t.flags=h;var E=R_(n)?[e.createToken(134)]:void 0;E&&(t.approximateLength+=9);var T=e.createPropertySignature(E,d,u,b,void 0);n.valueDeclaration&&e.setCommentRange(T,n.valueDeclaration),r.push(T)}}function d(n,t,r){if(e.some(n)){if(a(t)){if(!r)return[e.createTypeReferenceNode("...",void 0)];if(n.length>2)return[o(n[0],t),e.createTypeReferenceNode("... "+(n.length-2)+" more ...",void 0),o(n[n.length-1],t)]}for(var i=[],s=0,l=0,c=n;l<c.length;l++){var d=c[l];if(s++,a(t)&&s+2<n.length-1){i.push(e.createTypeReferenceNode("... "+(n.length-s)+" more ...",void 0));var u=o(n[n.length-1],t);u&&i.push(u);break}t.approximateLength+=2;var m=o(d,t);m&&i.push(m)}return i}}function u(n,t,r){var a=e.getNameFromIndexInfo(n)||"x",i=e.createKeywordTypeNode(0===t?139:136),s=e.createParameter(void 0,void 0,void 0,a,void 0,i,void 0),l=o(n.type||fe,r);return n.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=a.length+4,e.createIndexSignature(void 0,n.isReadonly?[e.createToken(134)]:void 0,[s],l)}function m(n,t,r){var a,i;32&r.flags&&n.target&&n.mapper&&n.target.typeParameters?i=n.target.typeParameters.map(function(e){return o(nd(e,n.mapper),r)}):a=n.typeParameters&&n.typeParameters.map(function(e){return f(e,r)});var s,l=po(n).map(function(e){return g(e,r,158===t)});if(n.thisParameter){var c=g(n.thisParameter,r);l.unshift(c)}var d=Ds(n);if(d){var u=1===d.kind?e.setEmitFlags(e.createIdentifier(d.parameterName),16777216):e.createThisTypeNode(),m=o(d.type,r);s=e.createTypePredicateNode(u,m)}else{var p=Rs(n);s=p&&o(p,r)}return 256&r.flags?s&&121===s.kind&&(s=void 0):s||(s=e.createKeywordTypeNode(121)),r.approximateLength+=3,e.createSignatureDeclaration(t,a,l,s,i)}function p(n,t,r){var a=t.flags;t.flags&=-513;var i=S(n,t),s=Zo(n),l=s&&o(s,t);return t.flags=a,e.createTypeParameterDeclaration(i,r,l)}function f(e,n,t){void 0===t&&(t=Ho(e));var r=t&&o(t,n);return p(e,n,r)}function g(n,t,r){var a=e.getDeclarationOfKind(n,152);a||zt(n)||(a=e.getDeclarationOfKind(n,307));var i=hi(n);a&&qh(a)&&(i=Au(i));var s=o(i,t),l=!(8192&t.flags)&&r&&a&&a.modifiers?a.modifiers.map(e.getSynthesizedClone):void 0,c=a&&e.isRestParameter(a)||32768&e.getCheckFlags(n),d=c?e.createToken(25):void 0,u=a&&a.name?73===a.name.kind?e.setEmitFlags(e.getSynthesizedClone(a.name),16777216):149===a.name.kind?e.setEmitFlags(e.getSynthesizedClone(a.name.right),16777216):function n(r){t.tracker.trackSymbol&&e.isComputedPropertyName(r)&&Zi(r)&&_(r,t.enclosingDeclaration,t);var a=e.visitEachChild(r,n,e.nullTransformationContext,void 0,n),i=e.nodeIsSynthesized(a)?a:e.getSynthesizedClone(a);return 187===i.kind&&(i.initializer=void 0),e.setEmitFlags(i,16777217)}(a.name):e.symbolName(n),m=a&&_s(a)||16384&e.getCheckFlags(n),p=m?e.createToken(56):void 0,f=e.createParameter(void 0,l,d,u,p,s,void 0);return t.approximateLength+=e.symbolName(n).length+3,f}function _(e,n,t){if(t.tracker.trackSymbol){var r=oh(e.expression),a=sr(r,r.escapedText,1160127,void 0,void 0,!0);a&&t.tracker.trackSymbol(a,n,111551)}}function y(n,t,r,a){var i;t.tracker.trackSymbol(n,t.enclosingDeclaration,r);var o=262144&n.flags;return o||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?i=[n]:(i=e.Debug.assertDefined(function n(r,i,o){var s,l=da(r,t.enclosingDeclaration,i,!!(128&t.flags));if(!l||ua(l[0],t.enclosingDeclaration,1===l.length?i:ca(i))){var c=Xr(l?l[0]:r,t.enclosingDeclaration);if(e.length(c)){s=c.map(function(n){return e.some(n.declarations,ya)?b(n,t):void 0});var d=c.map(function(e,n){return n});d.sort(function(n,t){var r=s[n],a=s[t];if(r&&a){var i=e.pathIsRelative(a);return e.pathIsRelative(r)===i?e.moduleSpecifiers.countPathComponents(r)-e.moduleSpecifiers.countPathComponents(a):i?-1:1}return 0});for(var u=d.map(function(e){return c[e]}),m=0,p=u;m<p.length;m++){var f=p[m],g=n(f,ca(i),!1);if(g){l=g.concat(l||[Jr(f,r)||r]);break}}}}if(l)return l;if(o||!(6144&r.flags)){if(!o&&!a&&e.forEach(r.declarations,ya))return;return[r]}}(n,r,!0)),e.Debug.assert(i&&i.length>0)),i}function v(n,t){var r,a=Zv(n);return 524384&a.flags&&(r=e.createNodeArray(e.map(xi(n),function(e){return f(e,t)}))),r}function h(n,t,r){e.Debug.assert(n&&0<=t&&t<n.length);var a=n[t],i=""+R(a);if(!r.typeParameterSymbolList||!r.typeParameterSymbolList.get(i)){var o;if((r.typeParameterSymbolList||(r.typeParameterSymbolList=e.createMap())).set(i,!0),512&r.flags&&t<n.length-1){var s=a,l=n[t+1];if(1&e.getCheckFlags(l)){var c=function(n){return e.concatenate(Ai(n),xi(n))}(2097152&s.flags?Ar(s):s);o=d(e.map(c,l.mapper),r)}else o=v(a,r)}return o}}function b(t,r){var a=e.getDeclarationOfKind(t,285);if(a&&void 0!==a.moduleName)return a.moduleName;if(!a){if(r.tracker.trackReferencedAmbientModule){var o=e.filter(t.declarations,e.isAmbientModule);if(e.length(o))for(var l=0,c=o;l<c.length;l++){var d=c[l];r.tracker.trackReferencedAmbientModule(d,t)}}if(i.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return i.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var u=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),m=tr(t),p=m.specifierCache&&m.specifierCache.get(u.path);if(!p){var f=P.out||P.outFile,g=r.tracker.moduleResolverHost,_=f?s(s({},P),{baseUrl:g.getCommonSourceDirectory()}):P;p=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,_,u,g,n.getSourceFiles(),{importModuleSpecifierPreference:f?"non-relative":"relative"},n.redirectTargetsMap)),m.specifierCache=m.specifierCache||e.createMap(),m.specifierCache.set(u.path,p)}return p}function E(n,t,r,a){var i=y(n,t,r,!(16384&t.flags)),o=111551===r;if(e.some(i[0].declarations,ya)){var s=i.length>1?_(i,i.length-1,1):void 0,l=a||h(i,0,t),c=b(i[0],t);!(67108864&t.flags)&&e.getEmitModuleResolutionKind(P)===e.ModuleResolutionKind.NodeJs&&c.indexOf("/node_modules/")>=0&&(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(c));var d=e.createLiteralTypeNode(e.createLiteral(c));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(i[0]),t.approximateLength+=c.length+10,!s||e.isEntityName(s)){if(s){var u=e.isIdentifier(s)?s:s.right;u.typeArguments=void 0}return e.createImportTypeNode(d,s,l,o)}var m=function n(t){return e.isIndexedAccessTypeNode(t.objectType)?n(t.objectType):t}(s),p=m.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(d,p,l,o),m.indexType)}var f=_(i,i.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.createTypeQueryNode(f);var u=e.isIdentifier(f)?f:f.right,g=u.typeArguments;return u.typeArguments=void 0,e.createTypeReferenceNode(f,g);function _(n,r,i){var o=r===n.length-1?a:h(n,r,t),s=n[r];0===r&&(t.flags|=16777216);var l=Ma(s,t);t.approximateLength+=l.length+1,0===r&&(t.flags^=16777216);var c=n[r-1];if(!(16&t.flags)&&c&&io(c)&&io(c).get(s.escapedName)===s){var d=_(n,r-1,i);return e.isIndexedAccessTypeNode(d)?e.createIndexedAccessTypeNode(d,e.createLiteralTypeNode(e.createLiteral(l))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(d,o),e.createLiteralTypeNode(e.createLiteral(l)))}var u=e.setEmitFlags(e.createIdentifier(l,o),16777216);if(u.symbol=s,r>i){var d=_(n,r-1,i);return e.isEntityName(d)?e.createQualifiedName(d,u):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return u}}function T(e,n){return!!sr(n.enclosingDeclaration,e,788968,void 0,e,!1)}function S(n,t){if(4&t.flags&&t.typeParameterNames){var r=t.typeParameterNames.get(""+Il(n));if(r)return r}var a=L(n.symbol,t,788968,!0);if(4&t.flags){for(var i=a.escapedText,o=0,s=i;t.typeParameterNamesByText&&t.typeParameterNamesByText.get(s)||T(s,t);)s=i+"_"+ ++o;s!==i&&(a=e.createIdentifier(s,a.typeArguments)),(t.typeParameterNames||(t.typeParameterNames=e.createMap())).set(""+Il(n),a),(t.typeParameterNamesByText||(t.typeParameterNamesByText=e.createMap())).set(a.escapedText,!0)}return a}function L(n,t,r,a){var i=y(n,t,r);return!a||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function n(r,a){var i=h(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=Ma(o,t);0===a&&(t.flags^=16777216);var l=e.setEmitFlags(e.createIdentifier(s,i),16777216);return l.symbol=o,a>0?e.createQualifiedName(n(r,a-1),l):l}(i,i.length-1)}}(),Y=e.createSymbolTable(),Q=qt(4,"undefined");Q.declarations=[];var Z=qt(1536,"globalThis",8);Z.exports=Y,Y.set(Z.escapedName,Z);var $,ee=qt(4,"arguments"),ne=qt(4,"require"),te={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return y},getRelationCacheSizes:function(){return{assignable:Pt.size,identity:Ft.size,subtype:wt.size}},isUndefinedSymbol:function(e){return e===Q},isArgumentsSymbol:function(e){return e===ee},isUnknownSymbol:function(e){return e===me},getMergedSymbol:Wr,getDiagnostics:bh,getGlobalDiagnostics:function(){return Eh(),It.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(n,t){return(t=e.getParseTreeNode(t))?function(n,t){if(n=n.exportSymbol||n,73===t.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=oy(t);if(Yr(rr(t).resolvedSymbol)===n)return r}return hi(n)}(n,t):ye},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(n,t){var r=n.parent,a=n.parent.parent,i=ir(r.locals,t,111551),o=ir(io(a.symbol),t,111551);return i&&o?[i,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Hi,getPropertiesOfType:Bo,getPropertyOfType:function(n,t){return as(n,e.escapeLeadingUnderscores(t))},getTypeOfPropertyOfType:function(n,t){return Fa(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:cs,getSignaturesOfType:os,getIndexTypeOfType:ds,getBaseTypes:ki,getBaseTypeOfLiteralType:uu,getWidenedType:Nu,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?Nc(t):ye},getParameterType:n_,getPromisedTypeOfPromise:My,getReturnTypeOfSignature:Rs,getNullableType:Lu,getNonNullableType:xu,typeToTypeNode:J.typeToTypeNode,indexInfoToIndexSignatureDeclaration:J.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:J.signatureToSignatureDeclaration,symbolToEntityName:J.symbolToEntityName,symbolToExpression:J.symbolToExpression,symbolToTypeParameterDeclarations:J.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:J.symbolToParameterDeclaration,typeParameterToDeclaration:J.typeParameterToDeclaration,getSymbolsInScope:function(n,t){return(n=e.getParseTreeNode(n))?function(n,t){if(8388608&n.flags)return[];var r=e.createSymbolTable(),a=!1;return function(){for(;n;){switch(n.locals&&!ar(n)&&o(n.locals,t),n.kind){case 285:if(!e.isExternalOrCommonJsModule(n))break;case 245:o(qr(n).exports,2623475&t);break;case 244:o(qr(n).exports,8&t);break;case 210:var r=n.name;r&&i(n.symbol,t);case 241:case 242:a||o(io(qr(n)),788968&t);break;case 197:var s=n.name;s&&i(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&i(ee,t),a=e.hasModifier(n,32),n=n.parent}o(Y,t)}(),r.delete("this"),ps(r);function i(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var a=n.escapedName;r.has(a)||r.set(a,n)}}function o(e,n){n&&e.forEach(function(e){i(e,n)})}}(n,t):[]},getSymbolAtLocation:function(n){return(n=e.getParseTreeNode(n))?Dh(n):void 0},getShorthandAssignmentValueSymbol:function(n){return(n=e.getParseTreeNode(n))?function(e){if(e&&277===e.kind)return Mr(e.name,2208703)}(n):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?function(e){return e.parent.parent.moduleSpecifier?br(e.parent.parent,e):Mr(e.propertyName||e.name,2998271)}(t):void 0},getExportSymbolOfSymbol:function(e){return Wr(e.exportSymbol||e)},getTypeAtLocation:function(n){return(n=e.getParseTreeNode(n))?Rh(n):ye},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&Mh(t)||ye},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?function(n){var t=Mh(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&as(t,n.escapedText)}(t):void 0},signatureToString:function(n,t,r,a){return Ea(n,e.getParseTreeNode(t),r,a)},typeToString:function(n,t,r){return Ta(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,a){return ba(n,e.getParseTreeNode(t),r,a)},typePredicateToString:function(n,t,r){return Aa(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,a,i){return Ea(n,e.getParseTreeNode(t),r,a,i)},writeType:function(n,t,r,a){return Ta(n,e.getParseTreeNode(t),r,a)},writeSymbol:function(n,t,r,a,i){return ba(n,e.getParseTreeNode(t),r,a,i)},writeTypePredicate:function(n,t,r,a){return Aa(n,e.getParseTreeNode(t),r,a)},getAugmentedPropertiesOfType:Oh,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(tr(n).containingType.types,function(e){return as(e,n.escapedName)});if(33554432&n.flags){var t=n,r=t.leftSpread,a=t.rightSpread,i=t.syntheticOrigin;return r?[r,a]:i?[i]:e.singleElementArray(function(e){for(var n,t=e;t=tr(t).target;)n=t;return n}(n))}}(t);return r?e.flatMap(r,n):[t]},getContextualType:function(n){var t=e.getParseTreeNode(n,e.isExpression);return t?Wp(t):void 0},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?Gp(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&kp(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&Bp(t)},isContextSensitive:id,getFullyQualifiedName:Rr,getResolvedSignature:function(e,n,t){return re(e,n,t,0)},getResolvedSignatureForSignatureHelp:function(e,n,t){return re(e,n,t,16)},getExpandedParameters:po,hasEffectiveRestParameter:o_,getConstantValue:function(n){var t=e.getParseTreeNode(n,Zh);return t?$h(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,n){switch(e.kind){case 190:return Zf(e,99===e.expression.kind,n,Nu(ly(e.expression)));case 149:return Zf(e,!1,n,Nu(ly(e.left)));case 184:return Zf(e,!1,n,Nc(e))}}(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var a=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!a&&function(e,n,t){return Zf(e,190===e.kind&&99===e.expression.kind,t.escapedName,n)}(a,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?Ts(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?Wh(t):void 0},getImmediateAliasedSymbol:cf,getAliasedSymbol:Ar,getEmitResolver:function(e,n){return bh(e,n),X},getExportsOfModule:Vr,getExportsAndPropertiesOfModule:function(n){var t=Vr(n),r=Pr(n);return r!==n&&e.addRange(t,Bo(hi(r))),t},getSymbolWalker:e.createGetSymbolWalker(function(e){return Os(e)||fe},Ds,Rs,ki,Po,hi,mm,ls,Ho,oh),getAmbientModules:function(){return $e||($e=[],Y.forEach(function(e,n){i.test(n)&&$e.push(e)})),$e},getJsxIntrinsicTagNamesAt:function(n){var t=yf(x.IntrinsicElements,n);return t?Bo(t):e.emptyArray},isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return!!t&&_s(t)},tryGetMemberInModuleExports:function(n,t){return Br(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(e,n){var t=Br(e,n);if(t)return t;var r=Pr(n);if(r!==n){var a=hi(r);return 131068&a.flags?void 0:as(a,e)}}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return gs(e,!1)},getApparentType:es,getUnionType:Gl,createAnonymousType:sa,createSignature:co,createSymbol:qt,createIndexInfo:Hs,getAnyType:function(){return fe},getStringType:function(){return Se},getNumberType:function(){return Le},createPromiseType:p_,createArrayType:xl,getElementTypeOfArrayType:ru,getBooleanType:function(){return Me},getFalseType:function(e){return e?xe:Ce},getTrueType:function(e){return e?De:Re},getVoidType:function(){return Oe},getUndefinedType:function(){return he},getNullType:function(){return Ee},getESSymbolType:function(){return Ie},getNeverType:function(){return ke},isSymbolAccessible:fa,getObjectFlags:e.getObjectFlags,isArrayType:nu,isTupleType:_u,isArrayLikeType:au,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some(function(n){var t=n.name&&Wl(n.name),r=t&&Qi(t)?to(t):void 0,a=void 0===r?void 0:Fa(e,r);return!!a&&du(a)&&!gd(Rh(n),a)})},getAllPossiblePropertiesOfTypes:function(n){var t=Gl(n);if(!(1048576&t.flags))return Oh(t);for(var r=e.createSymbolTable(),a=0,i=n;a<i.length;a++)for(var o=i[a],s=0,l=Oh(o);s<l.length;s++){var c=l[s].escapedName;if(!r.has(c)){var d=ns(t,c);d&&r.set(c,d)}}return e.arrayFrom(r.values())},getSuggestionForNonexistentProperty:function(e,n){return zf(e,n)},getSuggestionForNonexistentSymbol:function(n,t,r){return function(n,t,r){var a=Xf(n,t,r);return a&&e.symbolName(a)}(n,e.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentExport:function(n,t){return(r=Jf(n,t))&&e.symbolName(r);var r},getBaseConstraintOfType:zo,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Zo(e):void 0},resolveName:function(n,t,r,a){return sr(t,e.escapeLeadingUnderscores(n),r,void 0,void 0,!1,a)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(Ut(n))},getAccessibleSymbolChain:da,getTypePredicateOfSignature:Ds,resolveExternalModuleSymbol:Pr,tryGetThisTypeAt:function(n,t){return(n=e.getParseTreeNode(n))&&Ep(n,t)},getTypeArgumentConstraint:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t&&function(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(t){var r=Ey(t),a=Ho(r[t.typeArguments.indexOf(n)]);return a&&nd(a,Vc(r,hy(t,r)))}}(t)},getSuggestionDiagnostics:function(n,t){if(e.skipTypeChecking(n,P))return e.emptyArray;var a;try{return r=t,yh(n),e.Debug.assert(!!(1&rr(n).flags)),a=e.addRange(a,Ot.getDiagnostics(n.fileName)),n.isDeclarationFile||vh(0)&&vh(1)||Ky(hh(n),function(n,t,r){e.containsParseError(n)||vh(t)||(a||(a=[])).push(s(s({},r),{category:e.DiagnosticCategory.Suggestion}))}),a||e.emptyArray}finally{r=void 0}},runWithCancellationToken:function(e,n){try{return r=e,n(te)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:xi};function re(n,t,r,a){var i=e.getParseTreeNode(n,e.isCallLikeExpression);$=r;var o=i?Ug(i,t,a):void 0;return $=void 0,o}var ae=e.createMap(),ie=e.createMap(),oe=e.createMap(),se=e.createMap(),le=e.createMap(),ce=e.createMap(),de=[],ue=e.createMap(),me=qt(4,"unknown"),pe=qt(0,"__resolving__"),fe=ea(1,"any"),ge=ea(1,"any"),_e=ea(1,"any"),ye=ea(1,"error"),ve=ea(2,"unknown"),he=ea(32768,"undefined"),be=B?he:ea(32768,"undefined",262144),Ee=ea(65536,"null"),Te=B?Ee:ea(65536,"null",262144),Se=ea(4,"string"),Le=ea(8,"number"),Ae=ea(64,"bigint"),xe=ea(512,"false"),Ce=ea(512,"false"),De=ea(512,"true"),Re=ea(512,"true");De.regularType=Re,De.freshType=De,Re.regularType=Re,Re.freshType=De,xe.regularType=Ce,xe.freshType=xe,Ce.regularType=Ce,Ce.freshType=xe;var Me=na([Ce,Re]);na([Ce,De]),na([xe,Re]),na([xe,De]);var Ie=ea(4096,"symbol"),Oe=ea(16384,"void"),ke=ea(131072,"never"),Ne=ea(131072,"never"),we=ea(131072,"never",1048576),Pe=ea(131072,"never"),Ge=ea(67108864,"object"),Fe=Gl([Se,Le,Ie]),Ve=q?Se:Fe,Be=Gl([Le,Ae]),Ue=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0),He=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0);He.objectFlags|=4096;var Ke=qt(2048,"__type");Ke.members=e.createSymbolTable();var je=sa(Ke,A,e.emptyArray,e.emptyArray,void 0,void 0),We=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0);We.instantiations=e.createMap();var qe=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0);qe.objectFlags|=1048576;var ze=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0),Xe=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0),Je=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0),Ye=ra(),Qe=ra();Qe.constraint=Ye;var Ze,$e,en,nn,tn,rn,an,on,sn,ln,cn,dn,un,mn,pn,fn,gn,_n,yn,vn,hn,bn,En,Tn,Sn,Ln,An,xn,Cn,Dn,Rn,Mn,In,On,kn,Nn,wn,Pn,Gn,Fn,Vn,Bn,Un,Hn,Kn=ra(),jn=vs("<<unresolved>>",0,fe),Wn=co(void 0,void 0,void 0,e.emptyArray,fe,void 0,0,!1,!1),qn=co(void 0,void 0,void 0,e.emptyArray,ye,void 0,0,!1,!1),zn=co(void 0,void 0,void 0,e.emptyArray,fe,void 0,0,!1,!1),Xn=co(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,!1,!1),Jn=Hs(Se,!0),Yn=e.createMap(),Qn={get yieldType(){throw new Error("Not supported")},get returnType(){throw new Error("Not supported")},get nextType(){throw new Error("Not supported")}},Zn=Ev(fe,fe,fe),$n=Ev(fe,fe,ve),et=Ev(ke,fe,he),nt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return On||(On=yl("AsyncIterator",3,e))||We},getGlobalIterableType:function(e){return In||(In=yl("AsyncIterable",1,e))||We},getGlobalIterableIteratorType:function(e){return kn||(kn=yl("AsyncIterableIterator",1,e))||We},getGlobalGeneratorType:function(e){return Nn||(Nn=yl("AsyncGenerator",3,e))||We},resolveIterationType:Oy,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},tt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xn||(xn=yl("Iterator",3,e))||We},getGlobalIterableType:Tl,getGlobalIterableIteratorType:function(e){return Cn||(Cn=yl("IterableIterator",1,e))||We},getGlobalGeneratorType:function(e){return Dn||(Dn=yl("Generator",3,e))||We},resolveIterationType:function(e,n){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},rt=e.createMap(),at=e.createMap(),it=0,ot=0,st=0,lt=!1,ct=Ic(""),dt=Ic(0),ut=Ic({negative:!1,base10Value:"0"}),mt=[],pt=[],ft=[],gt=0,_t=10,yt=[],vt=[],ht=[],bt=[],Et=[],Tt=[],St=[],Lt=[],At=[],xt=[],Ct=[],Dt=[],Rt=[],Mt=[],It=e.createDiagnosticCollection(),Ot=e.createDiagnosticCollection(),kt=e.createMapFromTemplate({string:Se,number:Le,bigint:Ae,boolean:Me,symbol:Ie,undefined:he}),Nt=Gl(e.arrayFrom(T.keys(),Ic)),wt=e.createMap(),Pt=e.createMap(),Gt=e.createMap(),Ft=e.createMap(),Vt=e.createMap(),Bt=e.createSymbolTable();return Bt.set(Q.escapedName,Q),function(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var a=r[t];e.bindSourceFile(a,P)}var i;Ze=e.createMap();for(var o=0,s=n.getSourceFiles();o<s.length;o++){var a=s[o];if(!a.redirectInfo){if(!e.isExternalOrCommonJsModule(a)){var l=a.locals.get("globalThis");if(l)for(var c=0,d=l.declarations;c<d.length;c++){var u=d[c];It.add(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}er(Y,a.locals)}if(a.jsGlobalAugmentations&&er(Y,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(en=e.concatenate(en,a.patternAmbientModules)),a.moduleAugmentations.length&&(i||(i=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports){var m=a.symbol.globalExports;m.forEach(function(e,n){Y.has(n)||Y.set(n,e)})}}}if(i)for(var p=0,f=i;p<f.length;p++)for(var g=f[p],_=0,y=g;_<y.length;_++){var v=y[_];e.isGlobalScopeAugmentation(v.parent)&&nr(v)}if(function(n,t,r){t.forEach(function(t,a){var i=n.get(a);i?e.forEach(i.declarations,function(n,t){return function(r){return It.add(e.createDiagnosticForNode(r,t,n))}}(e.unescapeLeadingUnderscores(a),r)):n.set(a,t)})}(Y,Bt,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),tr(Q).type=be,tr(ee).type=yl("IArguments",0,!0),tr(me).type=ye,tr(Z).type=ta(16,Z),sn=yl("Array",1,!0),tn=yl("Object",0,!0),rn=yl("Function",0,!0),an=H&&yl("CallableFunction",0,!0)||rn,on=H&&yl("NewableFunction",0,!0)||rn,cn=yl("String",0,!0),dn=yl("Number",0,!0),un=yl("Boolean",0,!0),mn=yl("RegExp",0,!0),fn=xl(fe),(gn=xl(ge))===Ue&&(gn=sa(void 0,A,e.emptyArray,e.emptyArray,void 0,void 0)),ln=Sl("ReadonlyArray",1)||sn,_n=ln?Ll(ln,[fe]):fn,pn=Sl("ThisType",1),i)for(var h=0,b=i;h<b.length;h++)for(var g=b[h],E=0,T=g;E<T.length;E++){var v=T[E];e.isGlobalScopeAugmentation(v.parent)||nr(v)}Ze.forEach(function(n){var t=n.firstFile,r=n.secondFile,a=n.conflictingSymbols;if(a.size<8)a.forEach(function(n,t){for(var r=n.isBlockScoped,a=n.firstFileLocations,i=n.secondFileLocations,o=r?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,l=a;s<l.length;s++){var c=l[s];$t(c,o,t,i)}for(var d=0,u=i;d<u.length;d++){var c=u[d];$t(c,o,t,a)}});else{var i=e.arrayFrom(a.keys()).join(", ");It.add(e.addRelatedInfo(e.createDiagnosticForNode(t,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,i),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file))),It.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,i),e.createDiagnosticForNode(t,e.Diagnostics.Conflicts_are_in_this_file)))}}),Ze=void 0}(),te;function Ut(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var a=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(a.arguments.factory,G),t.localJsxFactory)return t.localJsxNamespace=oh(t.localJsxFactory).escapedText}}}return Bn||(Bn="React",P.jsxFactory?(Un=e.parseIsolatedEntityName(P.jsxFactory,G))&&(Bn=oh(Un).escapedText):P.reactNamespace&&(Bn=e.escapeLeadingUnderscores(P.reactNamespace))),Bn}function Ht(n,t,r,a,i,o){var s=n?e.createDiagnosticForNode(n,t,r,a,i,o):e.createCompilerDiagnostic(t,r,a,i,o);return It.add(s),s}function Kt(n,t){n?It.add(t):Ot.add(s(s({},t),{category:e.DiagnosticCategory.Suggestion}))}function jt(n,t,r,a,i,o,s){Kt(n,"message"in r?e.createDiagnosticForNode(t,r,a,i,o,s):e.createDiagnosticForNodeFromMessageChain(t,r))}function Wt(n,t,r,a,i,o,s){var l=Ht(n,r,a,i,o,s);if(t){var c=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(l,c)}return l}function qt(e,n,t){v++;var r=new f(33554432|e,n);return r.checkFlags=t||0,r}function zt(e){return 0!=(33554432&e.flags)}function Xt(e){var n=0;return 2&e&&(n|=111551),1&e&&(n|=111550),4&e&&(n|=0),8&e&&(n|=900095),16&e&&(n|=110991),32&e&&(n|=899503),64&e&&(n|=788872),256&e&&(n|=899327),128&e&&(n|=899967),512&e&&(n|=110735),8192&e&&(n|=103359),32768&e&&(n|=46015),65536&e&&(n|=78783),262144&e&&(n|=526824),524288&e&&(n|=788968),2097152&e&&(n|=2097152),n}function Jt(e,n){n.mergeId||(n.mergeId=u,u++),yt[n.mergeId]=e}function Yt(n){var t=qt(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=e.cloneMap(n.members)),n.exports&&(t.exports=e.cloneMap(n.exports)),Jt(t,n),t}function Qt(n,t,r){if(void 0===r&&(r=!1),!(n.flags&Xt(t.flags))||67108864&(t.flags|n.flags)){if(e.Debug.assert(t!==n),!(33554432&n.flags)){var a=Lr(n);if(a===me)return t;n=Yt(a)}512&t.flags&&512&n.flags&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&(!n.valueDeclaration||e.isAssignmentDeclaration(n.valueDeclaration)&&!e.isAssignmentDeclaration(t.valueDeclaration)||e.isEffectiveModuleDeclaration(n.valueDeclaration)&&!e.isEffectiveModuleDeclaration(t.valueDeclaration))&&(n.valueDeclaration=t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),er(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),er(n.exports,t.exports,r)),r||Jt(n,t)}else if(1024&n.flags)n!==Z&&Ht(e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ba(n));else{var i=!!(384&n.flags||384&t.flags),o=!!(2&n.flags||2&t.flags),s=i?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,l=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),c=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),d=ba(t);if(l&&c&&Ze&&!i&&l!==c){var u=-1===e.comparePaths(l.path,c.path)?l:c,m=u===l?c:l,p=e.getOrUpdate(Ze,u.path+"|"+m.path,function(){return{firstFile:u,secondFile:m,conflictingSymbols:e.createMap()}}),f=e.getOrUpdate(p.conflictingSymbols,d,function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}});g(f.firstFileLocations,t),g(f.secondFileLocations,n)}else Zt(t,s,d,n),Zt(n,s,d,t)}return n;function g(n,t){for(var r=0,a=t.declarations;r<a.length;r++){var i=a[r];e.pushIfUnique(n,(e.getExpandoInitializer(i,!1)?e.getNameOfExpando(i):e.getNameOfDeclaration(i))||i)}}}function Zt(n,t,r,a){e.forEach(n.declarations,function(n){$t((e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n,t,r,a.declarations)})}function $t(n,t,r,a){for(var i=function(n,t,r,a,i,o){var s=n?e.createDiagnosticForNode(n,t,r,a,i,o):e.createCompilerDiagnostic(t,r,a,i,o),l=It.lookup(s);return l||(It.add(s),s)}(n,t,r),o=0,s=a||e.emptyArray;o<s.length;o++){var l=s[o];i.relatedInformation=i.relatedInformation||[],e.length(i.relatedInformation)>=5||e.addRelatedInfo(i,e.length(i.relatedInformation)?e.createDiagnosticForNode(l,e.Diagnostics.and_here):e.createDiagnosticForNode(l,e.Diagnostics._0_was_also_declared_here,r))}}function er(e,n,t){void 0===t&&(t=!1),n.forEach(function(n,r){var a=e.get(r);e.set(r,a?Qt(a,n,t):n)})}function nr(n){var t=n.parent;if(t.symbol.declarations[0]===t)if(e.isGlobalScopeAugmentation(t))er(Y,t.symbol.exports);else{var r=kr(n,n,4194304&n.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!r)return;if(1920&(r=Pr(r)).flags)if(e.some(en,function(e){return r===e.symbol})){var a=Qt(t.symbol,r,!0);nn||(nn=e.createMap()),nn.set(n.text,a)}else Qt(r,t.symbol);else Ht(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}else e.Debug.assert(t.symbol.declarations.length>1)}function tr(e){if(33554432&e.flags)return e;var n=R(e);return vt[n]||(vt[n]={})}function rr(e){var n=D(e);return ht[n]||(ht[n]={flags:0})}function ar(n){return 285===n.kind&&!e.isExternalOrCommonJsModule(n)}function ir(n,t,r){if(r){var a=n.get(t);if(a){if(e.Debug.assert(0==(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&r)return a;if(2097152&a.flags){var i=Ar(a);if(i===me||i.flags&r)return a}}}}function or(t,r){var a=e.getSourceFileOfNode(t),i=e.getSourceFileOfNode(r);if(a!==i){if(F&&(a.externalModuleIndicator||i.externalModuleIndicator)||!P.outFile&&!P.out||pm(r)||4194304&t.flags)return!0;if(c(r,t))return!0;var o=n.getSourceFiles();return o.indexOf(a)<=o.indexOf(i)}if(t.pos<=r.pos){if(187===t.kind){var s=e.getAncestor(r,187);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<s.pos:or(e.getAncestor(t,238),r)}return 238===t.kind?!function(n,t){var r=e.getEnclosingBlockScopeContainer(n);switch(n.parent.parent.kind){case 220:case 226:case 228:if(fr(t,n,r))return!0}var a=n.parent.parent;return e.isForInOrOfStatement(a)&&fr(t,a.expression,r)}(t,r):e.isClassDeclaration(t)?!e.findAncestor(r,function(n){return e.isComputedPropertyName(n)&&n.parent.parent===t}):!e.isPropertyDeclaration(t)||!function(n,t){return!(t.end>n.end)&&void 0===e.findAncestor(t,function(e){if(e===n)return"quit";switch(e.kind){case 198:case 155:return!0;case 219:switch(e.parent.kind){case 159:case 157:case 160:return!0;default:return!1}default:return!1}})}(t,r)}if(258===r.parent.kind||255===r.parent.kind&&r.parent.isExportEquals)return!0;if(255===r.kind&&r.isExportEquals)return!0;var l=e.getEnclosingBlockScopeContainer(t);return!!(2097152&r.flags)||pm(r)||c(r,t,l);function c(n,t,r){return!!e.findAncestor(n,function(a){if(a===r)return"quit";if(e.isFunctionLike(a))return!0;if(a.parent&&155===a.parent.kind&&a.parent.initializer===a)if(e.hasModifier(a.parent,32)){if(157===t.kind)return!0}else if(155!==t.kind||e.hasModifier(t,32)||e.getContainingClass(n)!==e.getContainingClass(t))return!0;return!1})}}function sr(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),lr(e,n,t,r,a,i,o,ir,s)}function lr(n,t,r,a,i,o,s,l,c){var d,u,m,p,f,g,_=n,y=!1,v=n,h=!1;e:for(;n;){if(n.locals&&!ar(n)&&(d=l(n.locals,t,r))){var b=!0;if(e.isFunctionLike(n)&&u&&u!==n.body){if(r&d.flags&788968&&298!==u.kind&&(b=!!(262144&d.flags)&&(u===n.type||152===u.kind||151===u.kind)),r&d.flags&3){var E=n;P.target&&P.target>=2&&e.isParameter(u)&&E.body&&d.valueDeclaration.pos>=E.body.pos&&d.valueDeclaration.end<=E.body.end?b=!1:1&d.flags&&(b=152===u.kind||u===n.type&&!!e.findAncestor(d.valueDeclaration,e.isParameter))}}else 176===n.kind&&(b=u===n.trueType);if(b)break e;d=void 0}switch(y=y||cr(n,u),n.kind){case 285:if(!e.isExternalOrCommonJsModule(n))break;h=!0;case 245:var T=qr(n).exports;if(285===n.kind||e.isAmbientModule(n)){if(d=T.get("default")){var S=e.getLocalSymbolForExportDefault(d);if(S&&d.flags&r&&S.escapedName===t)break e;d=void 0}var L=T.get(t);if(L&&2097152===L.flags&&e.getDeclarationOfKind(L,258))break}if("default"!==t&&(d=l(T,t,2623475&r))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||d.declarations.some(e.isJSDocTypeAlias))break e;d=void 0}break;case 244:if(d=l(qr(n).exports,t,8&r))break e;break;case 155:if(!e.hasModifier(n,32)){var x=Zr(n.parent);x&&x.locals&&l(x.locals,t,111551&r)&&(p=n)}break;case 241:case 210:case 242:if(d=l(qr(n).members||A,t,788968&r)){if(!mr(d,n)){d=void 0;break}if(u&&e.hasModifier(u,32))return void Ht(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(210===n.kind&&32&r){var C=n.name;if(C&&t===C.escapedText){d=n.symbol;break e}}break;case 212:if(u===n.expression&&87===n.parent.token){var D=n.parent.parent;if(e.isClassLike(D)&&(d=l(qr(D).members,t,788968&r)))return void(a&&Ht(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 150:if(g=n.parent.parent,(e.isClassLike(g)||242===g.kind)&&(d=l(qr(g).members,t,788968&r)))return void Ht(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 198:if(P.target>=2)break;case 157:case 158:case 159:case 160:case 240:if(3&r&&"arguments"===t){d=ee;break e}break;case 197:if(3&r&&"arguments"===t){d=ee;break e}if(16&r){var R=n.name;if(R&&t===R.escapedText){d=n.symbol;break e}}break;case 153:n.parent&&152===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||241===n.parent.kind)&&(n=n.parent);break;case 312:case 305:case 306:n=e.getJSDocHost(n);break;case 152:u&&u===n.initializer&&(f=n);break;case 187:u&&u===n.initializer&&152===(N=e.getRootDeclaration(n)).kind&&(f=n)}dr(n)&&(m=n),u=n,n=n.parent}if(!o||!d||m&&d===m.symbol||(d.isReferenced|=r),!d){if(u&&(e.Debug.assert(285===u.kind),u.commonJsModuleIndicator&&"exports"===t&&r&u.symbol.flags))return u.symbol;s||(d=l(Y,t,r))}if(!d&&_&&e.isInJSFile(_)&&_.parent&&e.isRequireCall(_.parent,!1))return ne;if(d){if(a){if(p){var M=p.name;return void Ht(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(M),ur(i))}if(v&&(2&r||(32&r||384&r)&&111551==(111551&r))){var I=Yr(d);(2&I.flags||32&I.flags||384&I.flags)&&function(n,t){e.Debug.assert(!!(2&n.flags||32&n.flags||384&n.flags));var r=e.find(n.declarations,function(n){return e.isBlockOrCatchScoped(n)||e.isClassLike(n)||244===n.kind});if(void 0===r)return e.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");if(!(4194304&r.flags||or(r,t))){var a=void 0,i=e.declarationNameToString(e.getNameOfDeclaration(r));2&n.flags?a=Ht(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,i):32&n.flags?a=Ht(t,e.Diagnostics.Class_0_used_before_its_declaration,i):256&n.flags?a=Ht(t,e.Diagnostics.Enum_0_used_before_its_declaration,i):(e.Debug.assert(!!(128&n.flags)),P.preserveConstEnums&&(a=Ht(t,e.Diagnostics.Class_0_used_before_its_declaration,i))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,i))}}(I,v)}if(d&&h&&111551==(111551&r)&&!(2097152&_.flags)){var O=Wr(d);e.length(O.declarations)&&e.every(O.declarations,function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports})&&jt(!P.allowUmdGlobalAccess,v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(d&&f&&!y&&111551==(111551&r)){var k=Wr(oo(d)),N=e.getRootDeclaration(f);k===qr(f)?Ht(v,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(f.name)):k.valueDeclaration&&k.valueDeclaration.pos>f.pos&&N.parent.locals&&l(N.parent.locals,k.escapedName,r)===k&&Ht(v,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(f.name),e.declarationNameToString(v))}}return d}if(a&&(!v||!(function(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||Sh(n)||pm(n))return!1;for(var a=e.getThisContainer(n,!1),i=a;i;){if(e.isClassLike(i.parent)){var o=qr(i.parent);if(!o)break;var s=hi(o);if(as(s,t))return Ht(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ur(r),ba(o)),!0;if(i===a&&!e.hasModifier(i,32)){var l=Hi(o).thisType;if(as(l,t))return Ht(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ur(r)),!0}}i=i.parent}return!1}(v,t,i)||pr(v)||function(n,t,r){var a=1920|(e.isInJSFile(n)?111551:0);if(r===a){var i=Lr(sr(n,t,788968&~a,void 0,void 0,!1)),o=n.parent;if(i){if(e.isQualifiedName(o)){e.Debug.assert(o.left===n,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText,l=as(Hi(i),s);if(l)return Ht(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(s)),!0}return Ht(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}(v,t,r)||function(n,t,r){if(111551&r){if("any"===t||"string"===t||"number"===t||"boolean"===t||"never"===t)return Ht(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var a=Lr(sr(n,t,788544,void 0,void 0,!1));if(a&&!(1024&a.flags)){var i=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return Ht(n,i,e.unescapeLeadingUnderscores(t)),!0}}return!1}(v,t,r)||function(n,t,r){if(111127&r){var a=Lr(sr(n,t,1024,void 0,void 0,!1));if(a)return Ht(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(788544&r){var a=Lr(sr(n,t,1536,void 0,void 0,!1));if(a)return Ht(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)||function(n,t,r){if(788584&r){var a=Lr(sr(n,t,111127,void 0,void 0,!1));if(a&&!(1920&a.flags))return Ht(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)))){var w=void 0;if(c&&gt<_t&&(w=Xf(_,t,r))){var G=ba(w),F=Ht(v,c,ur(i),G);w.valueDeclaration&&e.addRelatedInfo(F,e.createDiagnosticForNode(w.valueDeclaration,e.Diagnostics._0_is_declared_here,G))}w||Ht(v,a,ur(i)),gt++}}function cr(n,t){return 198!==n.kind&&197!==n.kind?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||155===n.kind&&!e.hasModifier(n,32))&&(!t||t!==n.name):!(t&&t===n.name||!n.asteriskToken&&!e.hasModifier(n,256)&&e.getImmediatelyInvokedFunctionExpression(n))}function dr(e){switch(e.kind){case 240:case 241:case 242:case 244:case 243:case 245:return!0;default:return!1}}function ur(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function mr(n,t){for(var r=0,a=n.declarations;r<a.length;r++){var i=a[r];if(151===i.kind&&(e.isJSDocTemplateTag(i.parent)?e.getJSDocHost(i.parent):i.parent)===t)return!(e.isJSDocTemplateTag(i.parent)&&e.find(i.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function pr(n){var t=function n(t){switch(t.kind){case 73:case 190:return t.parent?n(t.parent):void 0;case 212:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}(n);return!(!t||!Mr(t,64,!0)||(Ht(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),0))}function fr(n,t,r){return!!t&&!!e.findAncestor(n,function(n){return n===r||e.isFunctionLike(n)?"quit":n===t})}function gr(e){switch(e.kind){case 249:return e;case 251:return e.parent;case 252:return e.parent.parent;case 254:return e.parent.parent.parent;default:return}}function _r(n){return e.find(n.declarations,e.isAliasSymbolDeclaration)}function yr(e,n,t){var r=e.exports.get("export=");return r?as(hi(r),n):Lr(e.exports.get(n),t)}function vr(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasModifier(n,512)||e.isExportSpecifier(n)}function hr(n,t,r){if(!V)return!1;if(!n||n.isDeclarationFile){var a=yr(t,"default",!0);return!(a&&e.some(a.declarations,vr)||yr(t,e.escapeLeadingUnderscores("__esModule"),r))}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!yr(t,e.escapeLeadingUnderscores("__esModule"),r):Fr(t)}function br(n,t,r){void 0===r&&(r=!1);var a=Or(n,n.moduleSpecifier),i=Gr(a,n.moduleSpecifier,r);if(i){var o=t.propertyName||t.name;if(o.escapedText){if(e.isShorthandAmbientModuleSymbol(a))return a;var s=void 0;s=Lr(s=a&&a.exports&&a.exports.get("export=")?as(hi(i),o.escapedText):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return Lr(as(Nc(t),n))}}(i,o.escapedText),r);var l=function(e,n,t){if(1536&e.flags)return Lr(Ur(e).get(n),t)}(i,o.escapedText,r);!l&&V&&"default"===o.escapedText&&(l=Pr(a,r)||Lr(a,r));var c=l&&s&&l!==s?function(n,t){if(n===me&&t===me)return me;if(790504&n.flags)return n;var r=qt(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=t.members),n.exports&&(r.exports=n.exports),r}(s,l):l||s;if(!c){var d=Rr(a,n),u=e.declarationNameToString(o),m=Jf(o,i);if(void 0!==m){var p=ba(m),f=Ht(o,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,d,u,p);m.valueDeclaration&&e.addRelatedInfo(f,e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,p))}else Ht(o,e.Diagnostics.Module_0_has_no_exported_member_1,d,u)}return c}}}function Er(e,n,t){return e.parent.parent.moduleSpecifier?br(e.parent.parent,e,t):Mr(e.propertyName||e.name,n,!1,t)}function Tr(n,t){switch(void 0===t&&(t=!1),n.kind){case 249:return function(n,t){return 260===n.moduleReference.kind?Pr(Or(n,e.getExternalModuleImportEqualsDeclarationExpression(n))):Dr(n.moduleReference,t)}(n,t);case 251:return function(n,t){var r=Or(n,n.parent.moduleSpecifier);if(r){var a=void 0;a=e.isShorthandAmbientModuleSymbol(r)?r:yr(r,"default",t);var i=hr(e.find(r.declarations,e.isSourceFile),r,t);if(a||i){if(i)return Pr(r,t)||Lr(r,t)}else if(Fr(r)){var o=F>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",s=r.exports.get("export=").valueDeclaration,l=Ht(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ba(r),o);e.addRelatedInfo(l,e.createDiagnosticForNode(s,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,o))}else Ht(n.name,e.Diagnostics.Module_0_has_no_default_export,ba(r));return a}}(n,t);case 252:return function(e,n){var t=e.parent.parent.moduleSpecifier;return Gr(Or(e,t),t,n)}(n,t);case 254:return function(e,n){return br(e.parent.parent.parent,e,n)}(n,t);case 258:return Er(n,901119,t);case 255:case 205:return function(n,t){var r=e.isExportAssignment(n)?n.expression:n.right;if(e.isClassExpression(r))return ly(r).symbol;var a=Mr(r,901119,!0,t);return a||(ly(r),rr(r).resolvedSymbol)}(n,t);case 248:return function(e,n){return Pr(e.parent.symbol,n)}(n,t);default:return e.Debug.fail()}}function Sr(e,n){return void 0===n&&(n=901119),!(!e||2097152!=(e.flags&(2097152|n))&&!(2097152&e.flags&&67108864&e.flags))}function Lr(e,n){return!n&&Sr(e)?Ar(e):e}function Ar(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=tr(n);if(t.target)t.target===pe&&(t.target=me);else{t.target=pe;var r=_r(n);if(!r)return e.Debug.fail();var a=Tr(r);t.target===pe?t.target=a||me:Ht(r,e.Diagnostics.Circular_definition_of_import_alias_0,ba(n))}return t.target}function xr(e){var n=qr(e),t=Ar(n);t&&(t===me||111551&t.flags&&!jh(t))&&Cr(n)}function Cr(n){var t=tr(n);if(!t.referenced){t.referenced=!0;var r=_r(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var a=Lr(n);(a===me||111551&a.flags)&&z_(r.moduleReference)}}}function Dr(n,t){return 73===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),73===n.kind||149===n.parent.kind?Mr(n,1920,!1,t):(e.Debug.assert(249===n.parent.kind),Mr(n,901119,!1,t))}function Rr(e,n){return e.parent?Rr(e.parent,n)+"."+ba(e):ba(e,n,void 0,20)}function Mr(n,t,r,a,i){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(73===n.kind){var l=t===s?e.Diagnostics.Cannot_find_namespace_0:um(oh(n)),c=e.isInJSFile(n)?function(n,t){if(cl(n.parent)){var r=function(n){if(!e.findAncestor(n,function(n){return e.isJSDocNode(n)||2097152&n.flags?e.isJSDocTypeAlias(n):"quit"})){var t=e.getJSDocHost(n);if(e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&3===e.getAssignmentDeclarationKind(t.expression)){var r=qr(t.expression.left);if(r)return Ir(r)}if((e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)){var r=qr(t.parent.parent.left);if(r)return Ir(r)}var a=e.getHostSignatureFromJSDocHost(t);if(a){var r=qr(a);return r&&r.valueDeclaration}}}(n.parent);if(r)return sr(r,n.escapedText,t,void 0,n,!0)}}(n,t):void 0;if(!(o=sr(i||n,n.escapedText,t,r||c?void 0:l,n,!0)))return c}else{if(149!==n.kind&&190!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var d=149===n.kind?n.left:n.expression,u=149===n.kind?n.right:n.name,m=Mr(d,s,r,!1,i);if(!m||e.nodeIsMissing(u))return;if(m===me)return m;if(e.isInJSFile(n)&&m.valueDeclaration&&e.isVariableDeclaration(m.valueDeclaration)&&m.valueDeclaration.initializer&&Yg(m.valueDeclaration.initializer)){var p=m.valueDeclaration.initializer.arguments[0],f=Or(p,p);if(f){var g=Pr(f);g&&(m=g)}}if(!(o=ir(Ur(m),u.escapedText,t)))return void(r||Ht(u,e.Diagnostics.Namespace_0_has_no_exported_member_1,Rr(m),e.declarationNameToString(u)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&t||a?o:Ar(o)}}function Ir(n){var t=n.parent.valueDeclaration;if(t)return(e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0)||t}function Or(n,t,r){return kr(n,t,r?void 0:e.Diagnostics.Cannot_find_module_0)}function kr(n,t,r,a){return void 0===a&&(a=!1),e.isStringLiteralLike(t)?Nr(n,t.text,r,t,a):void 0}function Nr(t,r,a,i,o){if(void 0===o&&(o=!1),void 0!==r){e.startsWith(r,"@types/")&&Ht(i,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=gs(r,!0);if(s)return s;var l=e.getSourceFileOfNode(t),c=e.getResolvedModule(l,r),d=c&&e.getResolutionDiagnostic(P,c),u=c&&!d&&n.getSourceFile(c.resolvedFileName);if(u)return u.symbol?(c.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(c.extension)&&wr(!1,i,c,r),Wr(u.symbol)):void(a&&Ht(i,e.Diagnostics.File_0_is_not_a_module,u.fileName));if(en){var m=e.findBestPatternMatch(en,function(e){return e.pattern},r);if(m){var p=nn&&nn.get(r);return Wr(p||m.symbol)}}if(c&&!e.resolutionExtensionIsTSOrJson(c.extension)&&void 0===d||d===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Ht(i,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,c.resolvedFileName):wr(j&&!!a,i,c,r);else if(a){if(c){var f=n.getProjectReferenceRedirect(c.resolvedFileName);if(f)return void Ht(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,c.resolvedFileName)}if(d)Ht(i,d,r,c.resolvedFileName);else{var g=e.tryExtractTSExtension(r);g?Ht(i,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,g,e.removeExtension(r,g)):!P.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(P)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(P)?Ht(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):Ht(i,a,r)}}}}function wr(n,t,r,a){var i,o=r.packageId,s=r.resolvedFileName,l=!e.isExternalModuleNameRelative(a)&&o?(i=o.name,p().has(e.getTypesPackageName(i))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,e.mangleScopedPackageName(o.name))):void 0;jt(n,t,e.chainDiagnosticMessages(l,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,s))}function Pr(n,t){if(n)return Wr(function(n,t){if(!n||n===me||n===t||1===t.exports.size||2097152&n.flags)return n;var r=Yt(n);return void 0===r.exports&&(r.flags=512|r.flags,r.exports=e.createSymbolTable()),t.exports.forEach(function(e,n){"export="!==n&&r.exports.set(n,r.exports.has(n)?Qt(r.exports.get(n),e):e)}),r}(Lr(n.exports.get("export="),t),n))||n}function Gr(n,t,r){var a=Pr(n,r);if(!r&&a){if(!(1539&a.flags||e.getDeclarationOfKind(a,285))){var i=F>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Ht(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,i),a}if(P.esModuleInterop){var o=t.parent;if(e.isImportDeclaration(o)&&e.getNamespaceDeclarationNode(o)||e.isImportCall(o)){var s=hi(a),l=is(s,0);if(l&&l.length||(l=is(s,1)),l&&l.length){var c=Jg(s,a,n),d=qt(a.flags,a.escapedName);d.declarations=a.declarations?a.declarations.slice():[],d.parent=a.parent,d.target=a,d.originatingImport=o,a.valueDeclaration&&(d.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),a.members&&(d.members=e.cloneMap(a.members)),a.exports&&(d.exports=e.cloneMap(a.exports));var u=Po(c);return d.type=sa(d,u.members,e.emptyArray,e.emptyArray,u.stringIndexInfo,u.numberIndexInfo),d}}}}return a}function Fr(e){return void 0!==e.exports.get("export=")}function Vr(e){return ps(Hr(e))}function Br(e,n){var t=Hr(n);if(t)return t.get(e)}function Ur(e){return 32&e.flags?ao(e,"resolvedExports"):1536&e.flags?Hr(e):e.exports||A}function Hr(e){var n=tr(e);return n.resolvedExports||(n.resolvedExports=jr(e))}function Kr(n,t,r,a){t&&t.forEach(function(t,i){if("default"!==i){var o=n.get(i);if(o){if(r&&a&&o&&Lr(o)!==Lr(t)){var s=r.get(i);s.exportsWithDuplicate?s.exportsWithDuplicate.push(a):s.exportsWithDuplicate=[a]}}else n.set(i,t),r&&a&&r.set(i,{specifierText:e.getTextOfNode(a.moduleSpecifier)})}})}function jr(n){var t=[];return function n(r){if(r&&r.exports&&e.pushIfUnique(t,r)){var a=e.cloneMap(r.exports),i=r.exports.get("__export");if(i){for(var o=e.createSymbolTable(),s=e.createMap(),l=0,c=i.declarations;l<c.length;l++){var d=c[l],u=Or(d,d.moduleSpecifier),m=n(u);Kr(o,m,s,d)}s.forEach(function(n,t){var r=n.exportsWithDuplicate;if("export="!==t&&r&&r.length&&!a.has(t))for(var i=0,o=r;i<o.length;i++){var l=o[i];It.add(e.createDiagnosticForNode(l,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(t).specifierText,e.unescapeLeadingUnderscores(t)))}}),Kr(a,o)}return a}}(n=Pr(n))||A}function Wr(e){var n;return e&&e.mergeId&&(n=yt[e.mergeId])?n:e}function qr(e){return Wr(e.symbol&&oo(e.symbol))}function zr(e){return Wr(e.parent&&oo(e.parent))}function Xr(t,r){var a=zr(t);if(a){var i=e.mapDefined(a.declarations,function(e){var n=ga(e);return Lr(n&&n.exports&&n.exports.get("export="))===Lr(a)?n:void 0}),o=r&&function(t,r){var a,i=e.getSourceFileOfNode(r),o=""+D(i),s=tr(t);if(s.extendedContainersByFile&&(a=s.extendedContainersByFile.get(o)))return a;if(i&&i.imports){for(var l=0,c=i.imports;l<c.length;l++){var d=c[l];if(!e.nodeIsSynthesized(d)){var u=Or(r,d,!0);u&&Jr(u,t)&&(a=e.append(a,u))}}if(e.length(a))return(s.extendedContainersByFile||(s.extendedContainersByFile=e.createMap())).set(o,a),a}if(s.extendedContainers)return s.extendedContainers;for(var m=0,p=n.getSourceFiles();m<p.length;m++){var f=p[m];if(e.isExternalModule(f)){var g=qr(f);Jr(g,t)&&(a=e.append(a,g))}}return s.extendedContainers=a||e.emptyArray}(t,r);if(r&&da(a,r,1920,!1))return e.concatenate(e.concatenate([a],i),o);var s=e.append(i,a);return e.concatenate(s,o)}var l=e.mapDefined(t.declarations,function(n){return!e.isAmbientModule(n)&&n.parent&&ya(n.parent)?qr(n.parent):void 0});if(e.length(l))return e.mapDefined(l,function(e){return Jr(e,t)?e:void 0})}function Jr(n,t){if(n===zr(t))return t;var r=Ur(n),a=r.get(t.escapedName);return a&&i(a)?a:e.forEachEntry(r,function(e){if(i(e))return e});function i(e){if(e===t||Lr(e)===t||Lr(e)===Lr(t))return e}}function Yr(e){return Wr(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Qr(e){return!!(111551&e.flags||2097152&e.flags&&111551&Ar(e).flags)}function Zr(n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t];if(158===a.kind&&e.nodeIsPresent(a.body))return a}}function $r(e){var n=new g(te,e);return y++,n.id=y,n}function ea(e,n,t){void 0===t&&(t=0);var r=$r(e);return r.intrinsicName=n,r.objectFlags=t,r}function na(e){var n=Gl(e);return n.flags|=16,n.intrinsicName="boolean",n}function ta(e,n){var t=$r(524288);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 ra(e){var n=$r(262144);return e&&(n.symbol=e),n}function aa(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function ia(n){var t;return n.forEach(function(e,n){!aa(n)&&Qr(e)&&(t||(t=[])).push(e)}),t||e.emptyArray}function oa(n,t,r,a,i,o){return n.members=t,n.properties=t===A?e.emptyArray:ia(t),n.callSignatures=r,n.constructSignatures=a,n.stringIndexInfo=i,n.numberIndexInfo=o,n}function sa(e,n,t,r,a,i){return oa(ta(16,e),n,t,r,a,i)}function la(n,t){for(var r,a=n;a;a=a.parent){if(a.locals&&!ar(a)&&(r=t(a.locals)))return r;switch(a.kind){case 285:if(!e.isExternalOrCommonJsModule(a))break;case 245:if(r=t(qr(a).exports))return r}}return t(Y)}function ca(e){return 111551===e?111551:1920}function da(n,t,r,a,i){if(void 0===i&&(i=e.createMap()),n&&!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 155:case 157:case 159:case 160:continue;default:return!1}}return!0}return!1}(n)){var o=""+R(n),s=i.get(o);return s||i.set(o,s=[]),la(t,l)}function l(i,o){if(e.pushIfUnique(s,i)){var u=function(i,o){return d(i.get(n.escapedName),void 0,o)?[n]:e.forEachEntry(i,function(i){if(2097152&i.flags&&"export="!==i.escapedName&&"default"!==i.escapedName&&!(e.isUMDExportSymbol(i)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!a||e.some(i.declarations,e.isExternalModuleImportEqualsDeclaration))&&(o||!e.getDeclarationOfKind(i,258))){var s=Ar(i);if(d(i,s,o))return[i];var u=Ur(s),m=u&&l(u,!0);if(m&&c(i,ca(r)))return[i].concat(m)}if(i.escapedName===n.escapedName&&i.exportSymbol&&d(Wr(i.exportSymbol),void 0,o))return[n]})}(i,o);return s.pop(),u}}function c(e,n){return!ua(e,t,n)||!!da(e.parent,t,ca(n),a,i)}function d(t,a,i){return n===(a||t)&&!e.some(t.declarations,ya)&&(i||c(t,r))}}function ua(n,t,r){var a=!1;return la(t,function(t){var i=Wr(t.get(n.escapedName));return!!i&&(i===n||!!((i=2097152&i.flags&&!e.getDeclarationOfKind(i,258)?Ar(i):i).flags&r)&&(a=!0,!0))}),a}function ma(e,n){return 0===fa(e,n,788968,!1).accessibility}function pa(e,n){return 0===fa(e,n,111551,!1).accessibility}function fa(n,t,r,a){if(n&&t){var i=function n(t,r,a,i,o){if(e.length(t)){for(var s,l=0,c=t;l<c.length;l++){var d=c[l],u=da(d,r,i,!1);if(u){s=d;var m=va(u[0],o);if(m)return m}else if(e.some(d.declarations,ya))return{accessibility:0};var p=Xr(d,r),f=e.first(d.declarations);!e.length(p)&&111551&i&&f&&e.isObjectLiteralExpression(f)&&f.parent&&e.isVariableDeclaration(f.parent)&&f===f.parent.initializer&&(p=[qr(f.parent)]);var g=n(p,r,a,a===d?ca(i):i,o);if(g)return g}return s?{accessibility:1,errorSymbolName:ba(a,r,i),errorModuleName:s!==a?ba(s,r,1920):void 0}:void 0}}([n],t,n,r,a);if(i)return i;var o=e.forEach(n.declarations,ga);return o&&o!==ga(t)?{accessibility:2,errorSymbolName:ba(n,t,r),errorModuleName:ba(o)}:{accessibility:1,errorSymbolName:ba(n,t,r)}}return{accessibility:0}}function ga(n){var t=e.findAncestor(n,_a);return t&&qr(t)}function _a(n){return e.isAmbientModule(n)||285===n.kind&&e.isExternalOrCommonJsModule(n)}function ya(n){return e.isModuleWithStringLiteralName(n)||285===n.kind&&e.isExternalOrCommonJsModule(n)}function va(n,t){var r;if(e.every(e.filter(n.declarations,function(e){return 73!==e.kind}),function(n){if(!Ia(n)){var t=gr(n);return t&&!e.hasModifier(t,1)&&Ia(t.parent)?a(n,t):e.isVariableDeclaration(n)&&e.isVariableStatement(n.parent.parent)&&!e.hasModifier(n.parent.parent,1)&&Ia(n.parent.parent.parent)?a(n,n.parent.parent):!(!e.isLateVisibilityPaintedStatement(n)||e.hasModifier(n,1)||!Ia(n.parent))&&a(n,n)}return!0}))return{accessibility:0,aliasesToMakeVisible:r};function a(n,a){return t&&(rr(n).isVisible=!0,r=e.appendIfUnique(r,a)),!0}}function ha(n,t){var r;r=168===n.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||150===n.parent.kind?1160127:149===n.kind||190===n.kind||249===n.parent.kind?1920:788968;var a=oh(n),i=sr(t,a.escapedText,r,void 0,void 0,!1);return i&&va(i,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function ba(n,t,r,a,i){void 0===a&&(a=4);var o=70221824;2&a&&(o|=128),1&a&&(o|=512),8&a&&(o|=16384),16&a&&(o|=134217728);var s=4&a?J.symbolToExpression:J.symbolToEntityName;return i?l(i).getText():e.usingSingleLineStringWriter(l);function l(a){var i=s(n,r,t,o),l=e.createPrinter({removeComments:!0}),c=t&&e.getSourceFileOfNode(t);return l.writeNode(4,i,c,a),a}}function Ea(n,t,r,a,i){return void 0===r&&(r=0),i?o(i).getText():e.usingSingleLineStringWriter(o);function o(i){var o;o=262144&r?1===a?167:166:1===a?162:161;var s=J.signatureToSignatureDeclaration(n,o,t,70222336|La(r)),l=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),c=t&&e.getSourceFileOfNode(t);return l.writeNode(4,s,c,e.getTrailingSemicolonOmittingWriter(i)),i}}function Ta(n,t,r,a){void 0===r&&(r=1064960),void 0===a&&(a=e.createTextWriter(""));var i=P.noErrorTruncation||1&r,o=J.typeToTypeNode(n,t,70221824|La(r)|(i?1:0),a);if(void 0===o)return e.Debug.fail("should always get typenode");var s=e.createPrinter({removeComments:!0}),l=t&&e.getSourceFileOfNode(t);s.writeNode(4,o,l,a);var c=a.getText(),d=i?void 0:2*e.defaultMaximumTruncationLength;return d&&c&&c.length>=d?c.substr(0,d-"...".length)+"...":c}function Sa(e,n){var t=Ta(e),r=Ta(n);return t===r&&(t=Ta(e,void 0,64),r=Ta(n,void 0,64)),[t,r]}function La(e){return void 0===e&&(e=0),9469291&e}function Aa(n,t,r,a){return void 0===r&&(r=16384),a?i(a).getText():e.usingSingleLineStringWriter(i);function i(a){var i=e.createTypePredicateNode(1===n.kind?e.createIdentifier(n.parameterName):e.createThisTypeNode(),J.typeToTypeNode(n.type,t,70222336|La(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,i,s,a),a}}function xa(e){return 8===e?"private":16===e?"protected":"public"}function Ca(n){return n&&n.parent&&246===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function Da(n){return 285===n.kind||e.isAmbientModule(n)}function Ra(n,t){var r=n.nameType;if(r){if(384&r.flags){var a=""+r.value;return e.isIdentifierText(a,P.target)||of(a)?of(a)&&e.startsWith(a,"-")?"["+a+"]":a:'"'+e.escapeString(a,34)+'"'}if(8192&r.flags)return"["+Ma(r.symbol,t)+"]"}}function Ma(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],Da)!==e.findAncestor(t.enclosingDeclaration,Da)))return"default";if(n.declarations&&n.declarations.length){var r=n.declarations[0],a=e.getNameOfDeclaration(r);if(a){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(a)&&!(4096&e.getCheckFlags(n))&&n.nameType&&384&n.nameType.flags){var i=Ra(n,t);if(void 0!==i)return i}return e.declarationNameToString(a)}if(r.parent&&238===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 210:case 197:case 198:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),210===r.kind?"(Anonymous class)":"(Anonymous function)"}}var o=Ra(n,t);return void 0!==o?o:e.symbolName(n)}function Ia(n){if(n){var t=rr(n);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(n.kind){case 305:case 312:case 306:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 187:return Ia(n.parent.parent);case 238:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 245:case 241:case 242:case 243:case 240:case 244:case 249:if(e.isExternalModuleAugmentation(n))return!0;var t=Ga(n);return 1&e.getCombinedModifierFlags(n)||249!==n.kind&&285!==t.kind&&4194304&t.flags?Ia(t):ar(t);case 155:case 154:case 159:case 160:case 157:case 156:if(e.hasModifier(n,24))return!1;case 158:case 162:case 161:case 163:case 152:case 246:case 166:case 167:case 169:case 165:case 170:case 171:case 174:case 175:case 178:return Ia(n.parent);case 251:case 252:case 254:return!1;case 151:case 285:case 248:return!0;case 255:default:return!1}}()),t.isVisible}return!1}function Oa(n,t){var r,a;return n.parent&&255===n.parent.kind?r=sr(n,n.escapedText,2998271,void 0,n,!1):258===n.parent.kind&&(r=Er(n.parent,2998271)),r&&function n(r){e.forEach(r,function(r){var i=gr(r)||r;if(t?rr(r).isVisible=!0:(a=a||[],e.pushIfUnique(a,i)),e.isInternalModuleImportEqualsDeclaration(r)){var o=r.moduleReference,s=oh(o),l=sr(r,s.escapedText,901119,void 0,void 0,!1);l&&n(l.declarations)}})}(r.declarations),a}function ka(e,n){var t=Na(e,n);if(t>=0){for(var r=mt.length,a=t;a<r;a++)pt[a]=!1;return!1}return mt.push(e),pt.push(!0),ft.push(n),!0}function Na(e,n){for(var t=mt.length-1;t>=0;t--){if(wa(mt[t],ft[t]))return-1;if(mt[t]===e&&ft[t]===n)return t}return-1}function wa(n,t){switch(t){case 0:return!!tr(n).type;case 5:return!!rr(n).resolvedEnumType;case 2:return!!tr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!tr(n).resolvedJSDocType}return e.Debug.assertNever(t)}function Pa(){return mt.pop(),ft.pop(),pt.pop()}function Ga(n){return e.findAncestor(e.getRootDeclaration(n),function(e){switch(e.kind){case 238:case 239:case 254:case 253:case 252:case 251:return!1;default:return!0}}).parent}function Fa(e,n){var t=as(e,n);return t?hi(t):void 0}function Va(e){return e&&0!=(1&e.flags)}function Ba(e){var n=qr(e);return n&&tr(n).type||Qa(e,!1)}function Ua(n){return 150===n.kind&&!e.isStringOrNumericLiteralLike(n.expression)}function Ha(n,t,r){if(131072&(n=Km(n,function(e){return!(98304&e.flags)})).flags)return Ue;if(1048576&n.flags)return Wm(n,function(e){return Ha(e,t,r)});var a=Gl(e.map(t,Wl));if(nc(n)||tc(a)){if(131072&a.flags)return n;var i=Fn||(Fn=_l("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return i?$s(i,[n,a]):ye}for(var o=e.createSymbolTable(),s=0,l=Bo(n);s<l.length;s++){var c=l[s];gd(ql(c,8576),a)||24&e.getDeclarationModifierFlagsFromSymbol(c)||!Lc(c)||o.set(c.escapedName,Ac(c,!1))}var d=cs(n,0),u=cs(n,1);return sa(r,o,e.emptyArray,e.emptyArray,d,u)}function Ka(e,n){var t=ja(e);return t?ip(t,n):n}function ja(n){var t=function(e){var n=e.parent.parent;switch(n.kind){case 187:case 276:return ja(n);case 188:return ja(e.parent);case 238:return n.initializer;case 205:return n.right}}(n);if(t&&t.flowNode){var r=function(e){var n=e.parent;return 187===e.kind&&185===n.kind?Wa(e.propertyName||e.name):276===e.kind||277===e.kind?Wa(e.name):""+n.elements.indexOf(e)}(n);if(r){var a=e.createNode(191,n.pos,n.end);a.parent=n,a.expression=t;var i=e.createNode(10,n.pos,n.end);return i.parent=a,i.text=r,a.argumentExpression=i,a.flowNode=t.flowNode,a}}}function Wa(e){var n=Wl(e);return 384&n.flags?""+n.value:void 0}function qa(n){var t,r=n.parent,a=Ba(r.parent);if(!a||Va(a))return a;if(B&&4194304&n.flags&&e.isParameterDeclaration(n)&&(a=xu(a)),185===r.kind)if(n.dotDotDotToken){if(2&a.flags||!uf(a))return Ht(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ye;for(var i=[],o=0,s=r.elements;o<s.length;o++){var l=s[o];l.dotDotDotToken||i.push(l.propertyName||l.name)}t=Ha(a,i,n.symbol)}else{var c=n.propertyName||n.name;t=Ka(n,mp(lc(a,m=Wl(c),c),n.name))}else{var d=vv(65,a,he,r),u=r.elements.indexOf(n);if(n.dotDotDotToken)t=Hm(a,_u)?Wm(a,function(e){return Ml(e,u)}):xl(d);else if(au(a)){var m=Ic(u),p=$p(n)?8:0;t=Ka(n,mp(cc(a,m,n.name,p)||ye,n.name))}else t=d}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?!B||32768&Eu(J_(n))?t:Am(t,524288):Gl([Am(t,524288),J_(n)],2):t}function za(n){var t=e.getJSDocType(n);if(t)return Nc(t)}function Xa(n){var t=e.skipParentheses(n);return 188===t.kind&&0===t.elements.length}function Ja(e,n){return void 0===n&&(n=!0),B&&n?Au(e):e}function Ya(e){return 152===e.kind&&(197===e.parent.kind||198===e.parent.kind)&&!!Wp(e.parent)}function Qa(n,t){if(e.isVariableDeclaration(n)&&227===n.parent.parent.kind){var r=Jl(Pf(ly(n.parent.parent.expression)));return 4456448&r.flags?Yl(r):Se}if(e.isVariableDeclaration(n)&&228===n.parent.parent.kind){var a=n.parent.parent;return yv(a.expression,a.awaitModifier)||fe}if(e.isBindingPattern(n.parent))return qa(n);var i,o,s=t&&(e.isParameter(n)&&fs(n)||!e.isBindingElement(n)&&!e.isVariableDeclaration(n)&&!!n.questionToken),l=ci(n);if(l)return Ja(l,s);if((j||e.isInJSFile(n))&&238===n.kind&&!e.isBindingPattern(n.name)&&!(1&e.getCombinedModifierFlags(n))&&!(4194304&n.flags)){if(!(2&e.getCombinedNodeFlags(n)||n.initializer&&(i=n.initializer,o=e.skipParentheses(i),97!==o.kind&&(73!==o.kind||mm(o)!==Q))))return ge;if(n.initializer&&Xa(n.initializer))return gn}if(152===n.kind){var c,d=n.parent;if(160===d.kind&&!no(d)){var u=e.getDeclarationOfKind(qr(n.parent),159);if(u){var m=Ts(u),p=Db(d);return p&&n===p?(e.Debug.assert(!p.type),hi(m.thisParameter)):Rs(m)}}if(e.isInJSFile(n)){var f=e.getJSDocType(d);if(f&&e.isFunctionTypeNode(f))return n_(Ts(f),d.parameters.indexOf(n))}if(c="this"===n.symbol.escapedName?xp(d):Cp(n,!0))return Ja(c,s)}else if(e.isInJSFile(n)){var g=$a(n,qr(n),e.getDeclaredExpandoInitializer(n));if(g)return g}return n.initializer&&!Ya(n)?Ja(c=J_(n),s):e.isJsxAttribute(n)?De:e.isBindingPattern(n.name)&&!Ya(n)?ii(n.name,!1,!0):void 0}function Za(n,t){var r=e.getAssignedExpandoInitializer(n.valueDeclaration);if(r){var a=e.getJSDocTypeTag(r);return a&&a.typeExpression?Nc(a.typeExpression):$a(n.valueDeclaration,n,r)||mu(z_(r))}for(var i,o,s=!1,l=!1,c=0,d=n.declarations;c<d.length;c++){var u=d[c],m=e.isBinaryExpression(u)||e.isCallExpression(u)?u:e.isPropertyAccessExpression(u)?e.isBinaryExpression(u.parent)?u.parent:u:void 0;if(!m)return ye;var p=e.isPropertyAccessExpression(m)?e.getAssignmentDeclarationPropertyAccessKind(m):e.getAssignmentDeclarationKind(m);4===p&&(ti(m)?s=!0:l=!0),e.isCallExpression(m)||(i=ei(i,m,n,u)),i||(o||(o=[])).push(e.isBinaryExpression(m)||e.isCallExpression(m)?ni(n,t,m,p):ke)}var f=i;if(!f){var g=s?function(n,t){return e.Debug.assert(n.length===t.length),n.filter(function(n,r){var a=t[r],i=e.isBinaryExpression(a)?a:e.isBinaryExpression(a.parent)?a.parent:void 0;return i&&ti(i)})}(o,n.declarations):void 0;if(l){var _=function(n){var t=e.forEach(n.declarations,function(n){var t=e.getThisContainer(n,!1).parent;return e.isClassLike(t)&&t});if(t){var r=Hi(qr(t)),a=r&&ki(r)[0];if(a)return Fa(a,n.escapedName)}}(n);_&&((g||(g=[])).push(_),s=!0)}f=Gl(e.some(g,function(e){return!!(-98305&e.flags)})?g:o,2)}var y=Nu(Ja(f,l&&!s));return Km(y,function(e){return!!(-98305&e.flags)})===ke?(Pu(n.valueDeclaration,fe),fe):y}function $a(n,t,r){if(e.isInJSFile(n)&&r&&e.isObjectLiteralExpression(r)&&!r.properties.length){for(var a=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var i=qr(n);i&&e.hasEntries(i.exports)&&er(a,i.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var o=qr(n);o&&e.hasEntries(o.exports)&&er(a,o.exports);var s=sa(t,a,e.emptyArray,e.emptyArray,void 0,void 0);return s.objectFlags|=16384,s}}function ei(n,t,r,a){var i=e.getEffectiveTypeAnnotationNode(t.parent);if(i){var o=Nu(Nc(i));if(!n)return o;n===ye||o===ye||dd(n,o)||cv(void 0,n,a,o)}if(r.parent){var s=e.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(s)return Fa(Nc(s),r.escapedName)}return n}function ni(n,t,r,a){if(e.isCallExpression(r)){if(t)return hi(t);var i=z_(r.arguments[2]),o=Fa(i,"value");if(o)return o;var s=Fa(i,"get");if(s){var l=dg(s);if(l)return Rs(l)}var c=Fa(i,"set");if(c){var d=dg(c);if(d)return c_(d)}return fe}var u=t?hi(t):mu(z_(r.right));if(524288&u.flags&&2===a&&"export="===n.escapedName){var m=Po(u),p=e.createSymbolTable();e.copyEntries(m.members,p),t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||n).exports.forEach(function(e,n){if(p.has(n)){var t=m.members.get(n),r=qt(e.flags|t.flags,n);r.type=Gl([hi(e),hi(t)]),p.set(n,r)}else p.set(n,e)});var f=sa(m.symbol,p,m.callSignatures,m.constructSignatures,m.stringIndexInfo,m.numberIndexInfo);return f.objectFlags|=16384&e.getObjectFlags(u),f}return iu(u)?(Pu(r,fn),fn):u}function ti(n){var t=e.getThisContainer(n,!1);return 158===t.kind||240===t.kind||197===t.kind&&!e.isPrototypePropertyAssignment(t.parent)}function ri(n,t,r){return n.initializer?Ja(J_(n)):e.isBindingPattern(n.name)?ii(n.name,t,r):(r&&!li(n)&&Pu(n,fe),fe)}function ai(n,t,r){var a,i=n.elements,o=e.lastOrUndefined(i),s=!(!o||187!==o.kind||!o.dotDotDotToken);if(0===i.length||1===i.length&&s)return G>=2?(a=fe,Ll(Tl(!0),[a])):fn;var l=Rl(e.map(i,function(n){return e.isOmittedExpression(n)?fe:ri(n,t,r)}),e.findLastIndex(i,function(n){return!e.isOmittedExpression(n)&&!$p(n)},i.length-(s?2:1))+1,s);return t&&((l=Ys(l)).pattern=n),l}function ii(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),185===n.kind?function(n,t,r){var a,i=e.createSymbolTable(),o=524416;e.forEach(n.elements,function(e){var n=e.propertyName||e.name;if(e.dotDotDotToken)a=Hs(fe,!1);else{var s=Wl(n);if(Qi(s)){var l=to(s),c=qt(4|(e.initializer?16777216:0),l);c.type=ri(e,t,r),c.bindingElement=e,i.set(c.escapedName,c)}else o|=512}});var s=sa(void 0,i,e.emptyArray,e.emptyArray,a,void 0);return s.objectFlags|=o,t&&(s.pattern=n),s}(n,t,r):ai(n,t,r)}function oi(e,n){return si(Qa(e,!0),e,n)}function si(n,t,r){return n?(r&&Gu(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==qr(t)&&(n=Ie),Nu(n)):(n=e.isParameter(t)&&t.dotDotDotToken?fn:fe,r&&(li(t)||Pu(t,n)),n)}function li(n){var t=e.getRootDeclaration(n);return Ay(152===t.kind?t.parent:t)}function ci(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Nc(t)}function di(n){var t=tr(n);if(!t.type){var r=function(n){if(4194304&n.flags)return(t=Hi(zr(n))).typeParameters?Js(t,e.map(t.typeParameters,function(e){return fe})):t;var t;if(n===ne)return fe;if(134217728&n.flags){var r=qr(e.getSourceFileOfNode(n.valueDeclaration)),a=e.createSymbolTable();return a.set("exports",r),sa(n,a,e.emptyArray,e.emptyArray,void 0,void 0)}var i,o=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o))return fe;if(e.isSourceFile(o)&&e.isJsonSourceFile(o)){if(!o.statements.length)return Ue;var s=mu(ly(o.statements[0].expression));return 524288&s.flags?Ru(s):s}if(!ka(n,0))return 512&n.flags?_i(n):vi(n);if(255===o.kind)i=si(z_(o.expression),o);else if(e.isInJSFile(o)&&(e.isCallExpression(o)||e.isBinaryExpression(o)||e.isPropertyAccessExpression(o)&&e.isBinaryExpression(o.parent)))i=Za(n);else if(e.isJSDocPropertyLikeTag(o)||e.isPropertyAccessExpression(o)||e.isIdentifier(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&n.flags)return _i(n);i=e.isBinaryExpression(o.parent)?Za(n):ci(o)||fe}else if(e.isPropertyAssignment(o))i=ci(o)||$_(o);else if(e.isJsxAttribute(o))i=ci(o)||ff(o);else if(e.isShorthandPropertyAssignment(o))i=ci(o)||Z_(o.name,0);else if(e.isObjectLiteralMethod(o))i=ci(o)||ey(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o))i=oi(o,!0);else if(e.isEnumDeclaration(o))i=_i(n);else{if(!e.isEnumMember(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(n));i=yi(n)}return Pa()?i:512&n.flags?_i(n):vi(n)}(n);t.type||(t.type=r)}return t.type}function ui(n){if(n)return 159===n.kind?e.getEffectiveReturnTypeNode(n):e.getEffectiveSetAccessorTypeAnnotationNode(n)}function mi(e){var n=ui(e);return n&&Nc(n)}function pi(e){return xs(Ts(e))}function fi(n){var t=tr(n);return t.type||(t.type=function(n){var t,r=e.getDeclarationOfKind(n,159),a=e.getDeclarationOfKind(n,160);if(r&&e.isInJSFile(r)){var i=za(r);if(i)return i}if(!ka(n,0))return ye;var o=mi(r);if(o)t=o;else{var s=mi(a);s?t=s:r&&r.body?t=__(r):(a?Ay(a)||jt(j,a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ba(n)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),jt(j,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ba(n))),t=fe)}if(!Pa()&&(t=fe,j)){var l=e.getDeclarationOfKind(n,159);Ht(l,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ba(n))}return t}(n))}function gi(e){var n=Oi(wi(e));return 8650752&n.flags?n:void 0}function _i(n){var t=tr(n),r=t;if(!t.type){var a=e.getDeclarationOfExpando(n.valueDeclaration);if(a){var i=qr(a);i&&(e.hasEntries(i.exports)||e.hasEntries(i.members))&&(t=n=Yt(n),e.hasEntries(i.exports)&&(n.exports=n.exports||e.createSymbolTable(),er(n.exports,i.exports)),e.hasEntries(i.members)&&(n.members=n.members||e.createSymbolTable(),er(n.members,i.members)))}r.type=t.type=function(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return fe;if(205===t.kind||190===t.kind&&205===t.parent.kind)return Za(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=Pr(n);if(r!==n){if(!ka(n,0))return ye;var a=Wr(n.exports.get("export=")),i=Za(a,a===r?void 0:r);return Pa()?i:vi(n)}}var o=ta(16,n);if(32&n.flags){var s=gi(n);return s?Kl([o,s]):o}return B&&16777216&n.flags?Au(o):o}(n)}return t.type}function yi(e){var n=tr(e);return n.type||(n.type=Bi(e))}function vi(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(Ht(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ba(n)),ye):(j&&(152!==t.kind||t.initializer)&&Ht(n.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ba(n)),fe)}function hi(n){return 65536&e.getCheckFlags(n)?function(n){var t=tr(n);return t.type||(e.Debug.assertDefined(t.deferralParent),e.Debug.assertDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?Gl(t.deferralConstituents):Kl(t.deferralConstituents)),t.type}(n):1&e.getCheckFlags(n)?function(e){var n=tr(e);if(!n.type){if(!ka(e,0))return n.type=ye;var t=nd(hi(n.target),n.mapper);Pa()||(t=vi(e)),n.type=t}return n.type}(n):8192&e.getCheckFlags(n)?function(e){return Yu(e.propertyType,e.mappedType,e.constraintType)}(n):7&n.flags?di(n):9136&n.flags?_i(n):8&n.flags?yi(n):98304&n.flags?fi(n):2097152&n.flags?function(e){var n=tr(e);if(!n.type){var t=Ar(e);n.type=111551&t.flags?hi(t):ye}return n.type}(n):ye}function bi(n,t){return void 0!==n&&void 0!==t&&0!=(4&e.getObjectFlags(n))&&n.target===t}function Ei(n){return 4&e.getObjectFlags(n)?n.target:n}function Ti(n,t){return function n(r){if(7&e.getObjectFlags(r)){var a=Ei(r);return a===t||e.some(ki(a),n)}return!!(2097152&r.flags)&&e.some(r.types,n)}(n)}function Si(n,t){for(var r=0,a=t;r<a.length;r++){var i=a[r];n=e.appendIfUnique(n,Ui(qr(i)))}return n}function Li(n,t){for(;;){if(!(n=n.parent))return;switch(n.kind){case 241:case 210:case 242:case 161:case 162:case 156:case 166:case 167:case 295:case 240:case 157:case 197:case 198:case 243:case 311:case 312:case 306:case 305:case 182:case 176:var r=Li(n,t);if(182===n.kind)return e.append(r,Ui(qr(n.typeParameter)));if(176===n.kind)return e.concatenate(r,_c(n));var a=Si(r,e.getEffectiveTypeParameterDeclarations(n)),i=t&&(241===n.kind||210===n.kind||242===n.kind)&&wi(qr(n)).thisType;return i?e.append(a,i):a}}}function Ai(n){return Li(32&n.flags?n.valueDeclaration:e.getDeclarationOfKind(n,242))}function xi(n){for(var t,r=0,a=n.declarations;r<a.length;r++){var i=a[r];if(242===i.kind||241===i.kind||210===i.kind||e.isTypeAlias(i)){var o=i;t=Si(t,e.getEffectiveTypeParameterDeclarations(o))}}return t}function Ci(e){var n=os(e,1);if(1===n.length){var t=n[0];return!t.typeParameters&&1===t.parameters.length&&t.hasRestParameter&&$g(t.parameters[0])===fn}return!1}function Di(e){if(Ni(e)&&os(e,1).length>0)return!0;if(8650752&e.flags){var n=zo(e);return!!n&&Ni(n)&&Ci(n)}return Kg(e)}function Ri(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function Mi(n,t,r){var a=e.length(t),i=e.isInJSFile(r);return e.filter(os(n,1),function(n){return(i||a>=bs(n.typeParameters))&&a<=e.length(n.typeParameters)})}function Ii(n,t,r){var a=Mi(n,t,r),i=e.map(t,Nc);return e.sameMap(a,function(n){return e.some(n.typeParameters)?ks(n,i,e.isInJSFile(r)):n})}function Oi(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),a=Ri(n);if(!a)return n.resolvedBaseConstructorType=he;if(!ka(n,1))return ye;var i=ly(a.expression);if(r&&a!==r&&(e.Debug.assert(!r.typeArguments),ly(r.expression)),2621440&i.flags&&Po(i),!Pa())return Ht(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ba(n.symbol)),n.resolvedBaseConstructorType=ye;if(!(1&i.flags||i===Te||Di(i))){var o=Ht(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ta(i));if(262144&i.flags){var s=Ws(i),l=ve;if(s){var c=os(s,1);c[0]&&(l=Rs(c[0]))}e.addRelatedInfo(o,e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ba(i.symbol),Ta(l)))}return n.resolvedBaseConstructorType=ye}n.resolvedBaseConstructorType=i}return n.resolvedBaseConstructorType}function ki(n){return n.resolvedBaseTypes||(8&n.objectFlags?n.resolvedBaseTypes=[xl(Gl(n.typeParameters||e.emptyArray),n.readonly)]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=es(Oi(n));if(!(2621441&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,a=Ri(n),i=ml(a),o=Kg(t)?t:t.symbol?Hi(t.symbol):void 0;if(t.symbol&&32&t.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}(o))r=Zs(a,t.symbol,i);else if(1&t.flags)r=t;else if(Kg(t))r=!a.typeArguments&&jg(t.symbol)||fe;else{var s=Ii(t,a.typeArguments,a);if(!s.length)return Ht(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=Rs(s[0])}r===ye?n.resolvedBaseTypes=e.emptyArray:Ni(r)?n===r||Ti(r,n)?(Ht(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ta(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray):(n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[r]):(Ht(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ta(r)),n.resolvedBaseTypes=e.emptyArray)}(n),64&n.symbol.flags&&function(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t<r.length;t++){var a=r[t];if(242===a.kind&&e.getInterfaceBaseTypeNodes(a))for(var i=0,o=e.getInterfaceBaseTypeNodes(a);i<o.length;i++){var s=o[i],l=Nc(s);l!==ye&&(Ni(l)?n===l||Ti(l,n)?Ht(a,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ta(n,void 0,2)):n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[l]:n.resolvedBaseTypes.push(l):Ht(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(n)):e.Debug.fail("type must be class or interface")),n.resolvedBaseTypes}function Ni(n){return!!(67633153&n.flags)&&!wo(n)||!!(2097152&n.flags)&&e.every(n.types,Ni)}function wi(n){var t=tr(n);if(!t.declaredType){var r=32&n.flags?1:2,a=t.declaredType=ta(r,n),i=Ai(n),o=xi(n);(i||o||1===r||!function(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];if(242===a.kind){if(64&a.flags)return!1;var i=e.getInterfaceBaseTypeNodes(a);if(i)for(var o=0,s=i;o<s.length;o++){var l=s[o];if(e.isEntityNameExpression(l.expression)){var c=Mr(l.expression,788968,!0);if(!c||!(64&c.flags)||wi(c).thisType)return!1}}}}return!0}(n))&&(a.objectFlags|=4,a.typeParameters=e.concatenate(i,o),a.outerTypeParameters=i,a.localTypeParameters=o,a.instantiations=e.createMap(),a.instantiations.set(zs(a.typeParameters),a),a.target=a,a.typeArguments=a.typeParameters,a.thisType=ra(n),a.thisType.isThisType=!0,a.thisType.constraint=a)}return t.declaredType}function Pi(n){var t=n.initializer;if(!t)return!(4194304&n.flags);switch(t.kind){case 10:case 8:return!0;case 203:return 39===t.operator&&8===t.operand.kind;case 73:return e.nodeIsMissing(t)||!!qr(n.parent).exports.get(t.escapedText);case 205:return function e(n){return 10===n.kind||205===n.kind&&e(n.left)&&e(n.right)}(t);default:return!1}}function Gi(e){var n=tr(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(244===i.kind)for(var o=0,s=i.members;o<s.length;o++){var l=s[o];if(l.initializer&&10===l.initializer.kind)return n.enumKind=1;Pi(l)||(t=!0)}}return n.enumKind=t?0:1}function Fi(e){return 1024&e.flags&&!(1048576&e.flags)?Hi(zr(e.symbol)):e}function Vi(e){var n=tr(e);if(n.declaredType)return n.declaredType;if(1===Gi(e)){h++;for(var t=[],r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(244===i.kind)for(var o=0,s=i.members;o<s.length;o++){var l=s[o],c=Qh(l),d=Dc(Ic(void 0!==c?c:0,h,qr(l)));tr(qr(l)).declaredType=d,t.push(Rc(d))}}if(t.length){var u=Gl(t,1,e,void 0);return 1048576&u.flags&&(u.flags|=1024,u.symbol=e),n.declaredType=u}}var m=$r(32);return m.symbol=e,n.declaredType=m}function Bi(e){var n=tr(e);if(!n.declaredType){var t=Vi(zr(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function Ui(e){var n=tr(e);return n.declaredType||(n.declaredType=ra(e))}function Hi(e){return Ki(e)||ye}function Ki(n){return 96&n.flags?wi(n):524288&n.flags?function(n){var t=tr(n);if(!t.declaredType){if(!ka(n,2))return ye;var r=e.find(n.declarations,e.isTypeAlias);if(!r)return e.Debug.fail("Type alias symbol with no valid declaration found");var a=e.isJSDocTypeAlias(r)?r.typeExpression:r.type,i=a?Nc(a):ye;if(Pa()){var o=xi(n);o&&(t.typeParameters=o,t.instantiations=e.createMap(),t.instantiations.set(zs(o),i))}else i=ye,Ht(e.isJSDocEnumTag(r)?r:r.name||r,e.Diagnostics.Type_alias_0_circularly_references_itself,ba(n));t.declaredType=i}return t.declaredType}(n):262144&n.flags?Ui(n):384&n.flags?Vi(n):8&n.flags?Bi(n):2097152&n.flags?function(e){var n=tr(e);return n.declaredType||(n.declaredType=Hi(Ar(e)))}(n):void 0}function ji(e){switch(e.kind){case 121:case 144:case 139:case 136:case 147:case 124:case 140:case 137:case 107:case 142:case 97:case 133:case 183:return!0;case 170:return ji(e.elementType);case 165:return!e.typeArguments||e.typeArguments.every(ji)}return!1}function Wi(n){var t=e.getEffectiveConstraintOfTypeParameter(n);return!t||ji(t)}function qi(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?ji(t):!e.hasInitializer(n)}function zi(n){if(n.declarations&&1===n.declarations.length){var t=n.declarations[0];if(t)switch(t.kind){case 155:case 154:return qi(t);case 157:case 156:case 158:case 159:case 160:return r=t,a=e.getEffectiveReturnTypeNode(r),i=e.getEffectiveTypeParameterDeclarations(r),(158===r.kind||!!a&&ji(a))&&r.parameters.every(qi)&&i.every(Wi)}}var r,a,i;return!1}function Xi(n,t,r){for(var a=e.createSymbolTable(),i=0,o=n;i<o.length;i++){var s=o[i];a.set(s.escapedName,r&&zi(s)?s:zc(s,t))}return a}function Ji(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 Yi(n){if(!n.declaredProperties){var t=n.symbol,r=io(t);n.declaredProperties=ia(r),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredCallSignatures=As(r.get("__call")),n.declaredConstructSignatures=As(r.get("__new")),n.declaredStringIndexInfo=Ks(t,0),n.declaredNumberIndexInfo=Ks(t,1)}return n}function Qi(e){return!!(8576&e.flags)}function Zi(n){return e.isComputedPropertyName(n)&&e.isEntityNameExpression(n.expression)&&Qi(sf(n))}function $i(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function eo(n){var t=e.getNameOfDeclaration(n);return!!t&&Zi(t)}function no(n){return e.hasDynamicName(n)&&!eo(n)}function to(n){return 8192&n.flags?n.escapedName:384&n.flags?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function ro(n,t,r,a){e.Debug.assert(!!a.symbol,"The member is expected to have a symbol.");var i=rr(a);if(!i.resolvedSymbol){i.resolvedSymbol=a.symbol;var o=sf(a.name);if(Qi(o)){var s=to(o),l=a.symbol.flags,c=r.get(s);c||r.set(s,c=qt(0,s,4096));var d=t&&t.get(s);if(c.flags&Xt(l)||d){var u=d?e.concatenate(d.declarations,c.declarations):c.declarations,m=!(8192&o.flags)&&e.unescapeLeadingUnderscores(s)||e.declarationNameToString(a.name);e.forEach(u,function(n){return Ht(e.getNameOfDeclaration(n)||n,e.Diagnostics.Property_0_was_also_declared_here,m)}),Ht(a.name||a,e.Diagnostics.Duplicate_property_0,m),c=qt(0,s,4096)}return c.nameType=o,function(n,t,r){e.Debug.assert(!!(4096&e.getCheckFlags(n)),"Expected a late-bound symbol."),n.flags|=r,tr(t.symbol).lateSymbol=n,n.declarations?n.declarations.push(t):n.declarations=[t],111551&r&&(n.valueDeclaration&&n.valueDeclaration.kind===t.kind||(n.valueDeclaration=t))}(c,a,l),c.parent?e.Debug.assert(c.parent===n,"Existing symbol parent should match new one"):c.parent=n,i.resolvedSymbol=c}}return i.resolvedSymbol}function ao(n,t){var r=tr(n);if(!r[t]){var a="resolvedExports"===t,i=a?1536&n.flags?jr(n):n.exports:n.members;r[t]=i||A;for(var o=e.createSymbolTable(),s=0,l=n.declarations;s<l.length;s++){var c=l[s],d=e.getMembersOfDeclaration(c);if(d)for(var u=0,m=d;u<m.length;u++){var p=m[u];a===e.hasStaticModifier(p)&&eo(p)&&ro(n,i,o,p)}}r[t]=function(n,t){if(!e.hasEntries(n))return t;if(!e.hasEntries(t))return n;var r=e.createSymbolTable();return er(r,n),er(r,t),r}(i,o)||A}return r[t]}function io(e){return 6240&e.flags?ao(e,"resolvedMembers"):e.members||A}function oo(n){if(106500&n.flags&&"__computed"===n.escapedName){var t=tr(n);if(!t.lateSymbol&&e.some(n.declarations,eo)){var r=Wr(n.parent);e.some(n.declarations,e.hasStaticModifier)?Ur(r):io(r)}return t.lateSymbol||(t.lateSymbol=n)}return n}function so(n,t,r){if(4&e.getObjectFlags(n)){var a=n.target,i=n.typeArguments;if(e.length(a.typeParameters)===e.length(i)){var o=Js(a,e.concatenate(i,[t||a.thisType]));return r?es(o):o}}else if(2097152&n.flags)return Kl(e.map(n.types,function(e){return so(e,t,r)}));return r?es(n):n}function lo(n,t,r,a){var i,o,s,l,c,d;e.rangeEquals(r,a,0,r.length)?(i=w,o=t.symbol?io(t.symbol):e.createSymbolTable(t.declaredProperties),s=t.declaredCallSignatures,l=t.declaredConstructSignatures,c=t.declaredStringIndexInfo,d=t.declaredNumberIndexInfo):(i=Vc(r,a),o=Xi(t.declaredProperties,i,1===r.length),s=Gc(t.declaredCallSignatures,i),l=Gc(t.declaredConstructSignatures,i),c=ad(t.declaredStringIndexInfo,i),d=ad(t.declaredNumberIndexInfo,i));var u=ki(t);if(u.length){t.symbol&&o===io(t.symbol)&&(o=e.createSymbolTable(t.declaredProperties)),oa(n,o,s,l,c,d);for(var m=e.lastOrUndefined(a),p=0,f=u;p<f.length;p++){var g=f[p],_=m?so(nd(g,i),m):g;Ji(o,Bo(_)),s=e.concatenate(s,os(_,0)),l=e.concatenate(l,os(_,1)),c||(c=_===fe?Hs(fe,!1):cs(_,0)),d=d||cs(_,1)}}oa(n,o,s,l,c,d)}function co(e,n,t,r,a,i,o,s,l){var c=new _(te);return c.declaration=e,c.typeParameters=n,c.parameters=r,c.thisParameter=t,c.resolvedReturnType=a,c.resolvedTypePredicate=i,c.minArgumentCount=o,c.hasRestParameter=s,c.hasLiteralTypes=l,c.target=void 0,c.mapper=void 0,c}function uo(e){var n=co(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes);return n.target=e.target,n.mapper=e.mapper,n}function mo(e,n){var t=uo(e);return t.unionSignatures=n,t.target=void 0,t.mapper=void 0,t}function po(n){if(n.hasRestParameter){var t=n.parameters.length-1,r=hi(n.parameters[t]);if(_u(r)){var a=r.typeArguments||e.emptyArray,i=r.target.minLength,o=r.target.hasRestElement?a.length-1:-1,s=e.map(a,function(e,r){var a=qt(1,e_(n,t+r),r===o?32768:r>=i?16384:0);return a.type=r===o?xl(e):e,a});return e.concatenate(n.parameters.slice(0,t),s)}}return n.parameters}function fo(e,n,t,r,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if($d(s,n,t,r,a,t?pd:ud))return s}}function go(n,t,r){if(t.typeParameters){if(r>0)return;for(var a=1;a<n.length;a++)if(!fo(n[a],t,!1,!1,!1))return;return[t]}var i;for(a=0;a<n.length;a++){var o=a===r?t:fo(n[a],t,!0,!1,!0);if(!o)return;i=e.appendIfUnique(i,o)}return i}function _o(n){for(var t,r,a=0;a<n.length;a++){if(0===n[a].length)return e.emptyArray;n[a].length>1&&(r=void 0===r?a:-1);for(var i=0,o=n[a];i<o.length;i++){var s=o[i];if(!t||!fo(t,s,!1,!1,!0)){var l=go(n,s,a);if(l){var c=s;if(l.length>1){var d=s.thisParameter,u=e.forEach(l,function(e){return e.thisParameter});u&&(d=Du(u,Kl(e.mapDefined(l,function(e){return e.thisParameter&&hi(e.thisParameter)})))),(c=mo(s,l)).thisParameter=d}(t||(t=[])).push(c)}}}}if(!e.length(t)&&-1!==r){for(var m=n[void 0!==r?r:0],p=m.slice(),f=function(n){if(n!==m){var t=n[0];if(e.Debug.assert(!!t,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=t.typeParameters&&e.some(p,function(e){return!!e.typeParameters})?void 0:e.map(p,function(n){return a=t,i=(r=n).declaration,o=function(e,n){for(var t=a_(e),r=a_(n),a=t>=r?e:n,i=a===e?n:e,o=a===e?t:r,s=o_(e)||o_(n),l=s&&!o_(a),c=new Array(o+(l?1:0)),d=0;d<o;d++){var u=t_(a,d),m=t_(i,d)||ve,p=Kl([u,m]),f=s&&!l&&d===o-1,g=d>=i_(a)&&d>=i_(i),_=d>=t?void 0:e_(e,d),y=d>=r?void 0:e_(n,d),v=_===y?_:_?y?void 0:_:y,h=qt(1|(g&&!f?16777216:0),v||"arg"+d);h.type=f?xl(p):p,c[d]=h}if(l){var b=qt(1,"args");b.type=xl(n_(i,o)),c[o]=b}return c}(r,a),s=function(e,n){if(!e||!n)return e||n;var t=Kl([hi(e),hi(n)]);return Du(e,t)}(r.thisParameter,a.thisParameter),l=Math.max(r.minArgumentCount,a.minArgumentCount),c=r.hasRestParameter||a.hasRestParameter,d=r.hasLiteralTypes||a.hasLiteralTypes,(u=co(i,r.typeParameters||a.typeParameters,s,o,void 0,void 0,l,c,d)).unionSignatures=e.concatenate(r.unionSignatures||[r],[a]),u;var r,a,i,o,s,l,c,d,u})))return"break"}},g=0,_=n;g<_.length&&"break"!==f(_[g]);g++);t=p}return t||e.emptyArray}function yo(e,n){for(var t=[],r=!1,a=0,i=e;a<i.length;a++){var o=cs(i[a],n);if(!o)return;t.push(o.type),r=r||o.isReadonly}return Hs(Gl(t,2),r)}function vo(e,n){return e?n?Kl([e,n]):e:n}function ho(e,n){return e?n?Hs(Kl([e.type,n.type]),e.isReadonly&&n.isReadonly):e:n}function bo(e,n){return e&&n&&Hs(Gl([e.type,n.type]),e.isReadonly||n.isReadonly)}function Eo(n){var t=e.countWhere(n,function(e){return os(e,1).length>0}),r=e.map(n,Ci);return t>0&&t===e.countWhere(r,function(e){return e})&&(r[r.indexOf(!0)]=!1),r}function To(n){for(var t,r,a,i,o=n.types,s=Eo(o),l=e.countWhere(s,function(e){return e}),c=function(c){var d=n.types[c];if(!s[c]){var u=os(d,1);u.length&&l>0&&(u=e.map(u,function(e){var n=uo(e);return n.resolvedReturnType=function(e,n,t,r){for(var a=[],i=0;i<n.length;i++)i===r?a.push(e):t[i]&&a.push(Rs(os(n[i],1)[0]));return Kl(a)}(Rs(e),o,s,c),n})),r=So(r,u)}t=So(t,os(d,0)),a=ho(a,cs(d,0)),i=ho(i,cs(d,1))},d=0;d<o.length;d++)c(d);oa(n,A,t||e.emptyArray,r||e.emptyArray,a,i)}function So(n,t){for(var r=function(t){n&&!e.every(n,function(e){return!$d(e,t,!1,!1,!1,ud)})||(n=e.append(n,t))},a=0,i=t;a<i.length;a++)r(i[a]);return n}function Lo(n){var t=n.symbol;if(n.target)oa(n,A,e.emptyArray,e.emptyArray,void 0,void 0),oa(n,r=Xi(Go(n.target),n.mapper,!1),Gc(os(n.target,0),n.mapper),l=Gc(os(n.target,1),n.mapper),a=ad(cs(n.target,0),n.mapper),s=ad(cs(n.target,1),n.mapper));else if(2048&t.flags)oa(n,A,e.emptyArray,e.emptyArray,void 0,void 0),oa(n,r=io(t),As(r.get("__call")),l=As(r.get("__new")),a=Ks(t,0),s=Ks(t,1));else{var r=A,a=void 0;if(t.exports&&(r=Ur(t),t===Z)){var i=e.createMap();r.forEach(function(e){418&e.flags||i.set(e.escapedName,e)}),r=i}if(oa(n,r,e.emptyArray,e.emptyArray,void 0,void 0),32&t.flags){var o=Oi(c=wi(t));11272192&o.flags?Ji(r=e.createSymbolTable(ia(r)),Bo(o)):o===fe&&(a=Hs(fe,!1))}var s=384&t.flags&&(32&Hi(t).flags||e.some(n.properties,function(e){return!!(296&hi(e).flags)}))?Jn:void 0;if(oa(n,r,e.emptyArray,e.emptyArray,a,s),8208&t.flags&&(n.callSignatures=As(t),n.constructSignatures=e.filter(n.callSignatures,function(e){return Hg(e.declaration)})),32&t.flags){var l,c=wi(t);(l=As(t.members.get("__constructor"))).length||(l=function(n){var t=os(Oi(n),1);if(0===t.length)return[co(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,!1,!1)];for(var r=Ri(n),a=e.isInJSFile(r),i=ml(r),o=e.length(i),s=[],l=0,c=t;l<c.length;l++){var d=c[l],u=bs(d.typeParameters),m=e.length(d.typeParameters);if(a||o>=u&&o<=m){var p=m?ws(d,Es(i,d.typeParameters,u,a)):uo(d);p.typeParameters=n.localTypeParameters,p.resolvedReturnType=n,s.push(p)}}return s}(c)),n.constructSignatures=l}}}function Ao(n){if(131069&n.flags)return n;if(4194304&n.flags)return Jl(es(n.type));if(16777216&n.flags){if(n.root.isDistributive){var t=n.checkType,r=Ao(t);if(r!==t)return ed(n,Uc(Fc(n.root.checkType,r),n.mapper))}return n}return 1048576&n.flags?Gl(e.sameMap(n.types,Ao)):2097152&n.flags?Kl(e.sameMap(n.types,Ao)):ke}function xo(e){return e.typeParameter||(e.typeParameter=Ui(qr(e.declaration.typeParameter)))}function Co(e){return e.constraintType||(e.constraintType=Ho(xo(e))||ye)}function Do(e){return e.templateType||(e.templateType=e.declaration.type?nd(Ja(Nc(e.declaration.type),!!(4&Oo(e))),e.mapper||w):ye)}function Ro(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function Mo(e){var n=Ro(e);return 180===n.kind&&130===n.operator}function Io(e){if(!e.modifiersType)if(Mo(e))e.modifiersType=nd(Nc(Ro(e).type),e.mapper||w);else{var n=Co(uc(e.declaration)),t=n&&262144&n.flags?Ho(n):n;e.modifiersType=t&&4194304&t.flags?nd(t.type,e.mapper||w):ve}return e.modifiersType}function Oo(e){var n=e.declaration;return(n.readonlyToken?39===n.readonlyToken.kind?2:1:0)|(n.questionToken?39===n.questionToken.kind?8:4:0)}function ko(e){var n=Oo(e);return 8&n?-1:4&n?1:0}function No(e){var n=ko(e),t=Io(e);return n||(wo(t)?ko(t):0)}function wo(n){return!!(32&e.getObjectFlags(n))&&tc(Co(n))}function Po(n){return n.members||(524288&n.flags?4&n.objectFlags?function(n){var t=Yi(n.target),r=e.concatenate(t.typeParameters,[t.thisType]);lo(n,t,r,n.typeArguments&&n.typeArguments.length===r.length?n.typeArguments:e.concatenate(n.typeArguments,[n]))}(n):3&n.objectFlags?function(n){lo(n,Yi(n),e.emptyArray,e.emptyArray)}(n):2048&n.objectFlags?function(n){for(var t=cs(n.source,0),r=Oo(n.mappedType),a=!(1&r),i=4&r?0:16777216,o=t&&Hs(Yu(t.type,n.mappedType,n.constraintType),a&&t.isReadonly),s=e.createSymbolTable(),l=0,c=Bo(n.source);l<c.length;l++){var d=c[l],u=8192|(a&&R_(d)?8:0),m=qt(4|d.flags&i,d.escapedName,u);m.declarations=d.declarations,m.nameType=d.nameType,m.propertyType=hi(d),m.mappedType=n.mappedType,m.constraintType=n.constraintType,s.set(d.escapedName,m)}oa(n,s,e.emptyArray,e.emptyArray,o,void 0)}(n):16&n.objectFlags?Lo(n):32&n.objectFlags&&function(n){var t,r,a=e.createSymbolTable();oa(n,A,e.emptyArray,e.emptyArray,void 0,void 0);var i=xo(n),o=Co(n),s=Do(n.target||n),l=es(Io(n)),c=Oo(n),d=q?128:8576;if(Mo(n)){for(var u=0,m=Bo(l);u<m.length;u++)p(ql(m[u],d));(1&l.flags||cs(l,0))&&p(Se),!q&&cs(l,1)&&p(Le)}else Um(Ao(o),p);function p(e){var o=Uc(n.mapper,Vc([i],[e])),d=nd(s,o);if(Qi(e)){var u=to(e),m=as(l,u),p=!!(4&c||!(8&c)&&m&&16777216&m.flags),f=!!(1&c||!(2&c)&&m&&R_(m)),g=qt(4|(p?16777216:0),u,f?8:0);g.type=B&&p&&!gd(he,d)?Au(d):B&&!p&&m&&16777216&m.flags?Am(d,524288):d,m&&(g.syntheticOrigin=m,g.declarations=m.declarations),g.nameType=e,a.set(u,g)}else 5&e.flags?t=Hs(d,!!(1&c)):40&e.flags&&(r=Hs(r?Gl([r.type,d]):d,!!(1&c)))}oa(n,a,e.emptyArray,e.emptyArray,t,r)}(n):1048576&n.flags?function(n){var t=_o(e.map(n.types,function(e){return e===rn?[qn]:os(e,0)})),r=_o(e.map(n.types,function(e){return os(e,1)})),a=yo(n.types,0),i=yo(n.types,1);oa(n,A,t,r,a,i)}(n):2097152&n.flags&&To(n)),n}function Go(n){return 524288&n.flags?Po(n).properties:e.emptyArray}function Fo(e,n){if(524288&e.flags){var t=Po(e).members.get(n);if(t&&Qr(t))return t}}function Vo(n){if(n.possiblePropertyCache)return n.possiblePropertyCache.size?e.arrayFrom(n.possiblePropertyCache.values()):e.emptyArray;n.possiblePropertyCache=e.createSymbolTable();for(var t=0,r=n.types;t<r.length;t++)for(var a=0,i=Bo(r[t]);a<i.length;a++){var o=i[a];if(!n.possiblePropertyCache.has(o.escapedName)){var s=ts(n,o.escapedName);s&&n.possiblePropertyCache.set(o.escapedName,s)}}return n.possiblePropertyCache.size?e.arrayFrom(n.possiblePropertyCache.values()):e.emptyArray}function Bo(n){return 3145728&(n=es(n)).flags?function(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,a=n.types;r<a.length;r++){for(var i=0,o=Bo(a[r]);i<o.length;i++){var s=o[i];if(!t.has(s.escapedName)){var l=rs(n,s.escapedName);l&&t.set(s.escapedName,l)}}if(1048576&n.flags)break}n.resolvedProperties=ia(t)}return n.resolvedProperties}(n):Go(n)}function Uo(e){return 262144&e.flags?Ho(e):8388608&e.flags?function(e){return Jo(e)?function(e){var n=Ko(e.indexType);if(n&&n!==e.indexType){var t=cc(e.objectType,n);if(t)return t}var r=Ko(e.objectType);if(r&&r!==e.objectType)return cc(r,e.indexType)}(e):void 0}(e):16777216&e.flags?function(e){return Jo(e)?qo(e):void 0}(e):zo(e)}function Ho(e){return Jo(e)?Ws(e):void 0}function Ko(e){var n=ac(e,!1);return n!==e?n:Uo(e)}function jo(e){if(!e.resolvedDefaultConstraint){var n=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?nd(e.root.trueType,e.combinedMapper):fc(e))}(e),t=gc(e);e.resolvedDefaultConstraint=Va(n)?t:Va(t)?n:Gl([n,t])}return e.resolvedDefaultConstraint}function Wo(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var n=ac(e.checkType,!1),t=n===e.checkType?Uo(n):n;if(t&&t!==e.checkType){var r=ed(e,Uc(Fc(e.root.checkType,t),e.mapper));if(!(131072&r.flags))return r}}}function qo(e){return Wo(e)||jo(e)}function zo(e){if(62128128&e.flags){var n=Yo(e);return n!==ze&&n!==Xe?n:void 0}return 4194304&e.flags?Ve:void 0}function Xo(e){return zo(e)||e}function Jo(e){return Yo(e)!==Xe}function Yo(n){var t=!1;return n.resolvedBaseConstraint||(n.resolvedBaseConstraint=so(r(n),n));function r(n){if(!n.immediateBaseConstraint){if(!ka(n,4))return Xe;if(L>=50)return Ht(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),t=!0,n.immediateBaseConstraint=ze;L++;var r=function(e){if(262144&e.flags){var n=Ws(e);return e.isThisType||!n?n:a(n)}if(3145728&e.flags){for(var t=e.types,r=[],i=0,o=t;i<o.length;i++){var s=o[i],l=a(s);l&&r.push(l)}return 1048576&e.flags&&r.length===t.length?Gl(r):2097152&e.flags&&r.length?Kl(r):void 0}if(4194304&e.flags)return Ve;if(8388608&e.flags){var c=a(e.objectType),d=a(e.indexType),u=c&&d&&cc(c,d);return u&&a(u)}if(16777216&e.flags){var n=qo(e);L++;var m=n&&a(n);return L--,m}return 33554432&e.flags?a(e.substitute):e}(ac(n,!1));if(L--,!Pa()){if(262144&n.flags){var i=js(n);if(i){var o=Ht(i,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Ta(n));!d||e.isNodeDescendantOf(i,d)||e.isNodeDescendantOf(d,i)||e.addRelatedInfo(o,e.createDiagnosticForNode(d,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}r=Xe}t&&(r=Xe),n.immediateBaseConstraint=r||ze}return n.immediateBaseConstraint}function a(e){var n=r(e);return n!==ze&&n!==Xe?n:void 0}}function Qo(n){if(n.default)n.default===Je&&(n.default=Xe);else if(n.target){var t=Qo(n.target);n.default=t?nd(t,n.mapper):ze}else{n.default=Je;var r=n.symbol&&e.forEach(n.symbol.declarations,function(n){return e.isTypeParameterDeclaration(n)&&n.default}),a=r?Nc(r):ze;n.default===Je&&(n.default=a)}return n.default}function Zo(e){var n=Qo(e);return n!==ze&&n!==Xe?n:void 0}function $o(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var n=Yc(e);if(n){var t=Ho(n);if(t&&(nu(t)||_u(t))){var r=Fc(n,t);return nd(e,Uc(r,e.mapper))}}return e}(e))}function es(n){var t=63176704&n.flags?zo(n)||ve:n;return 32&e.getObjectFlags(t)?$o(t):2097152&t.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=so(e,e,!0))}(t):132&t.flags?cn:296&t.flags?dn:2112&t.flags?Vn||(Vn=yl("BigInt",0,G>=99))||Ue:528&t.flags?un:12288&t.flags?hl(G>=2):67108864&t.flags?Ue:4194304&t.flags?Ve:2&t.flags&&!B?Ue:t}function ns(n,t){for(var r,a=e.createMap(),i=1048576&n.flags,o=i?24:0,s=i?0:16777216,l=4,c=0,d=0,u=n.types;d<u.length;d++)if((A=es(u[d]))!==ye){var m=(L=as(A,t))?e.getDeclarationModifierFlagsFromSymbol(L):0;if(!L||m&o){if(i){var p=!$i(t)&&(of(t)&&cs(A,1)||cs(A,0));p?(c|=32|(p.isReadonly?8:0),r=e.append(r,_u(A)?yu(A)||he:p.type)):am(A)?(c|=32,r=e.append(r,he)):c|=16}}else{i?s|=16777216&L.flags:s&=L.flags;var f=""+R(L);a.has(f)||a.set(f,L),c|=(R_(L)?8:0)|(24&m?0:256)|(16&m?512:0)|(8&m?1024:0)|(32&m?2048:0),Of(L)||(l=2)}}if(a.size){var g,_,y,v=e.arrayFrom(a.values());if(!(1!==v.length||16&c||r))return v[0];for(var h,b=[],E=!1,T=0,S=v;T<S.length;T++){var L=S[T];h?L.valueDeclaration!==h&&(E=!0):h=L.valueDeclaration,g=e.addRange(g,L.declarations);var A=hi(L);_?A!==_&&(c|=64):(_=A,y=L.nameType),du(A)&&(c|=128),b.push(A)}e.addRange(b,r);var x=qt(4|s,t,l|c);return x.containingType=n,!E&&h&&(x.valueDeclaration=h,h.symbol.parent&&(x.parent=h.symbol.parent)),x.declarations=g,x.nameType=y,b.length>2?(x.checkFlags|=65536,x.deferralParent=n,x.deferralConstituents=b):x.type=i?Gl(b):Kl(b),x}}function ts(n,t){var r=n.propertyCache||(n.propertyCache=e.createSymbolTable()),a=r.get(t);return a||(a=ns(n,t))&&r.set(t,a),a}function rs(n,t){var r=ts(n,t);return!r||16&e.getCheckFlags(r)?void 0:r}function as(e,n){if(524288&(e=es(e)).flags){var t=Po(e),r=t.members.get(n);if(r&&Qr(r))return r;var a=t===qe?rn:t.callSignatures.length?an:t.constructSignatures.length?on:void 0;if(a){var i=Fo(a,n);if(i)return i}return Fo(tn,n)}if(3145728&e.flags)return rs(e,n)}function is(n,t){if(3670016&n.flags){var r=Po(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function os(e,n){return is(es(e),n)}function ss(e,n){if(3670016&e.flags){var t=Po(e);return 0===n?t.stringIndexInfo:t.numberIndexInfo}}function ls(e,n){var t=ss(e,n);return t&&t.type}function cs(e,n){return ss(es(e),n)}function ds(e,n){return ls(es(e),n)}function us(n,t){if(Cu(n)){for(var r=[],a=0,i=Bo(n);a<i.length;a++){var o=i[a];(0===t||of(o.escapedName))&&r.push(hi(o))}if(0===t&&e.append(r,ds(n,1)),r.length)return Gl(r,2)}}function ms(n){for(var t,r=0,a=e.getEffectiveTypeParameterDeclarations(n);r<a.length;r++){var i=a[r];t=e.appendIfUnique(t,Ui(i.symbol))}return t}function ps(e){var n=[];return e.forEach(function(e,t){aa(t)||n.push(e)}),n}function fs(n){return e.isInJSFile(n)&&(n.type&&294===n.type.kind||e.getJSDocParameterTags(n).some(function(e){var n=e.isBracketed,t=e.typeExpression;return n||!!t&&294===t.type.kind}))}function gs(n,t){if(!e.isExternalModuleNameRelative(n)){var r=ir(Y,'"'+n+'"',512);return r&&t?Wr(r):r}}function _s(n){if(e.hasQuestionToken(n)||ys(n)||fs(n))return!0;if(n.initializer){var t=Ts(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=i_(t)}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!a&&!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length}function ys(n){if(!e.isJSDocParameterTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&294===r.type.kind}function vs(e,n,t){return{kind:1,parameterName:e,parameterIndex:n,type:t}}function hs(e){return{kind:0,type:e}}function bs(n){var t,r=0;if(n)for(var a=0;a<n.length;a++)(t=n[a]).symbol&&e.forEach(t.symbol.declarations,function(n){return e.isTypeParameterDeclaration(n)&&n.default})||(r=a+1);return r}function Es(n,t,r,a){var i=e.length(t);if(!i)return[];var o=e.length(n);if(a||o>=r&&o<=i){for(var s=n?n.slice():[],l=o;l<i;l++)s[l]=ye;var c=cm(a);for(l=o;l<i;l++){var d=Zo(t[l]);a&&d&&(dd(d,ve)||dd(d,Ue))&&(d=fe),s[l]=d?nd(d,Vc(t,s)):c}return s.length=t.length,s}return n&&n.slice()}function Ts(n){var t,r=rr(n);if(!r.resolvedSignature){for(var a=[],i=!1,o=0,s=void 0,l=!1,c=e.getImmediatelyInvokedFunctionExpression(n),d=e.isJSDocConstructSignature(n),u=!c&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n),m=d?1:0;m<n.parameters.length;m++){var p=n.parameters[m],f=p.symbol,g=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;f&&4&f.flags&&!e.isBindingPattern(p.name)&&(f=sr(p,f.escapedName,111551,void 0,void 0,!1)),0===m&&"this"===f.escapedName?(l=!0,s=p.symbol):a.push(f),g&&183===g.kind&&(i=!0),ys(p)||p.initializer||p.questionToken||p.dotDotDotToken||c&&a.length>c.arguments.length&&!g||u||fs(p)||(o=a.length)}if(!(159!==n.kind&&160!==n.kind||no(n)||l&&s)){var _=159===n.kind?160:159,y=e.getDeclarationOfKind(qr(n),_);y&&(s=(t=Db(y))&&t.symbol)}var v=158===n.kind?wi(Wr(n.parent.symbol)):void 0,h=v?v.localTypeParameters:ms(n),b=e.hasRestParameter(n)||e.isInJSFile(n)&&function(n,t){if(e.isJSDocSignature(n)||!Ls(n))return!1;var r=e.lastOrUndefined(n.parameters),a=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),i=e.firstDefined(a,function(n){return n.typeExpression&&e.isJSDocVariadicType(n.typeExpression.type)?n.typeExpression.type:void 0}),o=qt(3,"args",32768);return o.type=i?xl(Nc(i.type)):fn,i&&t.pop(),t.push(o),!0}(n,a);r.resolvedSignature=co(n,h,s,a,void 0,void 0,o,b,i)}return r.resolvedSignature}function Ss(n){var t=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0,r=t&&t.typeExpression&&dg(Nc(t.typeExpression));return r&&Ps(r)}function Ls(n){var t=rr(n);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function n(t){if(!t)return!1;switch(t.kind){case 73:return"arguments"===t.escapedText&&e.isExpressionNode(t);case 155:case 157:case 159:case 160:return 150===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function As(n){if(!n)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var a=n.declarations[r];if(e.isFunctionLike(a)){if(r>0&&a.body){var i=n.declarations[r-1];if(a.parent===i.parent&&a.kind===i.kind&&a.pos===i.end)continue}t.push(Ts(a))}}return t}function xs(e){if(e.thisParameter)return hi(e.thisParameter)}function Cs(e){return void 0!==Ds(e)}function Ds(n){if(!n.resolvedTypePredicate){if(n.target){var t=Ds(n.target);n.resolvedTypePredicate=t?(o=t,s=n.mapper,e.isIdentifierTypePredicate(o)?{kind:1,parameterName:o.parameterName,parameterIndex:o.parameterIndex,type:nd(o.type,s)}:{kind:0,type:nd(o.type,s)}):jn}else if(n.unionSignatures)n.resolvedTypePredicate=function(n){for(var t,r=[],a=0,i=n;a<i.length;a++){var o=i[a],s=Ds(o);if(s){if(t){if(!Fl(t,s))return}else t=s;r.push(s.type)}}if(t){var l=Gl(r);return e.isIdentifierTypePredicate(t)?vs(t.parameterName,t.parameterIndex,l):hs(l)}}(n.unionSignatures)||jn;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),a=void 0;if(!r&&e.isInJSFile(n.declaration)){var i=Ss(n.declaration);i&&n!==i&&(a=Ds(i))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?function(n,t){var r=n.parameterName,a=Nc(n.type);return 73===r.kind?vs(r.escapedText,e.findIndex(t.parameters,function(e){return e.escapedName===r.escapedText}),a):hs(a)}(r,n):a||jn}e.Debug.assert(!!n.resolvedTypePredicate)}var o,s;return n.resolvedTypePredicate===jn?void 0:n.resolvedTypePredicate}function Rs(n){if(!n.resolvedReturnType){if(!ka(n,3))return ye;var t=n.target?nd(Rs(n.target),n.mapper):n.unionSignatures?Gl(e.map(n.unionSignatures,Rs),2):Ms(n.declaration)||Hg(n.declaration)&&jg(qr(n.declaration))||(e.nodeIsMissing(n.declaration.body)?fe:__(n.declaration));if(!Pa()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)Ht(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(j){var a=n.declaration,i=e.getNameOfDeclaration(a);i?Ht(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(i)):Ht(a,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=fe}n.resolvedReturnType=t}return n.resolvedReturnType}function Ms(n){if(158===n.kind)return wi(Wr(n.parent.symbol));if(e.isJSDocConstructSignature(n))return Nc(n.parameters[0].type);var t,r=e.getEffectiveReturnTypeNode(n);if(r)return Nc(r);if(159===n.kind&&!no(n)){var a=e.isInJSFile(n)&&za(n);if(a)return a;var i=mi(e.getDeclarationOfKind(qr(n),160));if(i)return i}return(t=Ss(n))&&Rs(t)}function Is(e){return!e.resolvedReturnType&&Na(e,3)>=0}function Os(e){if(e.hasRestParameter){var n=hi(e.parameters[e.parameters.length-1]),t=_u(n)?yu(n):n;return t&&ds(t,1)}}function ks(e,n,t,r){var a=Ns(e,Es(n,e.typeParameters,bs(e.typeParameters),t));if(r){var i=ug(Rs(a));if(i){var o=uo(i);o.typeParameters=r;var s=uo(a);return s.resolvedReturnType=Vs(o),s}}return a}function Ns(n,t){var r=n.instantiations||(n.instantiations=e.createMap()),a=zs(t),i=r.get(a);return i||r.set(a,i=ws(n,t)),i}function ws(e,n){return qc(e,function(e,n){return Vc(e.typeParameters,n)}(e,n),!0)}function Ps(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return qc(e,Bc(e.typeParameters),!0)}(e)):e}function Gs(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=function(n){return ks(n,e.map(n.typeParameters,function(e){return e.target&&!Ho(e.target)?e.target:e}),e.isInJSFile(n.declaration))}(n)):n}function Fs(n){var t=n.typeParameters;if(t){var r=Bc(t);return qc(n,Vc(t,e.map(t,function(e){return nd(zo(e),r)||ve})),!0)}return n}function Vs(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=158===t||162===t||167===t,a=ta(16);a.members=A,a.properties=e.emptyArray,a.callSignatures=r?e.emptyArray:[n],a.constructSignatures=r?[n]:e.emptyArray,n.isolatedSignatureType=a}return n.isolatedSignatureType}function Bs(e){return e.members.get("__index")}function Us(n,t){var r=1===t?136:139,a=Bs(n);if(a)for(var i=0,o=a.declarations;i<o.length;i++){var s=o[i],l=e.cast(s,e.isIndexSignatureDeclaration);if(1===l.parameters.length){var c=l.parameters[0];if(c.type&&c.type.kind===r)return l}}}function Hs(e,n,t){return{type:e,isReadonly:n,declaration:t}}function Ks(n,t){var r=Us(n,t);if(r)return Hs(r.type?Nc(r.type):fe,e.hasModifier(r,64),r)}function js(n){var t=n.symbol&&e.getDeclarationOfKind(n.symbol,151);return t&&e.getEffectiveConstraintOfTypeParameter(t)}function Ws(n){if(!n.constraint)if(n.target){var t=Ho(n.target);n.constraint=t?nd(t,n.mapper):ze}else{var r=js(n);n.constraint=r?Nc(r):function(n){var t;if(n.symbol)for(var r=0,a=n.symbol.declarations;r<a.length;r++){var i=a[r];if(177===i.parent.kind){var o=i.parent.parent;if(165===o.kind){var s=o,l=Ey(s);if(l){var c=s.typeArguments.indexOf(i.parent);if(c<l.length){var d=Ho(l[c]);if(d){var u=nd(d,Vc(l,hy(s,l)));u!==n&&(t=e.append(t,u))}}}}else 152===o.kind&&o.dotDotDotToken&&(t=e.append(t,xl(ve)))}}return t&&Kl(t)}(n)||ze}return n.constraint===ze?void 0:n.constraint}function qs(n){var t=e.getDeclarationOfKind(n.symbol,151),r=e.isJSDocTemplateTag(t.parent)?e.getHostSignatureFromJSDoc(t.parent):t.parent;return r&&qr(r)}function zs(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,i>1&&(n+=":"+i),r+=i}return n}function Xs(n,t){for(var r=0,a=0,i=n;a<i.length;a++){var o=i[a];o.flags&t||(r|=e.getObjectFlags(o))}return 1835008&r}function Js(e,n){var t=zs(n),r=e.instantiations.get(t);return r||(r=ta(4,e.symbol),e.instantiations.set(t,r),r.objectFlags|=n?Xs(n,0):0,r.target=e,r.typeArguments=n),r}function Ys(e){var n=$r(e.flags);return n.symbol=e.symbol,n.objectFlags=e.objectFlags,n.target=e.target,n.typeArguments=e.typeArguments,n}function Qs(n){return e.length(n.target.typeParameters)}function Zs(n,t,r){var a=Hi(Wr(t)),i=a.localTypeParameters;if(i){var o=e.length(n.typeArguments),s=bs(i),l=e.isInJSFile(n);if((j||!l)&&(o<s||o>i.length)){var c=l&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent);if(Ht(n,s===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ta(a,void 0,2),s,i.length),!l)return ye}return Js(a,e.concatenate(a.outerTypeParameters,Es(r,i,s,l)))}return dl(n,t)?a:ye}function $s(n,t){var r=Hi(n),a=tr(n),i=a.typeParameters,o=zs(t),s=a.instantiations.get(o);return s||a.instantiations.set(o,s=nd(r,Vc(i,Es(t,i,bs(i),e.isInJSFile(n.valueDeclaration))))),s}function el(n){switch(n.kind){case 165:return n.typeName;case 212:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function nl(e,n){return e&&Mr(e,n)||me}function tl(e,n){var t=ml(e);if(n===me)return ye;var r=al(e,n,t);if(r)return r;var a=Ki(n);if(a)return dl(e,n)?262144&a.flags?ll(a,e):Rc(a):ye;if(!(111551&n.flags&&cl(e)))return ye;var i=rl(e,n,t);return i||(nl(el(e),788968),hi(n))}function rl(e,n,t){var r=hi(n),a=r.symbol&&r.symbol!==n&&al(e,r.symbol,t);if(a)return tr(n).resolvedJSDocType=a}function al(n,t,r){if(96&t.flags){if(t.valueDeclaration&&t.valueDeclaration.parent&&e.isBinaryExpression(t.valueDeclaration.parent)){var a=rl(n,t,r);if(a)return a}return Zs(n,t,r)}if(524288&t.flags)return function(n,t,r){var a=Hi(t),i=tr(t).typeParameters;if(i){var o=e.length(n.typeArguments),s=bs(i);return o<s||o>i.length?(Ht(n,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ba(t),s,i.length),ye):$s(t,r)}return dl(n,t)?a:ye}(n,t,r);if(16&t.flags&&cl(n)&&Hg(t.valueDeclaration)){var i=Po(hi(t));if(1===i.callSignatures.length)return Rs(i.callSignatures[0])}}function il(e,n){if(3&n.flags||n===e)return e;var t=Il(e)+">"+Il(n),r=ce.get(t);if(r)return r;var a=$r(33554432);return a.typeVariable=e,a.substitute=n,ce.set(t,a),a}function ol(e){return 171===e.kind&&1===e.elementTypes.length}function sl(e,n,t){return ol(n)&&ol(t)?sl(e,n.elementTypes[0],t.elementTypes[0]):mc(Nc(n))===e?Nc(t):void 0}function ll(n,t){for(var r;t&&!e.isStatement(t)&&298!==t.kind;){var a=t.parent;if(176===a.kind&&t===a.trueType){var i=sl(n,a.checkType,a.extendsType);i&&(r=e.append(r,i))}t=a}return r?il(n,Kl(e.append(r,n))):n}function cl(e){return!!(2097152&e.flags)&&(165===e.kind||184===e.kind)}function dl(n,t){return!n.typeArguments||(Ht(n,e.Diagnostics.Type_0_is_not_generic,t?ba(t):n.typeName?e.declarationNameToString(n.typeName):"(anonymous)"),!1)}function ul(n){var t=rr(n);if(!t.resolvedType){var r=void 0,a=void 0,i=788968;cl(n)&&(a=function(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return dl(n),Se;case"Number":return dl(n),Le;case"Boolean":return dl(n),Me;case"Void":return dl(n),Oe;case"Undefined":return dl(n),he;case"Null":return dl(n),Ee;case"Function":case"function":return dl(n),rn;case"Array":case"array":return t&&t.length?void 0:fn;case"Promise":case"promise":return t&&t.length?void 0:p_(fe);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=Nc(t[0]),a=Hs(Nc(t[1]),!1);return sa(void 0,A,e.emptyArray,e.emptyArray,r===Se?a:void 0,r===Le?a:void 0)}return fe}return dl(n),fe}}}(n),i|=111551),a||(a=tl(n,r=nl(el(n),i))),t.resolvedSymbol=r,t.resolvedType=a}return t.resolvedType}function ml(n){return e.map(n.typeArguments,Nc)}function pl(e){var n=rr(e);return n.resolvedType||(n.resolvedType=Rc(Nu(ly(e.exprName)))),n.resolvedType}function fl(n,t){function r(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];switch(r.kind){case 241:case 242:case 244:return r}}}if(!n)return t?We:Ue;var a=Hi(n);return 524288&a.flags?e.length(a.typeParameters)!==t?(Ht(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?We:Ue):a:(Ht(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?We:Ue)}function gl(n,t){return _l(n,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function _l(e,n,t){return sr(void 0,e,n,t,e,!1)}function yl(n,t,r){var a=function(n,t){return _l(n,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}(n,r);return a||r?fl(a,t):void 0}function vl(e){return vn||(vn=gl("Symbol",e))}function hl(e){return hn||(hn=yl("Symbol",0,e))||Ue}function bl(e){return En||(En=yl("Promise",1,e))||We}function El(e){return Sn||(Sn=gl("Promise",e))}function Tl(e){return An||(An=yl("Iterable",1,e))||We}function Sl(e,n){void 0===n&&(n=0);var t=_l(e,788968,void 0);return t&&fl(t,n)}function Ll(e,n){return e!==We?Js(e,n):Ue}function Al(e){return Ll(bn||(bn=yl("TypedPropertyDescriptor",1,!0))||We,[e])}function xl(e,n){return Ll(n?ln:sn,[e])}function Cl(n){return e.isTypeOperatorNode(n)&&134===n.operator}function Dl(n,t,r,a,i){var o=n+(r?"+":",")+t+(a?"R":"")+(i&&i.length?","+i.join(","):""),s=ae.get(o);return s||ae.set(o,s=function(n,t,r,a,i){var o,s=[],l=r?n-1:n;if(n){o=new Array(n);for(var c=0;c<n;c++){var d=o[c]=ra();if(c<l){var u=qt(4|(c>=t?16777216:0),""+c,a?8:0);u.type=d,s.push(u)}}}var m=[];for(c=t;c<=l;c++)m.push(Ic(c));var p=qt(4,"length");p.type=r?Le:Gl(m),s.push(p);var f=ta(12);return f.typeParameters=o,f.outerTypeParameters=void 0,f.localTypeParameters=o,f.instantiations=e.createMap(),f.instantiations.set(zs(f.typeParameters),f),f.target=f,f.typeArguments=f.typeParameters,f.thisType=ra(),f.thisType.isThisType=!0,f.thisType.constraint=f,f.declaredProperties=s,f.declaredCallSignatures=e.emptyArray,f.declaredConstructSignatures=e.emptyArray,f.declaredStringIndexInfo=void 0,f.declaredNumberIndexInfo=void 0,f.minLength=t,f.hasRestElement=r,f.readonly=a,f.associatedNames=i,f}(n,t,r,a,i)),s}function Rl(e,n,t,r,a){void 0===n&&(n=e.length),void 0===t&&(t=!1),void 0===r&&(r=!1);var i=e.length;if(1===i&&t)return xl(e[0],r);var o=Dl(i,n,i>0&&t,r,a);return e.length?Js(o,e):o}function Ml(n,t){var r=n.target;return r.hasRestElement&&(t=Math.min(t,Qs(n)-1)),Rl((n.typeArguments||e.emptyArray).slice(t),Math.max(0,r.minLength-t),r.hasRestElement,r.readonly,r.associatedNames&&r.associatedNames.slice(t))}function Il(e){return e.id}function Ol(n,t){return e.binarySearch(n,t,Il,e.compareValues)>=0}function kl(n,t){var r=e.binarySearch(n,t,Il,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function Nl(n,t,r){var a=r.flags;if(1048576&a)return wl(n,t,r.types);if(!(131072&a))if(t|=68943871&a,66846720&a&&(t|=262144),r===_e&&(t|=4194304),!B&&98304&a)262144&e.getObjectFlags(r)||(t|=2097152);else{var i=n.length,o=i&&r.id>n[i-1].id?~i:e.binarySearch(n,r,Il,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function wl(e,n,t){for(var r=0,a=t;r<a.length;r++)n=Nl(e,n,a[r]);return n}function Pl(n,t){var r=n.length;if(0===r||function(e){var n=e[0];if(1024&n.flags){for(var t=zr(n.symbol),r=1;r<e.length;r++){var a=e[r];if(!(1024&a.flags)||t!==zr(a.symbol))return!1}return!0}return!1}(n))return!0;for(var a=r,i=0;a>0;)for(var o=n[--a],s=0,l=n;s<l.length;s++){var c=l[s];if(o!==c){if(1e5===i&&i/(r-a)*r>(t?25e6:1e6))return Ht(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(i++,fd(o,c)&&(!(1&e.getObjectFlags(Ei(o)))||!(1&e.getObjectFlags(Ei(c)))||_d(o,c))){e.orderedRemoveItemAt(n,a);break}}}return!0}function Gl(n,t,r,a){if(void 0===t&&(t=1),0===n.length)return ke;if(1===n.length)return n[0];var i=[],o=wl(i,0,n);if(0!==t){if(3&o)return 1&o?4194304&o?_e:fe:ve;switch(t){case 1:11136&o&&function(n,t){for(var r=n.length;r>0;){var a=n[--r];(128&a.flags&&4&t||256&a.flags&&8&t||2048&a.flags&&64&t||8192&a.flags&&4096&t||Mc(a)&&Ol(n,a.regularType))&&e.orderedRemoveItemAt(n,r)}}(i,o);break;case 2:if(!Pl(i,!(262144&o)))return ye}if(0===i.length)return 65536&o?2097152&o?Ee:Te:32768&o?2097152&o?he:be:ke}return Vl(i,66994211&o?0:131072,r,a)}function Fl(n,t){return e.isIdentifierTypePredicate(n)?e.isIdentifierTypePredicate(t)&&n.parameterIndex===t.parameterIndex:!e.isIdentifierTypePredicate(t)}function Vl(e,n,t,r){if(0===e.length)return ke;if(1===e.length)return e[0];var a=zs(e),i=ie.get(a);return i||(i=$r(1048576),ie.set(a,i),i.objectFlags=n|Xs(e,98304),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=r),i}function Bl(e,n,t){var r=t.flags;return 2097152&r?Ul(e,n,t.types):(Od(t)?8388608&n||(n|=8388608,e.set(t.id.toString(),t)):(3&r?t===_e&&(n|=4194304):!B&&98304&r||e.has(t.id.toString())||(109440&t.flags&&109440&n&&(n|=67108864),e.set(t.id.toString(),t)),n|=68943871&r),n)}function Ul(e,n,t){for(var r=0,a=t;r<a.length;r++)n=Bl(e,n,Rc(a[r]));return n}function Hl(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];if(!Ol(a.types,n)){var i=128&n.flags?Se:256&n.flags?Le:2048&n.flags?Ae:8192&n.flags?Ie:void 0;if(!i||!Ol(a.types,i))return!1}}return!0}function Kl(n,t,r){var a=e.createMap(),i=Ul(a,0,n),o=e.arrayFrom(a.values());if(131072&i||B&&98304&i&&76021760&i||67108864&i&&130044&i||132&i&&67238776&i||296&i&&67238612&i||2112&i&&67236796&i||12288&i&&67226620&i||49152&i&&67189756&i)return ke;if(1&i)return 4194304&i?_e:fe;if(!B&&98304&i)return 32768&i?he:Ee;if((4&i&&128&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i)&&function(n,t){for(var r=n.length;r>0;){var a=n[--r];(4&a.flags&&128&t||8&a.flags&&256&t||64&a.flags&&2048&t||4096&a.flags&&8192&t)&&e.orderedRemoveItemAt(n,r)}}(o,i),8388608&i&&524288&i&&e.orderedRemoveItemAt(o,e.findIndex(o,Od)),0===o.length)return ve;if(1===o.length)return o[0];var s=zs(o),l=oe.get(s);if(!l){if(1048576&i)if(function(n){var t,r=e.findIndex(n,function(n){return!!(131072&e.getObjectFlags(n))});if(r<0)return!1;for(var a=r+1;a<n.length;){var i=n[a];131072&e.getObjectFlags(i)?((t||(t=[n[r]])).push(i),e.orderedRemoveItemAt(n,a)):a++}if(!t)return!1;for(var o=[],s=[],l=0,c=t;l<c.length;l++)for(var d=0,u=c[l].types;d<u.length;d++)kl(o,i=u[d])&&Hl(t,i)&&kl(s,i);return n[r]=Vl(s,131072),!0}(o))l=Kl(o,t,r);else{if(e.reduceLeft(o,function(e,n){return e*(1048576&n.flags?n.types.length:1)},1)>=1e5)return Ht(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),ye;var c=e.findIndex(o,function(e){return 0!=(1048576&e.flags)}),u=o[c];l=Gl(e.map(u.types,function(n){return Kl(e.replaceElement(o,c,n))}),1,t,r)}else l=function(e,n,t){var r=$r(2097152);return r.objectFlags=Xs(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,t,r);oe.set(s,l)}return l}function jl(e,n){var t=$r(4194304);return t.type=e,t.stringsOnly=n,t}function Wl(n){return e.isIdentifier(n)?Ic(e.unescapeLeadingUnderscores(n.escapedText)):Rc(e.isComputedPropertyName(n)?sf(n):ly(n))}function ql(n,t){if(!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var r=oo(n).nameType;if(!r&&!e.isKnownSymbol(n))if("default"===n.escapedName)r=Ic("default");else{var a=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);r=a&&Wl(a)||Ic(e.symbolName(n))}if(r&&r.flags&t)return r}return ke}function zl(n,t){return Gl(e.map(Bo(n),function(e){return ql(e,t)}))}function Xl(e){var n=cs(e,1);return n!==Jn?n:void 0}function Jl(n,t,r){return void 0===t&&(t=q),1048576&n.flags?Kl(e.map(n.types,function(e){return Jl(e,t,r)})):2097152&n.flags?Gl(e.map(n.types,function(e){return Jl(e,t,r)})):N_(n,58982400)?function(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=jl(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=jl(e,!1))}(n,t):32&e.getObjectFlags(n)?Km(Co(n),function(e){return!(r&&5&e.flags)}):n===_e?_e:2&n.flags?ke:131073&n.flags?Ve:t?!r&&cs(n,0)?Se:zl(n,128):!r&&cs(n,0)?Gl([Se,Le,zl(n,8192)]):Xl(n)?Gl([Le,zl(n,8320)]):zl(n,8576)}function Yl(n){if(q)return n;var t=Gn||(Gn=_l("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return t?$s(t,[n,Se]):Se}function Ql(n){return!j&&(!!(16384&e.getObjectFlags(n))||(1048576&n.flags?e.every(n.types,Ql):2097152&n.flags?e.some(n.types,Ql):!!(63176704&n.flags)&&Ql(Yo(n))))}function Zl(n,t){var r=t&&191===t.kind?t:void 0;return Qi(n)?to(n):r&&ng(r.argumentExpression,n,!1)?e.getPropertyNameForKnownSymbolName(e.idText(r.argumentExpression.name)):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function $l(n,t,r,a,i,o,s){var l=o&&191===o.kind?o:void 0,c=Zl(r,o);if(void 0!==c){var d=as(t,c);if(d){if(l){if(Qf(d,l,101===l.expression.kind),e.isAssignmentTarget(l)&&(M_(l,d)||I_(l)))return void Ht(l.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ba(d));4&s&&(rr(o).resolvedSymbol=d)}var u=hi(d);return l&&1!==e.getAssignmentTargetKind(l)?ip(l,u):u}if(Hm(t,_u)&&of(c)&&+c>=0){if(o&&Hm(t,function(e){return!e.target.hasRestElement})&&!(8&s)){var m=ec(o);_u(t)?Ht(m,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ta(t),Qs(t),e.unescapeLeadingUnderscores(c)):Ht(m,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(c),Ta(t))}return h(cs(t,1)),Wm(t,function(e){return yu(e)||he})}}if(!(98304&r.flags)&&w_(r,12716)){if(131073&t.flags)return t;var p=cs(t,0),f=w_(r,296)&&cs(t,1)||p;if(f)return 1&s&&f===p?void(l&&Ht(l,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ta(r),Ta(n))):o&&!w_(r,12)?(Ht(m=ec(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ta(r)),f.type):(h(f),f.type);if(131072&r.flags)return ke;if(Ql(t))return fe;if(l&&!G_(t)){if(t.symbol===Z&&void 0!==c&&Z.exports.has(c)&&418&Z.exports.get(c).flags)Ht(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(c),Ta(t));else if(j&&!P.suppressImplicitAnyIndexErrors&&!i)if(void 0!==c&&Wf(c,t))Ht(l,e.Diagnostics.Property_0_is_a_static_member_of_type_1,c,Ta(t));else if(ds(t,1))Ht(l.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==c&&(g=zf(c,t)))void 0!==g&&Ht(l.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,c,Ta(t),g);else{var _=function(n,t){var r=e.isAssignmentTarget(t)?"set":"get";if(function(e,t){void 0===t&&(t=1);var r=Fo(n,e);if(r){var a=dg(hi(r));if(a&&i_(a)===t&&"string"===Ta(n_(a,0)))return!0}return!1}(r)){var a=e.tryGetPropertyAccessOrIdentifierToString(t);return void 0===a?a=r:a+="."+r,a}}(t,l);if(void 0!==_)Ht(l,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ta(t),_);else{var y=void 0;if(1024&r.flags)y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ta(r)+"]",Ta(t));else if(8192&r.flags){var v=Rr(r.symbol,l);y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",Ta(t))}else 128&r.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Ta(t)):256&r.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Ta(t)):12&r.flags&&(y=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ta(r),Ta(t)));y=e.chainDiagnosticMessages(y,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ta(a),Ta(t)),It.add(e.createDiagnosticForNodeFromMessageChain(l,y))}}}return}}return Ql(t)?fe:(o&&(m=ec(o),384&r.flags?Ht(m,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Ta(t)):12&r.flags?Ht(m,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Ta(t),Ta(r)):Ht(m,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ta(r))),Va(r)?r:void 0);function h(n){n&&n.isReadonly&&l&&(e.isAssignmentTarget(l)||e.isDeleteTarget(l))&&Ht(l,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ta(t))}}function ec(e){return 191===e.kind?e.argumentExpression:181===e.kind?e.indexType:150===e.kind?e.expression:e}function nc(e){return N_(e,59113472)}function tc(e){return N_(e,63176704)}function rc(e){return!!(262144&e.flags&&e.isThisType)}function ac(n,t){return 8388608&n.flags?function(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===Xe?n:n[r];n[r]=Xe;var a=ac(n.objectType,t),i=ac(n.indexType,t),o=function(n,t,r){if(1048576&t.flags){var a=e.map(t.types,function(e){return ac(lc(n,e),r)});return r?Kl(a):Gl(a)}}(a,i,t);if(o)return n[r]=o;if(!(63176704&i.flags)){var s=ic(a,i,t);if(s)return n[r]=s}return wo(a)?n[r]=Wm(sc(a,n.indexType),function(e){return ac(e,t)}):n[r]=n}(n,t):16777216&n.flags?function(e,n){var t=e.checkType,r=e.extendsType,a=fc(e),i=gc(e);if(131072&i.flags&&mc(a)===mc(t)){if(1&t.flags||gd(rd(t),rd(r)))return ac(a,n);if(oc(t,r))return ke}else if(131072&a.flags&&mc(i)===mc(t)){if(!(1&t.flags)&&gd(rd(t),rd(r)))return ke;if(1&t.flags||oc(t,r))return ac(i,n)}return e}(n,t):n}function ic(n,t,r){if(3145728&n.flags){var a=e.map(n.types,function(e){return ac(lc(e,t),r)});return 2097152&n.flags||r?Kl(a):Gl(a)}}function oc(e,n){return!!(131072&Gl([vo(e,n),ke]).flags)}function sc(e,n){var t=Vc([xo(e)],[n]),r=Uc(e.mapper,t);return nd(Do(e),r)}function lc(e,n,t){return cc(e,n,t,0)||(t?ye:ve)}function cc(e,n,t,r){if(void 0===r&&(r=0),e===_e||n===_e)return _e;if(!kd(e)||98304&n.flags||!w_(n,12)||(n=Se),tc(n)||(!t||181===t.kind)&&nc(e)){if(3&e.flags)return e;var a=e.id+","+n.id,i=le.get(a);return i||le.set(a,i=function(e,n){var t=$r(8388608);return t.objectType=e,t.indexType=n,t}(e,n)),i}var o=es(e);if(1048576&n.flags&&!(16&n.flags)){for(var s=[],l=!1,c=0,d=n.types;c<d.length;c++){var u=$l(e,o,d[c],n,l,t,r);if(u)s.push(u);else{if(!t)return;l=!0}}if(l)return;return 2&r?Kl(s):Gl(s)}return $l(e,o,n,n,!1,t,4|r)}function dc(e){var n=rr(e);if(!n.resolvedType){var t=Nc(e.objectType),r=Nc(e.indexType),a=lc(t,r,e);n.resolvedType=8388608&a.flags&&a.objectType===t&&a.indexType===r?ll(a,e):a}return n.resolvedType}function uc(e){var n=rr(e);if(!n.resolvedType){var t=ta(32,e.symbol);t.declaration=e,t.aliasSymbol=bc(e),t.aliasTypeArguments=Ec(t.aliasSymbol),n.resolvedType=t,Co(t)}return n.resolvedType}function mc(e){return 33554432&e.flags?e.typeVariable:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?lc(mc(e.objectType),mc(e.indexType)):e}function pc(e,n){var t=nd(e.checkType,n),r=nd(e.extendsType,n);if(t===_e||r===_e)return _e;var a,i=N_(t,63307776);if(e.inferTypeParameters){var o=Bu(e.inferTypeParameters,void 0,0);i||nm(o.inferences,t,r,192),a=Uc(n,o.mapper)}var s=a?nd(e.extendsType,a):r;if(!i&&!N_(s,63307776)){if(3&s.flags)return nd(e.trueType,a||n);if(1&t.flags)return Gl([nd(e.trueType,a||n),nd(e.falseType,n)]);if(!gd(td(t),td(s)))return nd(e.falseType,n);if(gd(rd(t),rd(s)))return nd(e.trueType,a||n)}var l=mc(t),c=$r(16777216);return c.root=e,c.checkType=l,c.extendsType=r,c.mapper=n,c.combinedMapper=a,c.aliasSymbol=e.aliasSymbol,c.aliasTypeArguments=Pc(e.aliasTypeArguments,n),c}function fc(e){return e.resolvedTrueType||(e.resolvedTrueType=nd(e.root.trueType,e.mapper))}function gc(e){return e.resolvedFalseType||(e.resolvedFalseType=nd(e.root.falseType,e.mapper))}function _c(n){var t;return n.locals&&n.locals.forEach(function(n){262144&n.flags&&(t=e.append(t,Hi(n)))}),t}function yc(n){var t=rr(n);if(!t.resolvedType){if(n.isTypeOf&&n.typeArguments)return Ht(n,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=me,t.resolvedType=ye;if(!e.isLiteralImportTypeNode(n))return Ht(n.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=me,t.resolvedType=ye;var r=n.isTypeOf?111551:2097152&n.flags?900095:788968,a=Or(n,n.argument.literal);if(!a)return t.resolvedSymbol=me,t.resolvedType=ye;var i=Pr(a,!1);if(e.nodeIsMissing(n.qualifier))i.flags&r?vc(n,t,i,r):(Ht(n,111551===r?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,n.argument.literal.text),t.resolvedSymbol=me,t.resolvedType=ye);else{for(var o=function n(t){return e.isIdentifier(t)?[t]:e.append(n(t.left),t.right)}(n.qualifier),s=i,l=void 0;l=o.shift();){var c=o.length?1920:r,d=ir(Ur(Wr(Lr(s))),l.escapedText,c);if(!d)return Ht(l,e.Diagnostics.Namespace_0_has_no_exported_member_1,Rr(s),e.declarationNameToString(l)),t.resolvedType=ye;rr(l).resolvedSymbol=d,rr(l.parent).resolvedSymbol=d,s=d}vc(n,t,s,r)}}return t.resolvedType}function vc(e,n,t,r){var a=Lr(t);return n.resolvedSymbol=a,n.resolvedType=111551===r?hi(t):tl(e,a)}function hc(n){var t=rr(n);if(!t.resolvedType){var r=bc(n);if(0!==io(n.symbol).size||r){var a=ta(16,n.symbol);a.aliasSymbol=r,a.aliasTypeArguments=Ec(r),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(a=xl(a)),t.resolvedType=a}else t.resolvedType=je}return t.resolvedType}function bc(n){return e.isTypeAlias(n.parent)?qr(n.parent):void 0}function Ec(e){return e?xi(e):void 0}function Tc(e){return!!(524288&e.flags)&&!wo(e)}function Sc(n,t,r,a,i){if(1&n.flags||1&t.flags)return fe;if(2&n.flags||2&t.flags)return ve;if(131072&n.flags)return t;if(131072&t.flags)return n;if(1048576&n.flags)return Wm(n,function(e){return Sc(e,t,r,a,i)});if(1048576&t.flags)return Wm(t,function(e){return Sc(n,e,r,a,i)});if(71307260&t.flags)return n;if(nc(n)||nc(t)){if(Id(n))return t;if(2097152&n.flags){var o=n.types,s=o[o.length-1];if(Tc(s)&&Tc(t))return Kl(e.concatenate(o.slice(0,o.length-1),[Sc(s,t,r,a,i)]))}return Kl([n,t])}var l,c,d=e.createSymbolTable(),u=e.createUnderscoreEscapedMap();n===Ue?(l=cs(t,0),c=cs(t,1)):(l=bo(cs(n,0),cs(t,0)),c=bo(cs(n,1),cs(t,1)));for(var m=0,p=Bo(t);m<p.length;m++){var f=p[m];24&e.getDeclarationModifierFlagsFromSymbol(f)?u.set(f.escapedName,!0):Lc(f)&&d.set(f.escapedName,Ac(f,i))}for(var g=0,_=Bo(n);g<_.length;g++){var y=_[g];if(!u.has(y.escapedName)&&Lc(y))if(d.has(y.escapedName)){var v=hi(f=d.get(y.escapedName));if(16777216&f.flags){var h=e.concatenate(y.declarations,f.declarations),b=qt(4|16777216&y.flags,y.escapedName);b.type=Gl([hi(y),Am(v,524288)]),b.leftSpread=y,b.rightSpread=f,b.declarations=h,b.nameType=y.nameType,d.set(y.escapedName,b)}}else d.set(y.escapedName,Ac(y,i))}var E=sa(r,d,e.emptyArray,e.emptyArray,xc(l,i),xc(c,i));return E.objectFlags|=525440|a,E}function Lc(n){return!(106496&n.flags&&n.declarations.some(function(n){return e.isClassLike(n.parent)}))}function Ac(e,n){var t=65536&e.flags&&!(32768&e.flags);if(!t&&n===R_(e))return e;var r=qt(4|16777216&e.flags,e.escapedName,n?8:0);return r.type=t?he:hi(e),r.declarations=e.declarations,r.nameType=e.nameType,r.syntheticOrigin=e,r}function xc(e,n){return e&&e.isReadonly!==n?Hs(e.type,n,e.declaration):e}function Cc(e,n,t){var r=$r(e);return r.symbol=t,r.value=n,r}function Dc(e){if(2944&e.flags){if(!e.freshType){var n=Cc(e.flags,e.value,e.symbol);n.regularType=e,n.freshType=n,e.freshType=n}return e.freshType}return e}function Rc(n){return 2944&n.flags?n.regularType:1048576&n.flags?Gl(e.sameMap(n.types,Rc)):n}function Mc(e){return!!(2944&e.flags)&&e.freshType===e}function Ic(n,t,r){var a=(t||"")+("number"==typeof n?"#":"string"==typeof n?"@":"n")+("object"==typeof n?e.pseudoBigIntToString(n):n),i=se.get(a);if(!i){var o=("number"==typeof n?256:"string"==typeof n?128:2048)|(t?1024:0);se.set(a,i=Cc(o,n,r)),i.regularType=i}return i}function Oc(n){if(e.isValidESSymbolDeclaration(n)){var t=qr(n),r=tr(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=function(e){var n=$r(8192);return n.symbol=e,n.escapedName="__@"+n.symbol.escapedName+"@"+R(n.symbol),n}(t))}return Ie}function kc(n){var t=rr(n);return t.resolvedType||(t.resolvedType=function(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;return!r||!e.isClassLike(r)&&242!==r.kind||e.hasModifier(t,32)||158===t.kind&&!e.isNodeDescendantOf(n,t.body)?(Ht(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ye):wi(qr(r)).thisType}(n)),t.resolvedType}function Nc(n){switch(n.kind){case 121:case 290:case 291:return fe;case 144:return ve;case 139:return Se;case 136:return Le;case 147:return Ae;case 124:return Me;case 140:return Ie;case 107:return Oe;case 142:return he;case 97:return Ee;case 133:return ke;case 137:return 65536&n.flags?fe:Ge;case 179:case 101:return kc(n);case 183:return function(e){var n=rr(e);return n.resolvedType||(n.resolvedType=Rc(ly(e.literal))),n.resolvedType}(n);case 165:return ul(n);case 164:return Me;case 212:return ul(n);case 168:return pl(n);case 170:return function(e){var n=rr(e);return n.resolvedType||(n.resolvedType=xl(Nc(e.elementType),Cl(e.parent))),n.resolvedType}(n);case 171:return function(n){var t=rr(n);if(!t.resolvedType){var r=e.lastOrUndefined(n.elementTypes),a=r&&173===r.kind?r:void 0,i=e.findLastIndex(n.elementTypes,function(e){return 172!==e.kind&&e!==a})+1,o=e.map(n.elementTypes,function(e){var n=Nc(e);return e===a&&ds(n,1)||n});t.resolvedType=Rl(o,i,!!a,Cl(n.parent))}return t.resolvedType}(n);case 172:return function(e){var n=Nc(e.type);return B?Au(n):n}(n);case 174:return function(n){var t=rr(n);if(!t.resolvedType){var r=bc(n);t.resolvedType=Gl(e.map(n.types,Nc),1,r,Ec(r))}return t.resolvedType}(n);case 175:return function(n){var t=rr(n);if(!t.resolvedType){var r=bc(n);t.resolvedType=Kl(e.map(n.types,Nc),r,Ec(r))}return t.resolvedType}(n);case 292:return function(e){var n=Nc(e.type);return B?Lu(n,65536):n}(n);case 294:return Ja(Nc(n.type));case 178:case 173:case 293:case 289:return Nc(n.type);case 296:return function(n){var t=Nc(n.type),r=n.parent,a=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(a)){var i=e.getHostSignatureFromJSDoc(a);if(i){var o=e.lastOrUndefined(i.parameters),s=e.getParameterSymbolFromJSDoc(a);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return xl(t)}}return e.isParameter(r)&&e.isJSDocFunctionType(r.parent)?xl(t):Ja(t)}(n);case 166:case 167:case 169:case 299:case 295:case 300:return hc(n);case 180:return function(n){var t=rr(n);if(!t.resolvedType)switch(n.operator){case 130:t.resolvedType=Jl(Nc(n.type));break;case 143:t.resolvedType=140===n.type.kind?Oc(e.walkUpParenthesizedTypes(n.parent)):ye;break;case 134:t.resolvedType=Nc(n.type)}return t.resolvedType}(n);case 181:return dc(n);case 182:return uc(n);case 176:return function(n){var t=rr(n);if(!t.resolvedType){var r=Nc(n.checkType),a=bc(n),i=Ec(a),o=Li(n,!0),s=i?o:e.filter(o,function(e){return Jc(e,n)}),l={node:n,checkType:r,extendsType:Nc(n.extendsType),trueType:Nc(n.trueType),falseType:Nc(n.falseType),isDistributive:!!(262144&r.flags),inferTypeParameters:_c(n),outerTypeParameters:s,instantiations:void 0,aliasSymbol:a,aliasTypeArguments:i};t.resolvedType=pc(l,void 0),s&&(l.instantiations=e.createMap(),l.instantiations.set(zs(s),t.resolvedType))}return t.resolvedType}(n);case 177:return function(e){var n=rr(e);return n.resolvedType||(n.resolvedType=Ui(qr(e.typeParameter))),n.resolvedType}(n);case 184:return yc(n);case 73:case 149:var t=Dh(n);return t?Hi(t):ye;default:return ye}}function wc(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 Pc(e,n){return wc(e,n,nd)}function Gc(e,n){return wc(e,n,qc)}function Fc(e,n){return function(t){return t===e?n:t}}function Vc(n,t){return e.Debug.assert(void 0===t||n.length===t.length),1===n.length?Fc(n[0],t?t[0]:fe):2===n.length?(r=n[0],a=t?t[0]:fe,i=n[1],o=t?t[1]:fe,function(e){return e===r?a:e===i?o:e}):function(e,n){return function(t){for(var r=0;r<e.length;r++)if(t===e[r])return n?n[r]:fe;return t}}(n,t);var r,a,i,o}function Bc(e){return Vc(e,void 0)}function Uc(e,n){return e?n?function(t){return nd(e(t),n)}:e:n}function Hc(e,n,t){return function(r){return r===e?n:t(r)}}function Kc(e){return 262144&e.flags?_e:e}function jc(e){return 262144&e.flags?(n=e).constraint===ve?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=ra(n.symbol),n.restrictiveInstantiation.constraint=ve,n.restrictiveInstantiation):e;var n}function Wc(e){var n=ra(e.symbol);return n.target=e,n}function qc(n,t,r){var a;if(n.typeParameters&&!r){a=e.map(n.typeParameters,Wc),t=Uc(Vc(n.typeParameters,a),t);for(var i=0,o=a;i<o.length;i++)o[i].mapper=t}var s=co(n.declaration,a,n.thisParameter&&zc(n.thisParameter,t),wc(n.parameters,t,zc),void 0,void 0,n.minArgumentCount,n.hasRestParameter,n.hasLiteralTypes);return s.target=n,s.mapper=t,s}function zc(n,t){var r=tr(n);if(r.type&&!N_(r.type,63700992))return n;1&e.getCheckFlags(n)&&(n=r.target,t=Uc(r.mapper,t));var a=qt(n.flags,n.escapedName,1|53256&e.getCheckFlags(n));return a.declarations=n.declarations,a.parent=n.parent,a.target=n,a.mapper=t,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.nameType&&(a.nameType=n.nameType),a}function Xc(n,t){var r=64&n.objectFlags?n.target:n,a=r.symbol,i=tr(a),o=i.outerTypeParameters;if(!o){var s=a.declarations[0];if(e.isInJSFile(s)){var l=e.findAncestor(s,e.isJSDocParameterTag);if(l){var c=e.getParameterSymbolFromJSDoc(l);c&&(s=c.valueDeclaration)}}var d=Li(s,!0);if(Hg(s)){var u=ms(s);d=e.addRange(d,u)}o=d||e.emptyArray,o=2048&a.flags&&!r.aliasTypeArguments?e.filter(o,function(e){return Jc(e,s)}):o,i.outerTypeParameters=o,o.length&&(i.instantiations=e.createMap(),i.instantiations.set(zs(o),r))}if(o.length){var m=64&n.objectFlags?Uc(n.mapper,t):t,p=e.map(o,m),f=zs(p),g=i.instantiations.get(f);if(!g){var _=Vc(o,p);g=32&r.objectFlags?function(n,t){var r=Yc(n);if(r){var a=nd(r,t);if(r!==a)return Wm(a,function(a){if(61603843&a.flags&&a!==_e&&a!==ye){var i=Hc(r,a,t);return nu(a)?function(e,n,t){var r=Zc(n,Le,!0,t);return r===ye?ye:xl(r,Qc(tu(e),Oo(n)))}(a,n,i):_u(a)?function(n,t,r){var a=n.target.minLength,i=e.map(n.typeArguments||e.emptyArray,function(e,n){return Zc(t,Ic(""+n),n>=a,r)}),o=Oo(t),s=4&o?0:8&o?Qs(n)-(n.target.hasRestElement?1:0):a,l=Qc(n.target.readonly,o);return e.contains(i,ye)?ye:Rl(i,s,n.target.hasRestElement,l,n.target.associatedNames)}(a,n,i):$c(n,i)}return a})}return $c(n,t)}(r,_):$c(r,_),i.instantiations.set(f,g)}return g}return n}function Jc(n,t){if(n.symbol&&n.symbol.declarations&&1===n.symbol.declarations.length){for(var r=n.symbol.declarations[0].parent,a=t;a!==r;a=a.parent)if(!a||219===a.kind||176===a.kind&&e.forEachChild(a.extendsType,i))return!0;return!!e.forEachChild(t,i)}return!0;function i(t){switch(t.kind){case 179:return!!n.isThisType;case 73:return!n.isThisType&&e.isPartOfTypeNode(t)&&function(e){return!(149===e.kind||165===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||184===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&Nc(t)===n;case 168:return!0}return!!e.forEachChild(t,i)}}function Yc(e){var n=Co(e);if(4194304&n.flags){var t=mc(n.type);if(262144&t.flags)return t}}function Qc(e,n){return!!(1&n)||!(2&n)&&e}function Zc(e,n,t,r){var a=Uc(r,Vc([xo(e)],[n])),i=nd(Do(e.target||e),a),o=Oo(e);return B&&4&o&&!gd(he,i)?Au(i):B&&8&o&&t?Am(i,524288):i}function $c(e,n){var t=ta(64|e.objectFlags,e.symbol);if(32&e.objectFlags){t.declaration=e.declaration;var r=xo(e),a=Wc(r);t.typeParameter=a,n=Uc(Fc(r,a),n),a.mapper=n}return t.target=e,t.mapper=n,t.aliasSymbol=e.aliasSymbol,t.aliasTypeArguments=Pc(e.aliasTypeArguments,n),t}function ed(n,t){var r=n.root;if(r.outerTypeParameters){var a=e.map(r.outerTypeParameters,t),i=zs(a),o=r.instantiations.get(i);return o||(o=function(e,n){if(e.isDistributive){var t=e.checkType,r=n(t);if(t!==r&&1179648&r.flags)return Wm(r,function(r){return pc(e,Hc(t,r,n))})}return pc(e,n)}(r,Vc(r.outerTypeParameters,a)),r.instantiations.set(i,o)),o}return n}function nd(n,t){if(!n||!t||t===w)return n;if(50===E||b>=5e6)return Ht(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),ye;b++,E++;var r=function(e,n){var t=e.flags;if(262144&t)return n(e);if(524288&t){var r=e.objectFlags;if(16&r)return zu(e)?Xc(e,n):e;if(32&r)return Xc(e,n);if(4&r){var a=e.typeArguments,i=Pc(a,n);return i!==a?Js(e.target,i):e}return e}if(1048576&t&&!(131068&t)){var o=e.types,s=Pc(o,n);return s!==o?Gl(s,1,e.aliasSymbol,Pc(e.aliasTypeArguments,n)):e}if(2097152&t){var o=e.types,s=Pc(o,n);return s!==o?Kl(s,e.aliasSymbol,Pc(e.aliasTypeArguments,n)):e}if(4194304&t)return Jl(nd(e.type,n));if(8388608&t)return lc(nd(e.objectType,n),nd(e.indexType,n));if(16777216&t)return ed(e,Uc(e.mapper,n));if(33554432&t){var l=nd(e.typeVariable,n);if(8650752&l.flags)return il(l,nd(e.substitute,n));var c=nd(e.substitute,n);return 3&c.flags||gd(rd(l),rd(c))?l:c}return e}(n,t);return E--,r}function td(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=nd(e,Kc))}function rd(e){return 262143&e.flags?e:e.restrictiveInstantiation?e.restrictiveInstantiation:(e.restrictiveInstantiation=nd(e,jc),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function ad(e,n){return e&&Hs(nd(e.type,n),e.isReadonly,e.declaration)}function id(n){switch(e.Debug.assert(157!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 197:case 198:case 157:case 240:return od(n);case 189:return e.some(n.properties,id);case 188:return e.some(n.elements,id);case 206:return id(n.whenTrue)||id(n.whenFalse);case 205:return 55===n.operatorToken.kind&&(id(n.left)||id(n.right));case 276:return id(n.initializer);case 196:return id(n.expression);case 269:return e.some(n.properties,id)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,id);case 268:var t=n.initializer;return!!t&&id(t);case 271:var r=n.expression;return!!r&&id(r)}return!1}function od(n){if(e.isFunctionDeclaration(n)&&(!e.isInJSFile(n)||!za(n)))return!1;if(n.typeParameters)return!1;if(e.some(n.parameters,function(n){return!e.getEffectiveTypeAnnotationNode(n)}))return!0;if(198!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!e.parameterIsThisKeyword(t))return!0}return sd(n)}function sd(e){return!!e.body&&219!==e.body.kind&&id(e.body)}function ld(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Yp(n)||e.isObjectLiteralMethod(n))&&od(n)}function cd(n){if(524288&n.flags){var t=Po(n);if(t.constructSignatures.length||t.callSignatures.length){var r=ta(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(2097152&n.flags)return Kl(e.map(n.types,cd));return n}function dd(e,n){return Pd(e,n,Ft)}function ud(e,n){return Pd(e,n,Ft)?-1:0}function md(e,n){return Pd(e,n,Pt)?-1:0}function pd(e,n){return Pd(e,n,wt)?-1:0}function fd(e,n){return Pd(e,n,wt)}function gd(e,n){return Pd(e,n,Pt)}function _d(n,t){return 1048576&n.flags?e.every(n.types,function(e){return _d(e,t)}):1048576&t.flags?e.some(t.types,function(e){return _d(n,e)}):58982400&n.flags?_d(zo(n)||ve,t):t===tn?!!(67633152&n.flags):t===rn?!!(524288&n.flags)&&Sm(n):Ti(n,Ei(t))}function yd(e,n){return Pd(e,n,Gt)}function vd(e,n){return yd(e,n)||yd(n,e)}function hd(e,n,t,r,a,i){return Fd(e,n,Pt,t,r,a,i)}function bd(e,n,t,r,a,i){return Ed(e,n,Pt,t,r,a,i,void 0)}function Ed(e,n,t,r,a,i,o,s){return!!Pd(e,n,t)||(!r||!Sd(a,e,n,t,i,o,s))&&Fd(e,n,t,r,i,o,s)}function Td(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,Td))}function Sd(n,t,r,a,i,o,c){if(!n||Td(r))return!1;if(!Fd(t,r,a,void 0)&&function(n,t,r,a,i,o,s){for(var l=os(t,0),c=os(t,1),d=0,u=[c,l];d<u.length;d++){var m=u[d];if(e.some(m,function(e){var n=Rs(e);return!(131073&n.flags)&&Fd(n,r,a,void 0)})){var p=s||{};hd(t,r,n,i,o,p);var f=p.errors[p.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(n,m===c?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(n,t,r,a,i,o,c))return!0;switch(n.kind){case 271:case 196:return Sd(n.expression,t,r,a,i,o,c);case 205:switch(n.operatorToken.kind){case 60:case 27:return Sd(n.right,t,r,a,i,o,c)}break;case 189:return function(n,t,r,a,i,o){return!(131068&r.flags)&&Ld(function(n){var t,r,a,i;return l(this,function(o){switch(o.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,o.label=1;case 1:if(!(t<r.length))return[3,8];if(a=r[t],e.isSpreadAssignment(a))return[3,7];if(!(i=ql(qr(a),8576))||131072&i.flags)return[3,7];switch(a.kind){case 160:case 159:case 157:case 277:return[3,2];case 276:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:void 0,nameType:i}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:i,errorMessage:Ua(a.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(a),o.label=7;case 7:return t++,[3,1];case 8:return[2]}})}(n),t,r,a,i,o)}(n,t,r,a,o,c);case 188:return function(e,n,t,r,a,i){if(131068&t.flags)return!1;if(ou(n))return Ld(Cd(e,t),n,t,r,a,i);var o=ef(e,1,!0);return!!ou(o)&&Ld(Cd(e,t),o,t,r,a,i)}(n,t,r,a,o,c);case 269:return function(n,t,r,a,i,o){var c,d=Ld(function(n){var t,r,a;return l(this,function(i){switch(i.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,i.label=1;case 1:return t<r.length?(a=r[t],e.isJsxSpreadAttribute(a)?[3,3]:[4,{errorNode:a.name,innerExpression:a.initializer,nameType:Ic(e.idText(a.name))}]):[3,4];case 2:i.sent(),i.label=3;case 3:return t++,[3,1];case 4:return[2]}})}(n),t,r,a,i,o);if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var u=n.parent.parent,m=Ef(hf(n)),p=void 0===m?"children":e.unescapeLeadingUnderscores(m),f=Ic(p),g=lc(r,f),_=xd(u.children);if(!e.length(_))return d;var y=e.length(_)>1,v=Km(g,su),h=Km(g,function(e){return!su(e)});if(y){if(v!==ke){var b=Rl(gf(u,0)),E=function(n,t){var r,a,i,o,s;return l(this,function(l){switch(l.label){case 0:if(!e.length(n.children))return[2];r=0,a=0,l.label=1;case 1:return a<n.children.length?(i=n.children[a],o=Ic(a-r),(s=Ad(i,o,t))?[4,s]:[3,3]):[3,5];case 2:return l.sent(),[3,4];case 3:r++,l.label=4;case 4:return a++,[3,1];case 5:return[2]}})}(u,A);d=Ld(E,b,v,a,i,o)||d}else if(!Pd(lc(t,f),g,a)){d=!0;var T=Ht(u.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,p,Ta(g));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(T)}}else if(h!==ke){var S=_[0],L=Ad(S,f,A);L&&(d=Ld(function(){return l(this,function(e){switch(e.label){case 0:return[4,L];case 1:return e.sent(),[2]}})}(),t,r,a,i,o)||d)}else if(!Pd(lc(t,f),g,a)){d=!0;var T=Ht(u.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,p,Ta(g));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(T)}}return d;function A(){if(!c){var t=e.getTextOfNode(n.parent.tagName),a=Ef(hf(n)),i=void 0===a?"children":e.unescapeLeadingUnderscores(a),o=lc(r,Ic(i)),l=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;c=s(s({},l),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,l,t,i,Ta(o))})}return c}}(n,t,r,a,o,c);case 198:return function(n,t,r,a,i,o){if(e.isBlock(n.body))return!1;if(e.some(n.parameters,e.hasType))return!1;var s=dg(t);if(!s)return!1;var l=os(r,0);if(!e.length(l))return!1;var c=n.body,d=Rs(s),u=Gl(e.map(l,Rs));if(!Fd(d,u,a,void 0)){var m=c&&Sd(c,d,u,a,void 0,i,o);if(m)return m;var p=o||{};if(Fd(d,u,a,c,void 0,i,p),p.errors)return r.symbol&&e.length(r.symbol.declarations)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!0}return!1}(n,t,r,a,o,c)}return!1}function Ld(n,t,r,a,i,o){for(var s=!1,l=n.next();!l.done;l=n.next()){var c=l.value,d=c.errorNode,u=c.innerExpression,m=c.nameType,p=c.errorMessage,f=cc(r,m);if(f&&!(8388608&f.flags)){var g=cc(t,m);if(g&&!Fd(g,f,a,void 0))if(u&&Sd(u,g,f,a,void 0,i,o))s=!0;else{var _=o||{},y=u?Z_(u,0,g):g;if(Fd(y,f,a,d,p,i,_)&&y!==g&&Fd(g,f,a,d,p,i,_),_.errors){var v=_.errors[_.errors.length-1],h=Qi(m)?to(m):void 0,b=void 0!==h?as(r,h):void 0,E=!1;if(!b){var T=w_(m,296)&&cs(r,1)||cs(r,0)||void 0;T&&T.declaration&&!e.getSourceFileOfNode(T.declaration).hasNoDefaultLib&&(E=!0,e.addRelatedInfo(v,e.createDiagnosticForNode(T.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!E&&(b&&e.length(b.declarations)||r.symbol&&e.length(r.symbol.declarations))){var S=b&&e.length(b.declarations)?b.declarations[0]:r.symbol.declarations[0];e.getSourceFileOfNode(S).hasNoDefaultLib||e.addRelatedInfo(v,e.createDiagnosticForNode(S,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!h||8192&m.flags?Ta(m):e.unescapeLeadingUnderscores(h),Ta(r)))}}s=!0}}}return s}function Ad(n,t,r){switch(n.kind){case 271:return{errorNode:n,innerExpression:n.expression,nameType:t};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:t,errorMessage:r()};case 261:case 262:case 265:return{errorNode:n,innerExpression:n,nameType:t};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function xd(n){return e.filter(n,function(n){return!e.isJsxText(n)||!n.containsOnlyTriviaWhiteSpaces})}function Cd(n,t){var r,a,i,o;return l(this,function(s){switch(s.label){case 0:if(!(r=e.length(n.elements)))return[2];a=0,s.label=1;case 1:return a<r?ou(t)&&!as(t,""+a)?[3,3]:(i=n.elements[a],e.isOmittedExpression(i)?[3,3]:(o=Ic(a),[4,{errorNode:i,innerExpression:i,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return a++,[3,1];case 4:return[2]}})}function Dd(e,n,t,r,a){return Fd(e,n,Gt,t,r,a)}function Rd(n,t,r,a,i,o,s){if(n===t)return-1;if(!(l=t).typeParameters&&(!l.thisParameter||Va($g(l.thisParameter)))&&1===l.parameters.length&&l.hasRestParameter&&($g(l.parameters[0])===fn||Va($g(l.parameters[0])))&&Va(Rs(l)))return-1;var l,c=a_(t);if(!o_(t)&&i_(n)>c)return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=pg(n,t=Gs(t),void 0,s));var d=a_(n),u=l_(n),m=l_(t);if(u&&m&&d!==c)return 0;var p=t.declaration?t.declaration.kind:0,f=!r&&U&&157!==p&&156!==p&&158!==p,g=-1,_=xs(n);if(_&&_!==Oe){var y=xs(t);if(y){if(!(E=!f&&s(_,y,!1)||s(y,_,i)))return i&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=E}}for(var v=u||m?Math.min(d,c):Math.max(d,c),h=u||m?v-1:-1,b=0;b<v;b++){var E,T=b===h?r_(n,b):n_(n,b),S=b===h?r_(t,b):n_(t,b),L=r?void 0:dg(xu(T)),A=r?void 0:dg(xu(S));if(!(E=L&&A&&!Cs(L)&&!Cs(A)&&(98304&Eu(T))==(98304&Eu(S))?Rd(A,L,f?2:1,!1,i,o,s):!r&&!f&&s(T,S,!1)||s(S,T,i)))return i&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(e_(n,b)),e.unescapeLeadingUnderscores(e_(t,b))),0;g&=E}if(!a){var x=Is(t)?fe:t.declaration&&Hg(t.declaration)?jg(t.declaration.symbol):Rs(t);if(x===Oe)return g;var C=Is(n)?fe:n.declaration&&Hg(n.declaration)?jg(n.declaration.symbol):Rs(n),D=Ds(t);if(D){var R=Ds(n);if(R)g&=function(n,t,r,a,i){if(n.kind!==t.kind)return r&&(a(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Aa(n),Aa(t))),0;if(1===n.kind&&n.parameterIndex!==t.parameterIndex)return r&&(a(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,t.parameterName),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Aa(n),Aa(t))),0;var o=i(n.type,t.type,r);return 0===o&&r&&a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Aa(n),Aa(t)),o}(R,D,i,o,s);else if(e.isIdentifierTypePredicate(D))return i&&o(e.Diagnostics.Signature_0_must_be_a_type_predicate,Ea(n)),0}else g&=1===r&&s(x,C,!1)||s(C,x,i)}return g}function Md(e,n){var t=Ps(e),r=Ps(n),a=Rs(t),i=Rs(r);return!(i!==Oe&&!Pd(i,a,Pt)&&!Pd(a,i,Pt))&&0!==Rd(t,r,0,!0,!1,void 0,md)}function Id(n){return 524288&n.flags?!wo(n)&&0===(t=Po(n)).properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo:!!(67108864&n.flags)||(1048576&n.flags?e.some(n.types,Id):!!(2097152&n.flags)&&e.every(n.types,Id));var t}function Od(n){return!!(16&e.getObjectFlags(n))&&Id(n)}function kd(n){return 524288&n.flags&&!wo(n)&&0===Bo(n).length&&cs(n,0)&&!cs(n,1)||3145728&n.flags&&e.every(n.types,kd)||!1}function Nd(n,t,r){if(n===t)return!0;var a=R(n)+","+R(t),i=Vt.get(a);if(void 0!==i&&(2!==i||!r))return 1===i;if(!(n.escapedName===t.escapedName&&256&n.flags&&256&t.flags))return Vt.set(a,3),!1;for(var o=hi(t),s=0,l=Bo(hi(n));s<l.length;s++){var c=l[s];if(8&c.flags){var d=as(o,c.escapedName);if(!(d&&8&d.flags))return r?(r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(c),Ta(Hi(t),void 0,64)),Vt.set(a,3)):Vt.set(a,2),!1}}return Vt.set(a,1),!0}function wd(e,n,t,r){var a=e.flags,i=n.flags;if(3&i||131072&a||e===_e)return!0;if(131072&i)return!1;if(132&a&&4&i)return!0;if(128&a&&1024&a&&128&i&&!(1024&i)&&e.value===n.value)return!0;if(296&a&&8&i)return!0;if(256&a&&1024&a&&256&i&&!(1024&i)&&e.value===n.value)return!0;if(2112&a&&64&i)return!0;if(528&a&&16&i)return!0;if(12288&a&&4096&i)return!0;if(32&a&&32&i&&Nd(e.symbol,n.symbol,r))return!0;if(1024&a&&1024&i){if(1048576&a&&1048576&i&&Nd(e.symbol,n.symbol,r))return!0;if(2944&a&&2944&i&&e.value===n.value&&Nd(zr(e.symbol),zr(n.symbol),r))return!0}if(32768&a&&(!B||49152&i))return!0;if(65536&a&&(!B||65536&i))return!0;if(524288&a&&67108864&i)return!0;if(t===Pt||t===Gt){if(1&a)return!0;if(264&a&&!(1024&a)&&(32&i||256&i&&1024&i))return!0}return!1}function Pd(e,n,t){if(Mc(e)&&(e=e.regularType),Mc(n)&&(n=n.regularType),e===n||t===Gt&&!(131072&n.flags)&&wd(n,e,t)||t!==Ft&&wd(e,n,t))return!0;if(524288&e.flags&&524288&n.flags){var r=t.get(Xd(e,n,t));if(void 0!==r)return 1===r}return!!(66846720&e.flags||66846720&n.flags)&&Fd(e,n,t,void 0)}function Gd(n,t){return 4096&e.getObjectFlags(n)&&!mf(t.escapedName)}function Fd(n,t,r,a,i,s,l){var c,d,u,m,p,f,g=0,_=0,y=0,v=!1;e.Debug.assert(r!==Ft||!a,"no error reporting in identity checking");var h=R(n,t,!!a,i);if(v){var b=Ht(a,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Ta(n),Ta(t));l&&(l.errors||(l.errors=[])).push(b)}else if(c){if(s){var E=s();E&&(e.concatenateDiagnosticMessageChains(E,c),c=E)}var T=void 0;if(i&&a&&!h&&n.symbol){var S=tr(n.symbol);if(S.originatingImport&&!e.isImportCall(S.originatingImport)&&Fd(hi(S.target),t,r,void 0)){var L=e.createDiagnosticForNode(S.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);T=e.append(T,L)}}b=e.createDiagnosticForNodeFromMessageChain(a,c,T),d&&e.addRelatedInfo.apply(void 0,o([b],d)),l&&(l.errors||(l.errors=[])).push(b),l&&l.skipLogging||It.add(b)}return a&&l&&l.skipLogging&&0===h&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==h;function A(n,t,r,i,o){e.Debug.assert(!!a),c=e.chainDiagnosticMessages(c,n,t,r,i,o)}function C(n,t,a){var i=Sa(t,a),o=i[0],s=i[1];262144&a.flags&&void 0!==a.immediateBaseConstraint&&gd(t,a.immediateBaseConstraint)&&A(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,o,s,Ta(a.immediateBaseConstraint)),n||(n=r===Gt?e.Diagnostics.Type_0_is_not_comparable_to_type_1:o===s?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),A(n,o,s)}function D(n,t,r){if(ou(n)){var a=n.target;return a&&a.readonly&&su(t)&&(!tu(t)||_u(t)&&!t.target.readonly)?(r&&A(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ta(n),Ta(t)),!1):au(t)}return ou(t)?au(n):!(tu(n)&&nu(t)&&!tu(t)&&(r&&A(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ta(n),Ta(t)),1))}function R(n,t,i,o,s){if(void 0===i&&(i=!1),Mc(n)&&(n=n.regularType),Mc(t)&&(t=t.regularType),33554432&n.flags&&(n=n.substitute),33554432&t.flags&&(t=t.typeVariable),25165824&n.flags&&(n=ac(n,!1)),25165824&t.flags&&(t=ac(t,!0)),1048576&t.flags&&524288&n.flags&&t.types.length<=3&&N_(t,98304)){var l=qm(t,-98305);1179648&l.flags||(t=l)}if(n===t)return-1;if(r===Ft)return function(e,n){var t,r=e.flags&n.flags;return 524288&r||8388608&r||16777216&r||4194304&r||33554432&r?w(e,n,!1,!1):3145728&r&&(t=M(e,n))&&(t&=M(n,e))?t:0}(n,t);if(r===Gt&&!(131072&t.flags)&&wd(t,n,r)||wd(n,t,r,i?A:void 0))return-1;var d=!!(4096&e.getObjectFlags(n)),u=!s&&am(n)&&32768&e.getObjectFlags(n);if(u&&function n(t,i,o,s){if(!j&&16384&e.getObjectFlags(i))return!1;if(Rf(i)){var l=!!(4096&e.getObjectFlags(t));if((r===Pt||r===Gt)&&(Bm(tn,i)||!l&&Id(i)))return!1;if(o)return n(t,o,void 0,s);for(var c=function(n){if(function(e,n){return e.valueDeclaration&&n.valueDeclaration&&e.valueDeclaration.parent===n.valueDeclaration}(n,t.symbol)&&!Df(i,n.escapedName,l)){if(s){var r=Km(i,Rf);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent))A(e.Diagnostics.Property_0_does_not_exist_on_type_1,ba(n),Ta(r));else{var o=t.symbol&&e.firstOrUndefined(t.symbol.declarations),c=void 0;if(n.valueDeclaration&&e.findAncestor(n.valueDeclaration,function(e){return e===o})){var d=n.valueDeclaration;e.Debug.assertNode(d,e.isObjectLiteralElementLike),a=d;var u=d.name;e.isIdentifier(u)&&(c=zf(u,r))}void 0!==c?A(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ba(n),Ta(r),c):A(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ba(n),Ta(r))}}return{value:!0}}},d=0,u=Bo(t);d<u.length;d++){var m=u[d],p=c(m);if("object"==typeof p)return p.value}}return!1}(n,t,1048576&t.flags?O(n,t):void 0,i))return i&&C(o,n,t),0;var m=r!==Gt&&!s&&2752508&n.flags&&n!==tn&&2621440&t.flags&&Bd(t)&&(Bo(n).length>0||kh(n));if(m&&!function(e,n,t){for(var r=0,a=Bo(e);r<a.length;r++){var i=a[r];if(Df(n,i.escapedName,t))return!0}return!1}(n,t,d)){if(i){var p=os(n,0),g=os(n,1);p.length>0&&R(Rs(p[0]),t,!1)||g.length>0&&R(Rs(g[0]),t,!1)?A(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ta(n),Ta(t)):A(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ta(n),Ta(t))}return 0}var _=0,y=c,v=!!s;if(1048576&n.flags)_=r===Gt?k(n,t,i&&!(131068&n.flags)):function(e,n,t){for(var r=-1,a=0,i=e.types;a<i.length;a++){var o=i[a],s=R(o,n,t);if(!s)return 0;r&=s}return r}(n,t,i&&!(131068&n.flags));else{if(1048576&t.flags){if((_=I(Ru(n),t,i&&!(131068&n.flags)&&!(131068&t.flags)))&&(u||m)&&!H(n,O(n,t)||function(e){if(N_(e,67108864)){var n=Km(e,function(e){return!(131068&e.flags)});if(!(131072&n.flags))return n}return e}(t),i,void 0,v))return 0}else if(2097152&t.flags){if(v=!0,(_=function(e,n,t){for(var r=-1,a=0,i=n.types;a<i.length;a++){var o=i[a],s=R(e,o,t,void 0,!0);if(!s)return 0;r&=s}return r}(Ru(n),t,i))&&(u||m)&&!H(n,t,i,void 0,!1))return 0}else 2097152&n.flags&&(_=k(n,t,!1));!_&&(66846720&n.flags||66846720&t.flags)&&(_=w(n,t,i,v))&&(c=y)}if(!_&&2097152&n.flags){var h=function(n,t){for(var r,a=!1,i=0,o=n.types;i<o.length;i++)if(63176704&(d=o[i]).flags){for(var s=Uo(d);s&&21233664&s.flags;)s=Uo(s);s&&(r=e.append(r,s))}else 67238908&d.flags&&(a=!0);if(r&&(t||a)){if(a)for(var l=0,c=n.types;l<c.length;l++){var d;67238908&(d=c[l]).flags&&(r=e.append(r,d))}return Kl(r)}}(n,!!(1048576&t.flags));h&&(_=R(h,t,i,void 0,v))&&(c=y)}if(!_&&i){var b=f;if(f=void 0,524288&n.flags&&524288&t.flags){var E=c;D(n,t,i),c!==E&&(b=c)}if(524288&n.flags&&131068&t.flags)!function(n,t){var r=Ta(n),a=Ta(t);(cn===n&&Se===t||dn===n&&Le===t||un===n&&Me===t||hl(!1)===n&&Ie===t)&&A(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,r)}(n,t);else if(n.symbol&&524288&n.flags&&tn===n)A(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(d&&2097152&t.flags){var T=t.types,S=yf(x.IntrinsicAttributes,a),L=yf(x.IntrinsicClassAttributes,a);if(S!==ye&&L!==ye&&(e.contains(T,S)||e.contains(T,L)))return _}if(!o&&b)return _;C(o,n,t)}return _}function M(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(n,t,r){var a=t.types;if(1048576&t.flags&&Ol(a,n))return-1;for(var i=0,o=a;i<o.length;i++){var s=R(n,o[i],!1);if(s)return s}return r&&R(n,O(n,t)||function(n,t){var r=e.getObjectFlags(n);if(20&r&&1048576&t.flags)return e.find(t.types,function(t){if(524288&t.flags){var a=r&e.getObjectFlags(t);if(4&a)return n.target===t.target;if(16&a)return!!n.aliasSymbol&&n.aliasSymbol===t.aliasSymbol}return!1})}(n,t)||function(n,t){if(128&e.getObjectFlags(n)&&Um(t,au))return e.find(t.types,function(e){return!au(e)})}(n,t)||function(n,t){var r=0;if(os(n,r).length>0||os(n,r=1).length>0)return e.find(t.types,function(e){return os(e,r).length>0})}(n,t)||function(n,t){for(var r,a=0,i=0,o=t.types;i<o.length;i++){var s=o[i],l=Kl([Jl(n),Jl(s)]);if(4194304&l.flags)r=s,a=1/0;else if(1048576&l.flags){var c=e.length(e.filter(l.types,cu));c>=a&&(r=s,a=c)}else cu(l)&&1>=a&&(r=s,a=1)}return r}(n,t)||a[a.length-1],!0),0}function O(n,t){if(1048576&t.flags&&2621440&n.flags){var r=Bo(n);if(r){var a=hm(r,t);if(a)return Vd(t,e.map(a,function(e){return[function(){return hi(e)},e.escapedName]}),R)}}}function k(e,n,t){var r=e.types;if(1048576&e.flags&&Ol(r,n))return-1;for(var a=r.length,i=0;i<a;i++){var o=R(r[i],n,t&&i===a-1);if(o)return o}return 0}function N(e,n){for(var t=0;t<n.length;t++){var r=n[t];8&r&&nd(e[t],G),16&r&&nd(e[t],F)}}function w(n,t,a,i){if(v)return 0;var o=Xd(n,t,r),s=r.get(o);if(void 0!==s&&(!a||2!==s))return Hn&&(17301504&n.flags&&n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol&&N(n.aliasTypeArguments,Hd(n.aliasSymbol)),4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&n.target===t.target&&e.length(n.typeArguments)&&N(n.typeArguments,jd(n.target))),1===s?-1:0;if(u){for(var l=0;l<g;l++)if(o===u[l])return 1;if(100===_)return v=!0,0}else u=[],m=[],p=[];var d=g;u[g]=o,g++,m[_]=n,p[_]=t,_++;var f=y;1&y||!Qd(n,m,_)||(y|=1),2&y||!Qd(t,p,_)||(y|=2);var h=3!==y?function(n,t,a,i){var o,s,l=n.flags&t.flags;if(r===Ft&&!(524288&l)){if(4194304&l)return R(n.type,t.type,!1);var d=0;return 8388608&l&&(d=R(n.objectType,t.objectType,!1))&&(d&=R(n.indexType,t.indexType,!1))?d:16777216&l&&n.root.isDistributive===t.root.isDistributive&&(d=R(n.checkType,t.checkType,!1))&&(d&=R(n.extendsType,t.extendsType,!1))&&(d&=R(fc(n),fc(t),!1))&&(d&=R(gc(n),gc(t),!1))?d:33554432&l?R(n.substitute,t.substitute,!1):0}var u,m=!1,p=c;if(17301504&n.flags&&n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol&&!n.aliasTypeArgumentsContainsMarker&&!t.aliasTypeArgumentsContainsMarker){var f=Hd(n.aliasSymbol),g=j(n.aliasTypeArguments,t.aliasTypeArguments,f,i);if(void 0!==g)return g}if(262144&t.flags){if(32&e.getObjectFlags(n)&&R(Jl(t),Co(n))&&!(4&Oo(n))){var _=Do(n),y=lc(t,xo(n));if(o=R(_,y,a))return o}}else if(4194304&t.flags){if(4194304&n.flags&&(o=R(t.type,n.type,!1)))return o;var v=Ko(t.type);if(v&&-1===R(n,Jl(v,t.stringsOnly),a))return-1}else if(8388608&t.flags){if(r!==Ft){var h=t.objectType,b=t.indexType,E=zo(h)||h,T=zo(b)||b;if(!nc(E)&&!tc(T)){var S=2|(E!==h?1:0),v=cc(E,T,void 0,S);if(v&&(o=R(n,v,a)))return o}}}else if(wo(t)){var L=Do(t),A=Oo(t);if(!(8&A)){if(8388608&L.flags&&L.objectType===n&&L.indexType===xo(t))return-1;if(!wo(n)){var x=Co(t),C=Jl(n,void 0,!0),D=4&A,M=D?vo(x,C):void 0;if(D?!(131072&M.flags):R(x,C)){var I=xo(t),O=M?Kl([M,I]):I,y=lc(n,O),_=Do(t);if(o=R(y,_,a))return o}s=c,c=p}}}if(8650752&n.flags)if(8388608&n.flags&&8388608&t.flags){if((o=R(n.objectType,t.objectType,a))&&(o&=R(n.indexType,t.indexType,a)),o)return c=p,o}else{var v=Uo(n);if(!v||262144&n.flags&&1&v.flags){if(o=R(Ue,qm(t,-67108865)))return c=p,o}else{if(o=R(v,t,!1,void 0,i))return c=p,o;if(o=R(so(v,n),t,a,void 0,i))return c=p,o}}else if(4194304&n.flags){if(o=R(Ve,t,a))return c=p,o}else if(16777216&n.flags)if(16777216&t.flags){if(dd(n.extendsType,t.extendsType)&&(R(n.checkType,t.checkType)||R(t.checkType,n.checkType))&&((o=R(fc(n),fc(t),a))&&(o&=R(gc(n),gc(t),a)),o))return c=p,o}else{var k=Wo(n);if(k&&(o=R(k,t,a)))return c=p,o;var N=jo(n);if(N&&(o=R(N,t,a)))return c=p,o}else{if(r!==wt&&(u=t,32&e.getObjectFlags(u)&&4&Oo(u))&&Id(n))return-1;if(wo(t))return wo(n)&&(o=function(e,n,t){if(r===Gt||(r===Ft?Oo(e)===Oo(n):No(e)<=No(n))){var a,i=Co(n),o=nd(Co(e),No(e)<0?G:F);if(a=R(i,o,t)){var s=Vc([xo(e)],[xo(n)]);return a&R(nd(Do(e),s),Do(n),t)}}return 0}(n,t,a))?(c=p,o):0;var w=!!(131068&n.flags);if(r!==Ft)n=es(n);else if(wo(n))return 0;if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&n.target===t.target&&!(8192&e.getObjectFlags(n)||8192&e.getObjectFlags(t))){var f=jd(n.target),g=j(n.typeArguments,t.typeArguments,f,i);if(void 0!==g)return g}else{if(tu(t)?nu(n)||_u(n):nu(t)&&_u(n)&&!n.target.readonly)return r!==Ft?R(ds(n,1)||fe,ds(t,1)||fe,a):0;if(r===wt&&Id(t)&&32768&e.getObjectFlags(t)&&!Id(n))return 0}if(2621440&n.flags&&524288&t.flags){var P=a&&c===p&&!w;if((o=H(n,t,P,void 0,i))&&(o&=K(n,t,0,P))&&(o&=K(n,t,1,P))&&(o&=z(n,t,0,w,P))&&(o&=z(n,t,1,w,P)),m&&o)c=s||c||p;else if(o)return o}if(2621440&n.flags&&1048576&t.flags){var V=qm(t,524288);if(1048576&V.flags){var B=function(n,t){var r=hm(Go(n),t);if(!r)return 0;for(var a=1,i=0,o=r;i<o.length;i++){var s=o[i];if((a*=jm(hi(s)))>25)return 0}for(var l=new Array(r.length),c=e.createUnderscoreEscapedMap(),d=0;d<r.length;d++){var s=r[d],u=hi(s);l[d]=1048576&u.flags?u.types:[u],c.set(s.escapedName,!0)}for(var m=[],p=function(a){var i=!1;e:for(var o=0,s=t.types;o<s.length;o++){for(var l=s[o],c=function(e){var i=r[e],o=Fo(l,i.escapedName);if(!o)return"continue-outer";if(i===o)return"continue";var s=U(n,t,i,o,function(n){return a[e]},!1,!1);return s?void 0:"continue-outer"},d=0;d<r.length;d++){var u=c(d);switch(u){case"continue-outer":continue e}}e.pushIfUnique(m,l,e.equateValues),i=!0}if(!i)return{value:0}},f=0,g=e.cartesianProduct(l);f<g.length;f++){var _=g[f],y=p(_);if("object"==typeof y)return y.value}for(var v=-1,h=0,b=m;h<b.length;h++){var E=b[h];if((v&=H(n,E,!1,c,!1))&&(v&=K(n,E,0,!1))&&(v&=K(n,E,1,!1))&&(v&=z(n,E,0,!1,!1))&&(v&=z(n,E,1,!1,!1)),!v)return v}return v}(n,V);if(B)return B}}}return 0;function j(n,t,i,l){if(o=function(n,t,a,i,o){if(void 0===n&&(n=e.emptyArray),void 0===t&&(t=e.emptyArray),void 0===a&&(a=e.emptyArray),n.length!==t.length&&r===Ft)return 0;for(var s=n.length<=t.length?n.length:t.length,l=-1,c=0;c<s;c++){var d=c<a.length?a[c]:1,u=7&d;if(4!==u){var m=n[c],p=t[c],f=-1;if(8&d?f=r===Ft?R(m,p,!1):ud(m,p):1===u?f=R(m,p,i,void 0,o):2===u?f=R(p,m,i,void 0,o):3===u?(f=R(p,m,!1))||(f=R(m,p,i,void 0,o)):(f=R(m,p,i,void 0,o))&&(f&=R(p,m,i,void 0,o)),!f)return 0;l&=f}}return l}(n,t,i,a,l))return o;if(e.some(i,function(e){return!!(24&e)}))return s=void 0,void(c=p);var d=t&&function(e,n){for(var t=0;t<n.length;t++)if(1==(7&n[t])&&16384&e[t].flags)return!0;return!1}(t,i);if(m=!d,i!==e.emptyArray&&!d){if(m&&(!a||!e.some(i,function(e){return 0==(7&e)})))return 0;s=c,c=p}}}(n,t,a,i):1;if(y=f,_--,h){if(-1===h||0===_){for(l=d;l<g;l++)r.set(u[l],1);g=d}}else r.set(o,a?3:2),g=d;return h}function G(e){return!Hn||e!==Ye&&e!==Qe&&e!==Kn||Hn(!1),e}function F(e){return!Hn||e!==Ye&&e!==Qe&&e!==Kn||Hn(!0),e}function V(e,n){if(!n||0===e.length)return e;for(var t,r=0;r<e.length;r++)n.has(e[r].escapedName)?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t||e}function U(n,t,a,i,o,s,l){var c=e.getDeclarationModifierFlagsFromSymbol(a),d=e.getDeclarationModifierFlagsFromSymbol(i);if(8&c||8&d){var u=a.valueDeclaration!==i.valueDeclaration;if(1024&e.getCheckFlags(a)&&u)return s&&A(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,ba(a),Ta(n)),0;if(u)return s&&(8&c&&8&d?A(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,ba(i)):A(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,ba(i),Ta(8&c?n:t),Ta(8&c?t:n))),0}else if(16&d){if(!function(n,t){return!Jd(t,function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t))&&(r=n,a=Yd(t),!Jd(r,function(e){var n=Yd(e);return!!n&&Ti(n,a)}));var r,a})}(a,i))return s&&A(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ba(i),Ta(Yd(a)||n),Ta(Yd(i)||t)),0}else if(16&c)return s&&A(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,ba(i),Ta(n),Ta(t)),0;var m=function(n,t,r,a,i){var o=B&&!!(48&e.getCheckFlags(t)),s=r(n);if(65536&e.getCheckFlags(t)&&!tr(t).type){var l=tr(t);e.Debug.assertDefined(l.deferralParent),e.Debug.assertDefined(l.deferralConstituents);for(var c=!!(1048576&l.deferralParent.flags),d=c?0:-1,u=0,m=l.deferralConstituents;u<m.length;u++){var p=R(s,m[u],!1,void 0,!c);if(c){if(p)return p}else{if(!p)return R(s,Ja(hi(t),o),a);d&=p}}return c&&!d&&o&&(d=R(s,he)),c&&!d&&a?R(s,Ja(hi(t),o),a):d}return R(s,Ja(hi(t),o),a,void 0,i)}(a,i,o,s,l);return m?r!==Gt&&16777216&a.flags&&!(16777216&i.flags)?(s&&A(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,ba(i),Ta(n),Ta(t)),0):m:(s&&A(e.Diagnostics.Types_of_property_0_are_incompatible,ba(i)),0)}function H(n,t,a,s,l){if(r===Ft)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;var r=V(Go(e),t),a=V(Go(n),t);if(r.length!==a.length)return 0;for(var i=-1,o=0,s=r;o<s.length;o++){var l=s[o],c=Fo(n,l.escapedName);if(!c)return 0;var d=Zd(l,c,R);if(!d)return 0;i&=d}return i}(n,t,s);var u,m=r===wt&&!am(n)&&!iu(n)&&!_u(n),p=Zu(n,t,m,!1);if(p){if(a){var g=e.arrayFrom(Qu(n,t,m,!1)),_=!1;if((!i||i.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&i.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(_=!0),1===g.length){var y=ba(p);A.apply(void 0,o([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],Sa(n,t))),e.length(p.declarations)&&(u=e.createDiagnosticForNode(p.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!c),d?d.push(u):d=[u]),_&&(f=c)}else D(n,t,!1)&&(g.length>5?A(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ta(n),Ta(t),e.map(g.slice(0,4),function(e){return ba(e)}).join(", "),g.length-4):A(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ta(n),Ta(t),e.map(g,function(e){return ba(e)}).join(", ")),_&&(f=c))}return 0}if(am(t))for(var v=0,h=V(Bo(n),s);v<h.length;v++)if(!Fo(t,(O=h[v]).escapedName)){var b=hi(O);if(b!==he&&b!==be)return a&&A(e.Diagnostics.Property_0_does_not_exist_on_type_1,ba(O),Ta(t)),0}var E=-1;if(_u(t)){var T=yu(t);if(T){if(!_u(n))return 0;var S=yu(n);if(S&&!R(S,T,a))return a&&A(e.Diagnostics.Rest_signatures_are_incompatible),0;for(var L=Qs(t)-1,x=Qs(n)-(S?1:0),C=L;C<x;C++){if(!(N=R(n.typeArguments[C],T,a)))return a&&A(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+C),0;E&=N}}}for(var M=0,I=V(1048576&t.flags?Vo(t):Bo(t),s);M<I.length;M++){var O,k=I[M];if(!(4194304&k.flags)&&(O=as(n,k.escapedName))&&O!==k){var N;if(!(N=U(n,t,O,k,hi,a,l)))return 0;E&=N}}return E}function K(n,t,a,i){if(r===Ft)return function(e,n,t){var r=os(e,t),a=os(n,t);if(r.length!==a.length)return 0;for(var i=-1,o=0;o<r.length;o++){var s=$d(r[o],a[o],!1,!1,!1,R);if(!s)return 0;i&=s}return i}(n,t,a);if(t===qe||n===qe)return-1;var o=n.symbol&&Hg(n.symbol.valueDeclaration),s=t.symbol&&Hg(t.symbol.valueDeclaration),l=os(n,o&&1===a?0:a),d=os(t,s&&1===a?0:a);if(1===a&&l.length&&d.length){if(e.isAbstractConstructorType(n)&&!e.isAbstractConstructorType(t))return i&&A(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(n,t,r){if(!n.declaration||!t.declaration)return!0;var a=e.getSelectedModifierFlags(n.declaration,24),i=e.getSelectedModifierFlags(t.declaration,24);return 8===i||(16===i&&8!==a||(16!==i&&!a||(r&&A(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,xa(a),xa(i)),!1)))}(l[0],d[0],i))return 0}var u=-1,m=c;if(64&e.getObjectFlags(n)&&64&e.getObjectFlags(t)&&n.symbol===t.symbol)for(var p=0;p<d.length;p++){if(!(E=W(l[p],d[p],!0,i)))return 0;u&=E}else if(1===l.length&&1===d.length){var f=r===Gt||!!P.noStrictGenericChecks;u=W(l[0],d[0],f,i)}else e:for(var g=0,_=d;g<_.length;g++){for(var y=_[g],v=i,h=0,b=l;h<b.length;h++){var E;if(E=W(b[h],y,!0,v)){u&=E,c=m;continue e}v=!1}return v&&A(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Ta(n),Ea(y,void 0,void 0,a)),0}return u}function W(e,n,t,r){return Rd(t?Ps(e):e,t?Ps(n):n,0,!1,r,A,R)}function q(n,t,r){var a=R(n.type,t.type,r);return!a&&r&&A(e.Diagnostics.Index_signatures_are_incompatible),a}function z(n,t,a,i,o){if(r===Ft)return function(e,n,t){var r=cs(n,t),a=cs(e,t);return a||r?a&&r&&a.isReadonly===r.isReadonly?R(a.type,r.type):0:-1}(n,t,a);var s=cs(t,a);if(!s||1&s.type.flags&&!i)return-1;var l=cs(n,a)||1===a&&cs(n,0);if(l)return q(l,s,o);if(wo(n))return 0===a&&R(Do(n),s.type,o);if(Cu(n)){var c=-1;if(0===a){var d=cs(n,1);d&&(c=q(d,s,o))}return c&&(c&=function(n,t,r,a){for(var i=-1,o=0,s=Go(n);o<s.length;o++){var l=s[o];if(!Gd(n,l)&&!(l.nameType&&8192&l.nameType.flags)&&(0===r||of(l.escapedName))){var c=R(hi(l),t,a);if(!c)return a&&A(e.Diagnostics.Property_0_is_incompatible_with_index_signature,ba(l)),0;i&=c}}return i}(n,s.type,a,o)),c}return o&&A(e.Diagnostics.Index_signature_is_missing_in_type_0,Ta(n)),0}}function Vd(e,n,t,r){for(var a=e.types.map(function(e){}),i=0,o=n;i<o.length;i++)for(var s=o[i],l=s[0],c=s[1],d=0,u=0,m=e.types;u<m.length;u++){var p=Fa(m[u],c);p&&t(l(),p)?a[d]=void 0===a[d]||a[d]:a[d]=!1,d++}var f=a.indexOf(!0);return-1===f||-1!==a.indexOf(!0,f+1)?r:e.types[f]}function Bd(n){if(524288&n.flags){var t=Po(n);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo&&t.properties.length>0&&e.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&n.flags)&&e.every(n.types,Bd)}function Ud(n,t,r){var a=Js(n,e.map(n.typeParameters,function(e){return e===t?r:e}));return a.objectFlags|=8192,a}function Hd(e){var n=tr(e);return Kd(n.typeParameters,n,function(t,r,a){var i=$s(e,Pc(n.typeParameters,Fc(r,a)));return i.aliasTypeArgumentsContainsMarker=!0,i})}function Kd(n,t,r){void 0===n&&(n=e.emptyArray);var a=t.variances;if(!a){t.variances=e.emptyArray,a=[];for(var i=function(e){var n=!1,i=!1,o=Hn;Hn=function(e){return e?i=!0:n=!0};var s=r(t,e,Ye),l=r(t,e,Qe),c=(gd(l,s)?1:0)|(gd(s,l)?2:0);3===c&&gd(r(t,e,Kn),s)&&(c=4),Hn=o,(n||i)&&(n&&(c|=8),i&&(c|=16)),a.push(c)},o=0,s=n;o<s.length;o++)i(s[o]);t.variances=a}return a}function jd(n){return n===sn||n===ln||8&n.objectFlags?e.emptyArray:Kd(n.typeParameters,n,Ud)}function Wd(e){return 262144&e.flags&&!Ho(e)}function qd(n){return!!(4&e.getObjectFlags(n))&&e.some(n.typeArguments,function(e){return Wd(e)||qd(e)})}function zd(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(Wd(o)){var s=n.indexOf(o);s<0&&(s=n.length,n.push(o)),r+="="+s}else t<4&&qd(o)?r+="<"+zd(o,n,t+1)+">":r+="-"+o.id}return r}function Xd(e,n,t){if(t===Ft&&e.id>n.id){var r=e;e=n,n=r}if(qd(e)&&qd(n)){var a=[];return zd(e,a)+","+zd(n,a)}return e.id+","+n.id}function Jd(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,a=n.containingType.types;r<a.length;r++){var i=as(a[r],n.escapedName),o=i&&Jd(i,t);if(o)return o}}function Yd(e){return e.parent&&32&e.parent.flags?Hi(zr(e)):void 0}function Qd(e,n,t){if(t>=5&&524288&e.flags){var r=e.symbol;if(r)for(var a=0,i=0;i<t;i++){var o=n[i];if(524288&o.flags&&o.symbol===r&&++a>=5)return!0}}return!1}function Zd(n,t,r){if(n===t)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(n);if(a!==(24&e.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(a){if(Zv(n)!==Zv(t))return 0}else if((16777216&n.flags)!=(16777216&t.flags))return 0;return R_(n)!==R_(t)?0:r(hi(n),hi(t))}function $d(n,t,r,a,i,o){if(n===t)return-1;if(!function(e,n,t){var r=a_(e),a=a_(n),i=i_(e),o=i_(n),s=o_(e),l=o_(n);return r===a&&i===o&&s===l||!!(t&&i<=o)}(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var s=Vc(n.typeParameters,t.typeParameters),l=0;l<t.typeParameters.length;l++)if(!((g=n.typeParameters[l])===(p=t.typeParameters[l])||o(nd(Ws(g),s)||ve,Ws(p)||ve)&&o(nd(Zo(g),s)||ve,Zo(p)||ve)))return 0;n=qc(n,s,!0)}var c=-1;if(!a){var d=xs(n);if(d){var u=xs(t);if(u){if(!(f=o(d,u)))return 0;c&=f}}}var m=a_(t);for(l=0;l<m;l++){var p,f,g=n_(n,l);if(!(f=o(p=n_(t,l),g)))return 0;c&=f}if(!i){var _=Ds(n),y=Ds(t);c&=void 0!==_||void 0!==y?function(e,n,t){return void 0!==e&&void 0!==n&&Fl(e,n)?t(e.type,n.type):0}(_,y,o):o(Rs(n),Rs(t))}return c}function eu(n){return function(e){for(var n,t=0,r=e;t<r.length;t++){var a=r[t],i=uu(a);if(n||(n=i),i===a||i!==n)return!1}return!0}(n)?Gl(n):e.reduceLeft(n,function(e,n){return fd(e,n)?n:e})}function nu(n){return!!(4&e.getObjectFlags(n))&&(n.target===sn||n.target===ln)}function tu(n){return!!(4&e.getObjectFlags(n))&&n.target===ln}function ru(e){return nu(e)&&e.typeArguments?e.typeArguments[0]:void 0}function au(e){return nu(e)||!(98304&e.flags)&&gd(e,_n)}function iu(e){var n=nu(e)?e.typeArguments[0]:void 0;return n===be||n===Pe}function ou(e){return _u(e)||!!as(e,"0")}function su(e){return au(e)||ou(e)}function lu(e){return!(240512&e.flags)}function cu(e){return!!(109440&e.flags)}function du(n){return!!(16&n.flags)||(1048576&n.flags?!!(1024&n.flags)||e.every(n.types,cu):cu(n))}function uu(n){return 1024&n.flags?Fi(n):128&n.flags?Se:256&n.flags?Le:2048&n.flags?Ae:512&n.flags?Me:1048576&n.flags?Gl(e.sameMap(n.types,uu)):n}function mu(n){return 1024&n.flags&&Mc(n)?Fi(n):128&n.flags&&Mc(n)?Se:256&n.flags&&Mc(n)?Le:2048&n.flags&&Mc(n)?Ae:512&n.flags&&Mc(n)?Me:1048576&n.flags?Gl(e.sameMap(n.types,mu)):n}function pu(n){return 8192&n.flags?Ie:1048576&n.flags?Gl(e.sameMap(n.types,pu)):n}function fu(e,n){return Y_(e,n)||(e=pu(mu(e))),e}function gu(e,n,t,r){return e&&cu(e)&&(e=fu(e,n?Vv(t,n,r):void 0)),e}function _u(n){return!!(4&e.getObjectFlags(n)&&8&n.target.objectFlags)}function yu(e){return e.target.hasRestElement?e.typeArguments[e.target.typeParameters.length-1]:void 0}function vu(e){return Qs(e)-(e.target.hasRestElement?1:0)}function hu(e){return"0"===e.value.base10Value}function bu(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=Eu(r[t]);return n}function Eu(e){return 1048576&e.flags?bu(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?hu(e)?2048:0:512&e.flags?e===xe||e===Ce?512:0:117724&e.flags}function Tu(e){return 117632&Eu(e)?Km(e,function(e){return!(117632&Eu(e))}):e}function Su(e){return 4&e.flags?ct:8&e.flags?dt:64&e.flags?ut:e===Ce||e===xe||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&hu(e)?e:ke}function Lu(e,n){var t=n&~e.flags&98304;return 0===t?e:Gl(32768===t?[e,he]:65536===t?[e,Ee]:[e,he,Ee])}function Au(n){return e.Debug.assert(B),32768&n.flags?n:Gl([n,he])}function xu(e){return B?function(e){return yn||(yn=_l("NonNullable",524288,void 0)||me),yn!==me?$s(yn,[e]):Am(e,2097152)}(e):e}function Cu(e){return e.symbol&&0!=(7040&e.symbol.flags)&&!kh(e)}function Du(n,t){var r=qt(n.flags,n.escapedName,8&e.getCheckFlags(n));return r.declarations=n.declarations,r.parent=n.parent,r.type=t,r.target=n,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),n.nameType&&(r.nameType=n.nameType),r}function Ru(n){if(!(am(n)&&32768&e.getObjectFlags(n)))return n;var t=n.regularType;if(t)return t;var r=n,a=function(n,t){for(var r=e.createSymbolTable(),a=0,i=Go(n);a<i.length;a++){var o=i[a],s=hi(o),l=t(s);r.set(o.escapedName,l===s?o:Du(o,l))}return r}(n,Ru),i=sa(r.symbol,a,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return i.flags=r.flags,i.objectFlags|=-32769&r.objectFlags,n.regularType=i,i}function Mu(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedProperties:void 0}}function Iu(n){if(!n.resolvedProperties){for(var t=e.createMap(),r=0,a=function e(n){if(!n.siblings){for(var t=[],r=0,a=e(n.parent);r<a.length;r++){var i=a[r];if(am(i)){var o=Fo(i,n.propertyName);o&&Um(hi(o),function(e){t.push(e)})}}n.siblings=t}return n.siblings}(n);r<a.length;r++){var i=a[r];if(am(i)&&!(1024&e.getObjectFlags(i)))for(var o=0,s=Bo(i);o<s.length;o++){var l=s[o];t.set(l.escapedName,l)}}n.resolvedProperties=e.arrayFrom(t.values())}return n.resolvedProperties}function Ou(e,n){if(!(4&e.flags))return e;var t=hi(e),r=wu(t,n&&Mu(n,e.escapedName,void 0));return r===t?e:Du(e,r)}function ku(e){var n=ue.get(e.escapedName);if(n)return n;var t=Du(e,he);return t.flags|=16777216,ue.set(e.escapedName,t),t}function Nu(e){return wu(e,void 0)}function wu(n,t){if(786432&e.getObjectFlags(n)){if(void 0===t&&n.widened)return n.widened;var r=void 0;if(98304&n.flags)r=fe;else if(am(n))r=function(n,t){for(var r=e.createSymbolTable(),a=0,i=Go(n);a<i.length;a++){var o=i[a];r.set(o.escapedName,Ou(o,t))}if(t)for(var s=0,l=Iu(t);s<l.length;s++)o=l[s],r.has(o.escapedName)||r.set(o.escapedName,ku(o));var c=cs(n,0),d=cs(n,1),u=sa(n.symbol,r,e.emptyArray,e.emptyArray,c&&Hs(Nu(c.type),c.isReadonly),d&&Hs(Nu(d.type),d.isReadonly));return u.objectFlags|=1064960&e.getObjectFlags(n),u}(n,t);else if(1048576&n.flags){var a=t||Mu(void 0,void 0,n.types),i=e.sameMap(n.types,function(e){return 98304&e.flags?e:wu(e,a)});r=Gl(i,e.some(i,Id)?2:1)}else 2097152&n.flags?r=Kl(e.sameMap(n.types,Nu)):(nu(n)||_u(n))&&(r=Js(n.target,e.sameMap(n.typeArguments,Nu)));return r&&void 0===t&&(n.widened=r),r||n}return n}function Pu(n,t,r){var a=Ta(Nu(t));if(!e.isInJSFile(n)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),P)){var i;switch(n.kind){case 205:case 155:case 154:i=j?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 152:var o=n;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(sr(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o);return void jt(j,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}i=n.dotDotDotToken?j?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:j?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 187:if(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!j)return;break;case 295:return void Ht(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);case 240:case 157:case 156:case 159:case 160:case 197:case 198:if(j&&!n.name)return void Ht(n,1===r?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);i=j?1===r?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 182:return void(j&&Ht(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=j?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}jt(j,n,i,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}}function Gu(n,r,a){t&&j&&262144&e.getObjectFlags(r)&&(function n(t){var r=!1;if(262144&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,Id))r=!0;else for(var a=0,i=t.types;a<i.length;a++)n(u=i[a])&&(r=!0);if(nu(t)||_u(t))for(var o=0,s=t.typeArguments;o<s.length;o++)n(u=s[o])&&(r=!0);if(am(t))for(var l=0,c=Go(t);l<c.length;l++){var d=c[l],u=hi(d);262144&e.getObjectFlags(u)&&(n(u)||Ht(d.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,ba(d),Ta(Nu(u))),r=!0)}}return r}(r)||Pu(n,r,a))}function Fu(e,n,t){var r=a_(e),a=a_(n),i=s_(e),o=s_(n),s=o?a-1:a,l=i?s:Math.min(r,s),c=xs(e);if(c){var d=xs(n);d&&t(c,d)}for(var u=0;u<l;u++)t(n_(e,u),n_(n,u));o&&t(r_(e,l),o)}function Vu(e,n,t){var r=Ds(e),a=Ds(n);r&&a&&r.kind===a.kind&&(0===r.kind||r.parameterIndex===a.parameterIndex)?t(r.type,a.type):t(Rs(e),Rs(n))}function Bu(e,n,t,r){return Uu(e.map(ju),n,t,r||md)}function Uu(e,n,t,r){var a={inferences:e,signature:n,flags:t,compareTypes:r,mapper:function(e){return Hu(a,e,!0)},nonFixingMapper:function(e){return Hu(a,e,!1)}};return a}function Hu(e,n,t){for(var r=e.inferences,a=0;a<r.length;a++){var i=r[a];if(n===i.typeParameter)return t&&!i.isFixed&&(Ku(r),i.isFixed=!0),lm(e,a)}return n}function Ku(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];r.isFixed||(r.inferredType=void 0)}}function ju(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Wu(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 qu(e){return e&&e.mapper}function zu(n){var t=e.getObjectFlags(n);return!!(63176704&n.flags||4&t&&e.forEach(n.typeArguments,zu)||16&t&&n.symbol&&14384&n.symbol.flags&&n.symbol.declarations||32&t||3145728&n.flags&&!(1024&n.flags)&&function(n){return void 0===n.couldContainTypeVariables&&(n.couldContainTypeVariables=e.some(n.types,zu)),n.couldContainTypeVariables}(n))}function Xu(n,t){return!!(n===t||3145728&n.flags&&e.some(n.types,function(e){return Xu(e,t)})||16777216&n.flags&&(Xu(fc(n),t)||Xu(gc(n),t)))}function Ju(n,t,r){var a=n.id+","+t.id+","+r.id;if(rt.has(a))return rt.get(a);rt.set(a,void 0);var i=function(n,t,r){if(cs(n,0)||0!==Bo(n).length&&function n(t){return!(1048576&e.getObjectFlags(t))||am(t)&&e.some(Bo(t),function(e){return n(hi(e))})}(n)){if(nu(n))return xl(Yu(n.typeArguments[0],t,r),tu(n));if(_u(n)){var a=e.map(n.typeArguments||e.emptyArray,function(e){return Yu(e,t,r)}),i=4&Oo(t)?Qs(n)-(n.target.hasRestElement?1:0):n.target.minLength;return Rl(a,i,n.target.hasRestElement,n.target.readonly,n.target.associatedNames)}var o=ta(2064,void 0);return o.source=n,o.mappedType=t,o.constraintType=r,o}}(n,t,r);return rt.set(a,i),i}function Yu(e,n,t){var r=lc(t.type,xo(n)),a=Do(n),i=ju(r);return nm([i],e,a),em(i)||ve}function Qu(n,t,r,a){var i,o,s,c,d,u,m;return l(this,function(l){switch(l.label){case 0:i=1048576&t.flags?Vo(t):Bo(t),o=0,s=i,l.label=1;case 1:return o<s.length?(c=s[o],!r&&(16777216&c.flags||48&e.getCheckFlags(c))?[3,5]:(d=as(n,c.escapedName))?[3,3]:[4,c]):[3,6];case 2:return l.sent(),[3,5];case 3:return a&&109440&(u=hi(c)).flags?1&(m=hi(d)).flags||Rc(m)===Rc(u)?[3,5]:[4,c]:[3,5];case 4:l.sent(),l.label=5;case 5:return o++,[3,1];case 6:return[2]}})}function Zu(e,n,t,r){var a=Qu(e,n,t,r).next();if(!a.done)return a.value}function $u(e,n){return _u(e)&&_u(n)&&function(e,n){return n.target.minLength>e.target.minLength||!yu(n)&&(!!yu(e)||vu(n)<vu(e))}(e,n)||!!Zu(e,n,!1,!0)&&!!Zu(n,e,!1,!0)}function em(e){return e.candidates?Gl(e.candidates,2):e.contraCandidates?Kl(e.contraCandidates):void 0}function nm(n,t,r,a,i){var o,s;void 0===a&&(a=0),void 0===i&&(i=!1);var l,c=!1,d=256,u=!0;function m(t,o){if(zu(o)){if(t===_e){var s=l;return l=t,m(o,o),void(l=s)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===o.aliasSymbol)_(t.aliasTypeArguments,o.aliasTypeArguments,Hd(t.aliasSymbol));else if(t===o&&3145728&t.flags)for(var y=0,E=t.types;y<E.length;y++){var T=E[y];m(T,T)}else{if(1048576&o.flags)if(1048576&t.flags){var S=g(t.types,o.types,tm),L=g(S[0],S[1],rm),A=L[0],x=L[1];if(0===A.length||0===x.length)return;t=Gl(A),o=Gl(x)}else{if(f(t,o.types,tm))return;if(f(t,o.types,rm))return}else if(2097152&o.flags&&e.some(o.types,function(e){return!!v(e)})){if(2097152&t.flags){var C=g(t.types,o.types,dd);if(A=C[0],x=C[1],0===A.length||0===x.length)return;t=Kl(A),o=Kl(x)}else if(!(1048576&t.flags)&&f(t,o.types,dd))return}else 41943040&o.flags&&(o=mc(o));if(8650752&o.flags){if(1048576&e.getObjectFlags(t)||t===Ne||16&a&&(t===ge||t===gn))return;var D=v(o);if(D){if(!D.isFixed){if((void 0===D.priority||a<D.priority)&&(D.candidates=void 0,D.contraCandidates=void 0,D.topLevel=!0,D.priority=a),a===D.priority){var R=l||t;i&&!c?e.contains(D.contraCandidates,R)||(D.contraCandidates=e.append(D.contraCandidates,R),Ku(n)):e.contains(D.candidates,R)||(D.candidates=e.append(D.candidates,R),Ku(n))}!(16&a)&&262144&o.flags&&D.topLevel&&!Xu(r,o)&&(D.topLevel=!1,Ku(n))}return void(d=Math.min(d,a))}var M=ac(o,!1);if(M!==o)p(t,M,m);else if(8388608&o.flags){var I=ac(o.indexType,!1);if(63176704&I.flags){var O=ic(ac(o.objectType,!1),I,!1);O&&O!==o&&p(t,O,m)}}}if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(o)&&(t.target===o.target||nu(t)&&nu(o)))_(t.typeArguments||e.emptyArray,o.typeArguments||e.emptyArray,jd(t.target));else if(4194304&t.flags&&4194304&o.flags)i=!i,m(t.type,o.type),i=!i;else if((du(t)||4&t.flags)&&4194304&o.flags){var k=function(n){var t=e.createSymbolTable();Um(n,function(n){if(128&n.flags){var r=e.escapeLeadingUnderscores(n.value),a=qt(4,r);a.type=fe,n.symbol&&(a.declarations=n.symbol.declarations,a.valueDeclaration=n.symbol.valueDeclaration),t.set(r,a)}});var r=4&n.flags?Hs(Ue,!1):void 0;return sa(void 0,t,e.emptyArray,e.emptyArray,r,void 0)}(t);i=!i;var N=a;a|=32,m(k,o.type),a=N,i=!i}else if(8388608&t.flags&&8388608&o.flags)m(t.objectType,o.objectType),m(t.indexType,o.indexType);else if(16777216&t.flags&&16777216&o.flags)m(t.checkType,o.checkType),m(t.extendsType,o.extendsType),m(fc(t),fc(o)),m(gc(t),gc(o));else if(16777216&o.flags&&!i)h(t,[fc(o),gc(o)],o.flags);else if(3145728&o.flags)h(t,o.types,o.flags);else if(1048576&t.flags)for(var w=0,P=t.types;w<P.length;w++)m(P[w],o);else{if(!(64&a&&65273856&t.flags)){var G=es(t);if(G!==t&&u&&!(2621440&G.flags))return u=!1,m(G,o);t=G}2621440&t.flags&&p(t,o,b)}}}}function p(n,t,r){var a=n.id+","+t.id,i=s&&s.get(a);if(void 0===i){(s||(s=e.createMap())).set(a,-1);var o=d;d=256,r(n,t),s.set(a,d),d=Math.min(d,o)}else d=Math.min(d,i)}function f(e,n,t){for(var r=!1,a=0,i=n;a<i.length;a++){var o=i[a];t(e,o)&&(m(e,o),r=!0)}return r}function g(n,t,r){for(var a,i,o=0,s=t;o<s.length;o++)for(var l=s[o],c=0,d=n;c<d.length;c++){var u=d[c];r(u,l)&&(m(u,l),a=e.appendIfUnique(a,u),i=e.appendIfUnique(i,l))}return[a?e.filter(n,function(n){return!e.contains(a,n)}):n,i?e.filter(t,function(n){return!e.contains(i,n)}):t]}function _(e,n,t){for(var r=e.length<n.length?e.length:n.length,a=0;a<r;a++)a<t.length&&2==(7&t[a])?y(e[a],n[a]):m(e[a],n[a])}function y(e,n){U||128&a?(i=!i,m(e,n),i=!i):m(e,n)}function v(e){if(8650752&e.flags)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(e===a.typeParameter)return a}}function h(n,t,r){var i=0;if(1048576&r){for(var o=void 0,s=1048576&n.flags?n.types:[n],l=new Array(s.length),c=!1,u=0,p=t;u<p.length;u++)if(v(S=p[u]))o=S,i++;else for(var f=0;f<s.length;f++){var g=d;d=256,m(s[f],S),d===a&&(l[f]=!0),c=c||-1===d,d=Math.min(d,g)}if(1===i&&!c){var _=e.flatMap(s,function(e,n){return l[n]?void 0:e});if(_.length)return void m(Gl(_),o)}}else for(var y=0,h=t;y<h.length;y++)v(S=h[y])?i++:m(n,S);if(2097152&r?1===i:i>0){var b=a;a|=1;for(var E=0,T=t;E<T.length;E++){var S;v(S=T[E])&&m(n,S)}a=b}}function b(n,t){var r=524288&t.flags&&!(16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)?t.symbol:void 0;if(r){if(e.contains(o,r))return void(d=-1);(o||(o=[])).push(r),E(n,t),o.pop()}else E(n,t)}function E(n,t){wo(n)&&wo(t)&&(m(Co(n),Co(t)),m(Do(n),Do(t))),32&e.getObjectFlags(t)&&function n(t,r,i){if(1048576&i.flags){for(var o=!1,s=0,l=i.types;s<l.length;s++)o=n(t,r,l[s])||o;return o}if(4194304&i.flags){var c=v(i.type);if(c&&!c.isFixed){var d=Ju(t,r,i);if(d){var u=a;a|=1048576&e.getObjectFlags(t)?4:2,m(d,c.typeParameter),a=u}}return!0}if(262144&i.flags){u=a,a|=8,m(Jl(t),i),a=u;var p=Uo(i);if(p&&n(t,r,p))return!0;var f=e.map(Bo(t),hi),g=ds(t,0),_=Xl(t),y=_&&_.type;return m(Gl(e.append(e.append(f,g),y)),Do(r)),!0}return!1}(n,t,Co(t))||$u(n,t)||(function(e,n){if(nu(e)||_u(e)){if(_u(n)){for(var t=_u(e)?vu(e):0,r=vu(n),a=_u(e)?yu(e):ru(e),i=yu(n),o=r<t||a?r:t,s=0;s<o;s++)m(s<t?e.typeArguments[s]:a,n.typeArguments[s]);if(i){var l=o<t?e.typeArguments.slice(o,t):[];a&&l.push(a),l.length&&m(Gl(l),i)}return}if(nu(n))return void L(e,n)}for(var c=0,d=Go(n);c<d.length;c++){var u=d[c],p=as(e,u.escapedName);p&&m(hi(p),hi(u))}}(n,t),T(n,t,0),T(n,t,1),L(n,t))}function T(n,t,r){for(var a=os(n,r),i=os(t,r),o=a.length,s=i.length,l=o<s?o:s,c=!!(1048576&e.getObjectFlags(n)),d=0;d<l;d++)S(Fs(a[o-l+d]),Fs(i[s-l+d]),c)}function S(e,n,t){if(!t){var r=c,a=n.declaration?n.declaration.kind:0;c=c||157===a||156===a||158===a,Fu(e,n,y),c=r}Vu(e,n,m)}function L(e,n){var t=ds(n,0);t&&(r=ds(e,0)||us(e,0))&&m(r,t);var r,a=ds(n,1);a&&(r=ds(e,1)||ds(e,0)||us(e,1))&&m(r,a)}m(t,r)}function tm(e,n){return dd(e,n)||!!(384&e.flags)&&dd(uu(e),n)}function rm(e,n){return!!(524288&e.flags&&524288&n.flags&&e.symbol&&e.symbol===n.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol)}function am(n){return!!(128&e.getObjectFlags(n))}function im(n){return!!(65664&e.getObjectFlags(n))}function om(n){return 56&n.priority?Kl(n.contraCandidates):(t=n.contraCandidates,e.reduceLeft(t,function(e,n){return fd(n,e)?n:e}));var t}function sm(n,t){var r,a,i=function(n){if(n.length>1){var t=e.filter(n,im);if(t.length){var r=Gl(t,2);return e.concatenate(e.filter(n,function(e){return!im(e)}),[r])}}return n}(n.candidates),o=(r=n.typeParameter,!!(a=Ho(r))&&N_(16777216&a.flags?jo(a):a,4325372)),s=!o&&n.topLevel&&(n.isFixed||!Xu(Rs(t),n.typeParameter)),l=o?e.sameMap(i,Rc):s?e.sameMap(i,mu):i;return Nu(56&n.priority?Gl(l,2):function(n){if(!B)return eu(n);var t=e.filter(n,function(e){return!(98304&e.flags)});return t.length?Lu(eu(t),98304&bu(n)):Gl(n,2)}(l))}function lm(n,t){var r=n.inferences[t];if(!r.inferredType){var a=void 0,i=n.signature;if(i){var o=r.candidates?sm(r,i):void 0;if(r.contraCandidates){var s=om(r);a=!o||131072&o.flags||!fd(o,s)?s:o}else if(o)a=o;else if(1&n.flags)a=Ne;else{var l=Zo(r.typeParameter);l&&(a=nd(l,Uc(function(n,t){return function(r){return e.findIndex(n.inferences,function(e){return e.typeParameter===r})>=t?ve:r}}(n,t),n.nonFixingMapper)))}}else a=em(r);r.inferredType=a||cm(!!(2&n.flags));var c=Ho(r.typeParameter);if(c){var d=nd(c,n.nonFixingMapper);a&&n.compareTypes(a,so(d,a))||(r.inferredType=a=d)}}return r.inferredType}function cm(e){return e?fe:ve}function dm(e){for(var n=[],t=0;t<e.inferences.length;t++)n.push(lm(e,t));return n}function um(n){switch(n.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return P.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.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 P.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return P.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.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 e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return 277===n.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function mm(n){var t=rr(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&sr(n,n.escapedText,1160127,um(n),n,!e.isWriteOnlyAccess(n),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||me),t.resolvedSymbol}function pm(n){return!!e.findAncestor(n,function(e){return 168===e.kind||73!==e.kind&&149!==e.kind&&"quit"})}function fm(n,t){switch(t.kind){case 196:case 214:return fm(n,t.expression)}switch(n.kind){case 73:return 73===t.kind&&mm(n)===mm(t)||(238===t.kind||187===t.kind)&&Yr(mm(n))===qr(t);case 101:return 101===t.kind;case 99:return 99===t.kind;case 214:case 196:return fm(n.expression,t);case 190:case 191:return e.isAccessExpression(t)&&gm(n)===gm(t)&&fm(n.expression,t.expression)}return!1}function gm(n){return 190===n.kind?n.name.escapedText:e.isStringLiteral(n.argumentExpression)||e.isNumericLiteral(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):void 0}function _m(n,t){for(;e.isAccessExpression(n);)if(fm(n=n.expression,t))return!0;return!1}function ym(n,t){var r;return e.isAccessExpression(t)&&_m(n,t.expression)&&void 0!==(r=gm(t))&&vm(function n(t){if(73===t.kind)return hi(mm(t));if(e.isAccessExpression(t)){var r=n(t.expression);if(r){var a=gm(t);return void 0!==a?Fa(r,a):void 0}}}(t.expression),r)}function vm(n,t){if(n&&1048576&n.flags){var r=ts(n,t);if(r&&2&e.getCheckFlags(r))return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=192==(192&r.checkFlags)&&function(e){return!!(1048576&e.flags&&(1040&e.flags||!tc(e)))}(hi(r))),!!r.isDiscriminantProperty}return!1}function hm(e,n){for(var t,r=0,a=e;r<a.length;r++){var i=a[r];if(vm(n,i.escapedName)){if(t){t.push(i);continue}t=[i]}}return t}function bm(e,n){return fm(e,n)||_m(e,n)}function Em(e){return e.id||(e.id=m,m++),e.id}function Tm(e,n){if(e!==n){if(131072&n.flags)return n;var t=Km(e,function(e){return function(e,n){if(!(1048576&e.flags))return gd(e,n);for(var t=0,r=e.types;t<r.length;t++)if(gd(r[t],n))return!0;return!1}(n,e)});if(512&n.flags&&Mc(n)&&(t=Wm(t,Dc)),gd(n,t))return t}return e}function Sm(e){var n=Po(e);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&fd(e,rn))}function Lm(n){var t=n.flags;if(4&t)return B?16317953:16776705;if(128&t){var r=""===n.value;return B?r?12123649:7929345:r?12582401:16776705}if(40&t)return B?16317698:16776450;if(256&t){var a=0===n.value;return B?a?12123394:7929090:a?12582146:16776450}return 64&t?B?16317188:16775940:2048&t?(a=hu(n),B?a?12122884:7928580:a?12581636:16775940):16&t?B?16316168:16774920:528&t?B?n===xe||n===Ce?12121864:7927560:n===xe||n===Ce?12580616:16774920:524288&t?16&e.getObjectFlags(n)&&Id(n)?B?16318463:16777215:Sm(n)?B?7880640:16728e3:B?7888800:16736160:49152&t?9830144:65536&t?9363232:12288&t?B?7925520:16772880:67108864&t?B?7888800:16736160:63176704&t?Lm(zo(n)||ve):3145728&t?function(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=Lm(r[t]);return n}(n.types):16777215}function Am(e,n){return Km(e,function(e){return 0!=(Lm(e)&n)})}function xm(e,n){if(n){var t=oy(n);return Gl([Am(e,524288),t])}return e}function Cm(e,n){var t=Wl(n);if(!Qi(t))return ye;var r=to(t);return mp(Fa(e,r),n)||of(r)&&ds(e,1)||ds(e,0)||ye}function Dm(e,n){return Hm(e,ou)&&function(e,n){var t=Fa(e,""+n);return t||(Hm(e,_u)?Wm(e,function(e){return yu(e)||he}):void 0)}(e,n)||vv(65,e,he,void 0)||ye}function Rm(e){return xl(vv(65,e,he,void 0)||ye)}function Mm(e){return 205===e.parent.kind&&e.parent.left===e||228===e.parent.kind&&e.parent.initializer===e}function Im(e){return Cm(Om(e.parent),e.name)}function Om(e){var n=e.parent;switch(n.kind){case 227:return Se;case 228:return yv(n.expression,n.awaitModifier)||ye;case 205:return function(e){return 188===e.parent.kind&&Mm(e.parent)||276===e.parent.kind&&Mm(e.parent.parent)?xm(Om(e),e.right):oy(e.right)}(n);case 199:return he;case 188:return function(e,n){return Dm(Om(e),e.elements.indexOf(n))}(n,e);case 209:return function(e){return Rm(Om(e.parent))}(n);case 276:return Im(n);case 277:return function(e){return xm(Im(e),e.objectAssignmentInitializer)}(n)}return ye}function km(e){return e.initializer?function(e){return rr(e).resolvedType||oy(e)}(e.initializer):227===e.parent.parent.kind?Se:228===e.parent.parent.kind&&yv(e.parent.parent.expression,e.parent.parent.awaitModifier)||ye}function Nm(e){return 238===e.kind?km(e):function(e){var n=e.parent,t=Nm(n.parent);return xm(185===n.kind?Cm(t,e.propertyName||e.name):e.dotDotDotToken?Rm(t):Dm(t,n.elements.indexOf(e)),e.initializer)}(e)}function wm(e,n){return mp(238===e.kind||187===e.kind?Nm(e):Om(e),n)}function Pm(e){switch(e.kind){case 196:return Pm(e.expression);case 205:switch(e.operatorToken.kind){case 60:return Pm(e.left);case 27:return Pm(e.right)}}return e}function Gm(e){return 272===e.kind?Rc(oy(e.expression)):ke}function Fm(e){var n=rr(e);if(!n.switchTypes){n.switchTypes=[];for(var t=0,r=e.caseBlock.clauses;t<r.length;t++){var a=r[t];n.switchTypes.push(Gm(a))}}return n.switchTypes}function Vm(n){for(var t=[],r=0,a=n.caseBlock.clauses;r<a.length;r++){var i=a[r];if(272===i.kind){if(10===i.expression.kind){t.push(i.expression.text);continue}return e.emptyArray}t.push(void 0)}return t}function Bm(e,n){return e===n||1048576&n.flags&&function(e,n){if(1048576&e.flags){for(var t=0,r=e.types;t<r.length;t++){var a=r[t];if(!Ol(n.types,a))return!1}return!0}return!!(1024&e.flags&&Fi(e)===n)||Ol(n.types,e)}(e,n)}function Um(n,t){return 1048576&n.flags?e.forEach(n.types,t):t(n)}function Hm(n,t){return 1048576&n.flags?e.every(n.types,t):t(n)}function Km(n,t){if(1048576&n.flags){var r=n.types,a=e.filter(r,t);return a===r?n:Vl(a,n.objectFlags)}return t(n)?n:ke}function jm(e){return 1048576&e.flags?e.types.length:1}function Wm(e,n,t){if(131072&e.flags)return e;if(!(1048576&e.flags))return n(e);for(var r,a=0,i=e.types;a<i.length;a++){var o=n(i[a]);o&&(r?r.push(o):r=[o])}return r&&Gl(r,t?0:1)}function qm(e,n){return Km(e,function(e){return 0!=(e.flags&n)})}function zm(e,n){return Bm(Se,e)&&N_(n,128)||Bm(Le,e)&&N_(n,256)||Bm(Ae,e)&&N_(n,2048)?Wm(e,function(e){return 4&e.flags?qm(n,132):8&e.flags?qm(n,264):64&e.flags?qm(n,2112):e}):e}function Xm(e){return 0===e.flags}function Jm(e){return 0===e.flags?e.type:e}function Ym(e,n){return n?{flags:0,type:e}:e}function Qm(e){return de[e.id]||(de[e.id]=function(e){var n=ta(256);return n.elementType=e,n}(e))}function Zm(e,n){var t=uu(sy(n));return Bm(t,e.elementType)?e:Qm(Gl([e.elementType,t]))}function $m(e){return e.finalArrayType||(e.finalArrayType=131072&(n=e.elementType).flags?gn:xl(1048576&n.flags?Gl(n.types,2):n));var n}function ep(n){return 256&e.getObjectFlags(n)?$m(n):n}function np(n){return 256&e.getObjectFlags(n)?n.elementType:ke}function tp(n,t){return function(n){for(var t=!1,r=0,a=n;r<a.length;r++){var i=a[r];if(!(131072&i.flags)){if(!(256&e.getObjectFlags(i)))return!1;t=!0}}return t}(n)?Qm(Gl(e.map(n,np))):Gl(e.sameMap(n,ep),t)}function rp(n){var t=function e(n){var t=n.parent;return 196===t.kind||205===t.kind&&60===t.operatorToken.kind&&t.left===n||205===t.kind&&27===t.operatorToken.kind&&t.right===n?e(t):n}(n),r=t.parent,a=190===r.kind&&("length"===r.name.escapedText||192===r.parent.kind&&e.isPushOrUnshiftIdentifier(r.name)),i=191===r.kind&&r.expression===t&&205===r.parent.kind&&60===r.parent.operatorToken.kind&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&w_(oy(r.argumentExpression),296);return a||i}function ap(n){var t=rr(n);return void 0===t.maybeTypePredicate&&(t.maybeTypePredicate=function(n){if(99!==n.expression.kind){var t=wf(n.expression);if(t!==Ne){var r=es(t);return r!==ye&&e.some(os(r,0),Cs)}}return!1}(n)),t.maybeTypePredicate}function ip(n,t,r,a,i){var o;void 0===r&&(r=t);var s=!1,l=0;if(lt)return ye;if(!n.flowNode||!i&&!(133970943&t.flags))return t;var c=st,d=Jm(p(n.flowNode));st=c;var u=256&e.getObjectFlags(d)&&rp(n)?gn:ep(d);return n.parent&&214===n.parent.kind&&131072&Am(u,2097152).flags?t:u;function m(){return s?o:(s=!0,o=function e(n,t,r,a){switch(n.kind){case 73:var i=mm(n);return i!==me?(a?D(a):"-1")+"|"+Il(t)+"|"+Il(r)+"|"+(dp(n)?"@":"")+R(i):void 0;case 101:return"0";case 214:case 196:return e(n.expression,t,r,a);case 190:case 191:var o=gm(n);if(void 0!==o){var s=e(n.expression,t,r,a);return s&&s+"."+o}}}(n,t,r,a))}function p(i){if(2e3===l)return lt=!0,o=n,s=e.findAncestor(o,e.isFunctionOrModuleBlock),d=e.getSourceFileOfNode(o),u=e.getSpanOfTokenAtPosition(d,s.statements.pos),It.add(e.createFileDiagnostic(d,u.start,u.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),ye;var o,s,d,u;for(l++;;){var b=i.flags;if(8192&b){var E=m();if(E){var T=Em(i);if(Et[T]===E)return Tt[T]}}if(1024&b)for(var S=c;S<st;S++)if(xt[S]===i)return l--,Ct[S];var L=void 0;if(4096&b)i.locked=!0,L=p(i.antecedent),i.locked=!1;else{if(2048&b){i=i.antecedent;continue}if(16&b){if(!(L=f(i))){i=i.antecedent;continue}if(ot===it){var A=m();A&&!Xm(L)&&(i.flags|=8192,T=Em(i),Et[T]=A,Tt[T]=L)}}else if(96&b)L=_(i);else if(128&b)L=y(i);else if(12&b){if(1===i.antecedents.length){i=i.antecedents[0];continue}L=4&b?v(i):h(i)}else if(256&b){if(!(L=g(i))){i=i.antecedent;continue}}else if(2&b){var x=i.container;if(x&&x!==a&&190!==n.kind&&191!==n.kind&&101!==n.kind){i=x.flowNode;continue}L=r}else L=sv(t)}return 1024&b&&(xt[st]=i,Ct[st]=L,st++),l--,L}}function f(r){var a=r.node;if(fm(n,a)){if(2===e.getAssignmentTargetKind(a)){var i=p(r.antecedent);return Ym(uu(Jm(i)),Xm(i))}if(t===ge||t===gn){if(function(e){return 238===e.kind&&e.initializer&&Xa(e.initializer)||187!==e.kind&&205===e.parent.kind&&Xa(e.parent.right)}(a))return Qm(ke);var o=uu(wm(a,n));return gd(o,t)?o:fn}return 1048576&t.flags?Tm(t,wm(a,n)):t}if(_m(n,a)){if(e.isVariableDeclaration(a)&&(e.isInJSFile(a)||e.isVarConst(a))){var s=e.getDeclaredExpandoInitializer(a);if(s&&(197===s.kind||198===s.kind))return p(r.antecedent)}return t}if(e.isVariableDeclaration(a)&&227===a.parent.parent.kind&&fm(n,a.parent.parent.expression))return Pf(Jm(p(r.antecedent)))}function g(r){if(t===ge||t===gn){var a=r.node,i=192===a.kind?a.expression.expression:a.left.expression;if(fm(n,Pm(i))){var o=p(r.antecedent),s=Jm(o);if(256&e.getObjectFlags(s)){var l=s;if(192===a.kind)for(var c=0,d=a.arguments;c<d.length;c++)l=Zm(l,d[c]);else w_(sy(a.left.argumentExpression),296)&&(l=Zm(l,a.right));return l===s?o:Ym(l,Xm(o))}return o}}}function _(e){var n=p(e.antecedent),t=Jm(n);if(131072&t.flags)return n;var r=0!=(32&e.flags),a=ep(t),i=N(a,e.expression,r);if(i===a)return n;var o=Xm(n);return Ym(o&&131072&i.flags?Ne:i,o)}function y(r){var a=r.switchStatement.expression,i=p(r.antecedent),o=Jm(i);return fm(n,a)?o=I(o,r.switchStatement,r.clauseStart,r.clauseEnd):b(a,o)?o=E(o,a,function(e){return I(e,r.switchStatement,r.clauseStart,r.clauseEnd)}):200===a.kind&&fm(n,a.expression)?o=function(n,t,r,a){var i=Vm(t);if(!i.length)return n;var o,s,l=e.findIndex(i,function(e){return void 0===e}),c=r===a||l>=r&&l<a;if(l>-1){var d=i.filter(function(e){return void 0!==e}),u=l<r?r-1:r,m=l<a?a-1:a;o=d.slice(u,m),s=h_(u,m,d,c)}else o=i.slice(r,a),s=h_(r,a,i,c);if(c)return Km(n,function(e){return(Lm(e)&s)===s});var p,f=Am(Gl(o.map(function(e){return function(e,n){switch(n){case"function":return 1&e.flags?e:rn;case"object":return 2&e.flags?Gl([Ge,Ee]):e;default:return kt.get(n)||e}}(n,e)})),s);return 1048576&f.flags&&(f=Tm(f,Xo(n))),Am(Wm(n,(p=f,function(e){if(fd(p,e))return p;if(63176704&e.flags){var n=zo(e)||fe;if(fd(p,n))return Kl([e,p])}return e})),s)}(o,r.switchStatement,r.clauseStart,r.clauseEnd):ym(n,a)&&(o=t),Ym(o,Xm(i))}function v(n){for(var a=[],i=!1,o=!1,s=0,l=n.antecedents;s<l.length;s++){var c=l[s];if(!(2048&c.flags&&c.lock.locked)){var d=p(c),u=Jm(d);if(u===t&&t===r)return u;e.pushIfUnique(a,u),Bm(u,t)||(i=!0),Xm(d)&&(o=!0)}}return Ym(tp(a,i?2:1),o)}function h(n){var r=Em(n),a=bt[r]||(bt[r]=e.createMap()),i=m();if(!i)return t;var o=a.get(i);if(o)return o;for(var s=it;s<ot;s++)if(St[s]===n&&Lt[s]===i&&At[s].length)return Ym(tp(At[s],1),!0);var l,c=[],d=!1;St[ot]=n,Lt[ot]=i,At[ot]=c;for(var u=0,f=n.antecedents;u<f.length;u++){var g=f[u];ot++;var _=p(g);ot--,l||(l=_);var y=Jm(_),v=a.get(i);if(v)return v;if(e.pushIfUnique(c,y),Bm(y,t)||(d=!0),y===t)break}var h=tp(c,d?2:1);return Xm(l)?Ym(h,!0):(a.set(i,h),h)}function b(t,r){if(!(1048576&r.flags&&e.isAccessExpression(t)))return!1;var a=gm(t);return void 0!==a&&fm(n,t.expression)&&vm(r,a)}function E(e,n,t){var r=gm(n);if(void 0===r)return e;var a=Fa(e,r),i=a&&t(a);return a===i?e:Km(e,function(e){return yd(Fa(n=e,t=r)||of(t)&&ds(n,1)||ds(n,0)||ve,i);var n,t})}function L(e,r,a){return fm(n,r)?Am(e,a?4194304:8388608):b(r,t)?E(e,r,function(e){return Am(e,a?4194304:8388608)}):ym(n,r)?t:e}function A(n,t,r){if(1572864&n.flags||rc(n)){var a=e.escapeLeadingUnderscores(t.text);return Km(n,function(e){return function(e,n,t){if(cs(e,0))return!0;var r=as(e,n);return r?!!(16777216&r.flags)||t:!t}(e,a,r)})}return n}function x(r,a,i){switch(a.operatorToken.kind){case 60:return L(N(r,a.right,i),a.left,i);case 33:case 34:case 35:case 36:var o=a.operatorToken.kind,s=Pm(a.left),l=Pm(a.right);if(200===s.kind&&e.isStringLiteralLike(l))return M(r,s,o,l,i);if(200===l.kind&&e.isStringLiteralLike(s))return M(r,l,o,s,i);if(fm(n,s))return C(r,o,l,i);if(fm(n,l))return C(r,o,s,i);if(b(s,t))return E(r,s,function(e){return C(e,o,l,i)});if(b(l,t))return E(r,l,function(e){return C(e,o,s,i)});if(ym(n,s)||ym(n,l))return t;break;case 95:return function(r,a,i){var o=Pm(a.left);if(!fm(n,o))return _m(n,o)&&!function(n){return e.isAccessExpression(n)&&101===n.expression.kind&&!!(8&n.expression.flags)}(n)?t:r;var s,l=oy(a.right);if(!_d(l,rn))return r;var c=as(l,"prototype");if(c){var d=hi(c);Va(d)||(s=d)}if(Va(r)&&(s===tn||s===rn))return r;if(!s){var u=os(l,1);s=u.length?Gl(e.map(u,function(e){return Rs(Ps(e))})):Ue}return O(r,s,i,_d)}(r,a,i);case 94:var c=Pm(a.right);if(e.isStringLiteralLike(a.left)&&fm(n,c))return A(r,a.left,i);break;case 27:return N(r,a.right,i)}return r}function C(e,n,t,r){if(1&e.flags)return e;34!==n&&36!==n||(r=!r);var a=oy(t);if(2&e.flags&&35===n&&r)return 67239932&a.flags?a:524288&a.flags?Ge:e;if(98304&a.flags)return B?Am(e,33===n||34===n?r?262144:2097152:65536&a.flags?r?131072:1048576:r?65536:524288):e;if(67637251&e.flags)return e;if(r){var i=Km(e,33===n?function(e){return vd(e,a)||(n=a,0!=(524&e.flags)&&0!=(28&n.flags));var n}:function(e){return vd(e,a)});return 131072&i.flags?e:zm(i,a)}if(cu(a)){var o=Rc(a);return Km(e,function(e){return Rc(e)!==o})}return e}function M(e,r,a,i,o){var s=Pm(r.expression);if(!fm(n,s))return _m(n,s)?t:e;if(34!==a&&36!==a||(o=!o),1&e.flags&&"function"===i.text)return e;var l=o?T.get(i.text)||128:S.get(i.text)||32768;return Am(o?Wm(e,function(e){if(2&e.flags&&"object"===i.text)return Gl([Ge,Ee]);var n="function"===i.text?rn:kt.get(i.text);if(n){if(fd(e,n))return e;if(fd(n,e))return n;if(63176704&e.flags){var t=zo(e)||fe;if(fd(n,t))return Kl([e,n])}}return e}):e,l)}function I(n,t,r,a){var i=Fm(t);if(!i.length)return n;var o=i.slice(r,a),s=r===a||e.contains(o,ke);if(2&n.flags&&!s){for(var l=void 0,c=0;c<o.length;c+=1){var d=o[c];if(67239932&d.flags)void 0!==l&&l.push(d);else{if(!(524288&d.flags))return n;void 0===l&&(l=o.slice(0,c)),l.push(Ge)}}return Gl(void 0===l?o:l)}var u=Gl(o),m=131072&u.flags?ke:zm(Km(n,function(e){return vd(u,e)}),u);if(!s)return m;var p=Km(n,function(n){return!(cu(n)&&e.contains(i,Rc(n)))});return 131072&m.flags?p:Gl([m,p])}function O(e,n,t,r){if(!t)return Km(e,function(e){return!r(e,n)});if(1048576&e.flags){var a=Km(e,function(e){return r(e,n)});if(!(131072&a.flags))return a}return fd(n,e)?n:gd(e,n)?e:gd(n,e)?n:Kl([e,n])}function k(r,a,i){if(!function(e,n){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(bm(n,r[t]))return!0;return!(190!==e.expression.kind||!bm(n,e.expression.expression))}(a,n)||!ap(a))return r;var o=Ds(Ug(a));if(!o)return r;if(Va(r)&&(o.type===tn||o.type===rn))return r;if(e.isIdentifierTypePredicate(o)){var s=a.arguments[o.parameterIndex];if(s){if(fm(n,s))return O(r,o.type,i,fd);if(_m(n,s))return t}}else{var l=e.skipParentheses(a.expression);if(e.isAccessExpression(l)){var c=e.skipParentheses(l.expression);if(fm(n,c))return O(r,o.type,i,fd);if(_m(n,c))return t}}return r}function N(e,n,t){switch(n.kind){case 73:case 101:case 99:case 190:case 191:return L(e,n,t);case 192:return k(e,n,t);case 196:return N(e,n.expression,t);case 205:return x(e,n,t);case 203:if(52===n.operator)return N(e,n.operand,!t)}return e}}function op(n){return e.findAncestor(n.parent,function(n){return e.isFunctionLike(n)&&!e.getImmediatelyInvokedFunctionExpression(n)||246===n.kind||285===n.kind||155===n.kind})}function sp(n){var t,r=e.getRootDeclaration(n.valueDeclaration).parent,a=rr(r);return 8388608&a.flags||(a.flags|=8388608,t=r,e.findAncestor(t.parent,function(n){return e.isFunctionLike(n)&&!!(8388608&rr(n).flags)})||lp(r)),n.isAssigned||!1}function lp(n){if(73===n.kind){if(e.isAssignmentTarget(n)){var t=mm(n);t.valueDeclaration&&152===e.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0)}}else e.forEachChild(n,lp)}function cp(e){return 3&e.flags&&0!=(2&If(e))&&hi(e)!==gn}function dp(e){var n=e.parent;return 190===n.kind||192===n.kind&&n.expression===e||191===n.kind&&n.expression===e||187===n.kind&&n.name===e&&!!n.initializer}function up(e){return 58982400&e.flags&&N_(zo(e)||ve,98304)}function mp(e,n){return e&&dp(n)&&Um(e,up)?Wm(Nu(e),Xo):e}function pp(n,t){Sr(n,111551)&&!pm(t)&&(P.preserveConstEnums&&function(n){return!!e.findAncestor(n,function(n){return n.parent&&e.isExportAssignment(n.parent)&&n.parent.expression===n&&e.isEntityNameExpression(n)})}(t)||!jh(Ar(n)))&&Cr(n)}function fp(n){var t=mm(n);if(t===me)return ye;if(t===ee){var r=e.getContainingFunction(n);return G<2&&(198===r.kind?Ht(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(r,256)&&Ht(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),rr(r).flags|=8192,hi(t)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||pp(t,n);var a=Yr(t),i=a.valueDeclaration;if(32&a.flags)if(241===i.kind&&e.nodeIsDecorated(i))for(r=e.getContainingClass(n);void 0!==r;){if(r===i&&r.name!==n){rr(i).flags|=16777216,rr(n).flags|=33554432;break}r=e.getContainingClass(r)}else if(210===i.kind)for(r=e.getThisContainer(n,!1);285!==r.kind;){if(r.parent===i){155===r.kind&&e.hasModifier(r,32)&&(rr(i).flags|=16777216,rr(n).flags|=33554432);break}r=e.getThisContainer(r,!1)}!function(n,t){if(!(G>=2||0==(34&t.flags)||e.isSourceFile(t.valueDeclaration)||275===t.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),a=function(n,t){return!!e.findAncestor(n,function(n){return n===t?"quit":e.isFunctionLike(n)})}(n.parent,r),i=r,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}if(o){if(a){var s=!0;if(e.isForStatement(r)&&e.getAncestor(t.valueDeclaration,239).parent===r){var l=function(n,t){return e.findAncestor(n,function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement})}(n.parent,r);if(l){var c=rr(l);c.flags|=131072;var d=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(d,t),l===r.initializer&&(s=!1)}}s&&(rr(i).flags|=65536)}226===r.kind&&e.getAncestor(t.valueDeclaration,239).parent===r&&function(n,t){for(var r=n;196===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(203===r.parent.kind||204===r.parent.kind){var i=r.parent;a=44===i.operator||45===i.operator}return!!a&&!!e.findAncestor(r,function(e){return e===t?"quit":e===t.statement})}(n,r)&&(rr(t.valueDeclaration).flags|=4194304),rr(t.valueDeclaration).flags|=524288}a&&(rr(t.valueDeclaration).flags|=262144)}}(n,t);var o=mp(hi(a),n),s=e.getAssignmentTargetKind(n);if(s){if(!(3&a.flags||e.isInJSFile(n)&&512&a.flags))return Ht(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ba(t)),ye;if(R_(a))return 3&a.flags?Ht(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ba(t)):Ht(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ba(t)),ye}var l=2097152&a.flags;if(3&a.flags){if(1===s)return o}else{if(!l)return o;i=e.find(t.declarations,k)}if(!i)return o;for(var c=152===e.getRootDeclaration(i).kind,d=op(i),u=op(n),m=u!==d,p=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&Mm(n.parent.parent),f=134217728&t.flags;u!==d&&(197===u.kind||198===u.kind||e.isObjectLiteralOrClassExpressionMethod(u))&&(cp(a)||c&&!sp(a));)u=op(u);var g=c||l||m||p||f||e.isBindingElement(i)||o!==ge&&o!==gn&&(!B||0!=(3&o.flags)||pm(n)||258===n.parent.kind)||214===n.parent.kind||238===i.kind&&i.exclamationToken||4194304&i.flags,_=ip(n,o,g?c?function(e,n){return B&&152===n.kind&&n.initializer&&32768&Eu(e)&&!(32768&Eu(ly(n.initializer)))?Am(e,524288):e}(o,i):o:o===ge||o===gn?he:Au(o),u,!g);if(rp(n)||o!==ge&&o!==gn){if(!g&&!(32768&Eu(o))&&32768&Eu(_))return Ht(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,ba(t)),o}else if(_===ge||_===gn)return j&&(Ht(e.getNameOfDeclaration(i),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ba(t),Ta(_)),Ht(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ba(t),Ta(_))),sv(_);return s?uu(_):_}function gp(e,n){rr(e).flags|=2,155===n.kind||158===n.kind?rr(n.parent).flags|=4:rr(n).flags|=4}function _p(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,_p)}function yp(e){var n=rr(e);return void 0===n.hasSuperCall&&(n.superCall=_p(e.body),n.hasSuperCall=!!n.superCall),n.superCall}function vp(e){return Oi(Hi(qr(e)))===Te}function hp(n,t,r){var a=t.parent;if(e.getClassExtendsHeritageElement(a)&&!vp(a)){var i=yp(t);(!i||i.end>n.pos)&&Ht(n,r)}}function bp(n){var t=e.getThisContainer(n,!0),r=!1;switch(158===t.kind&&hp(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),198===t.kind&&(t=e.getThisContainer(t,!1),r=!0),t.kind){case 245:Ht(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 244:Ht(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 158:Tp(n,t)&&Ht(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 155:case 154:e.hasModifier(t,32)&&Ht(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 150:Ht(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&G<2&&gp(n,t);var a=Ep(n,!0,t);if(W){var i=hi(Z);if(a===i&&r)Ht(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var o=Ht(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var s=Ep(t);s&&s!==i&&e.addRelatedInfo(o,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||fe}function Ep(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=e.getThisContainer(n,!1));var a=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!Rp(n)||e.getThisParameter(r))){var i=function(n){return 197===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent)?n.parent.left.expression.expression:157===n.kind&&189===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)?n.parent.parent.left.expression:197===n.kind&&276===n.parent.kind&&189===n.parent.parent.kind&&e.isBinaryExpression(n.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent.parent)?n.parent.parent.parent.left.expression:197===n.kind&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&("value"===n.parent.name.escapedText||"get"===n.parent.name.escapedText||"set"===n.parent.name.escapedText)&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent.parent)?n.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&("value"===n.name.escapedText||"get"===n.name.escapedText||"set"===n.name.escapedText)&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent)?n.parent.parent.arguments[0].expression:void 0}(r);if(a&&i){var o=ly(i).symbol;if(o&&o.members&&16&o.flags&&(s=jg(o)))return ip(n,s)}else if(a&&(197===r.kind||240===r.kind)&&e.getJSDocClassTag(r)){var s;if(s=jg(Wr(r.symbol)))return ip(n,s)}var l=pi(r)||xp(r);if(l)return ip(n,l)}if(e.isClassLike(r.parent)){var c,d=qr(r.parent);return ip(n,c=e.hasModifier(r,32)?hi(d):Hi(d).thisType)}if(a&&(c=function(n){var t=e.getJSDocType(n);if(t&&295===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Nc(r.parameters[0].type)}var a=e.getJSDocThisTag(n);if(a&&a.typeExpression)return Nc(a.typeExpression)}(r))&&c!==ye)return ip(n,c);if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var u=qr(r);return u&&hi(u)}if(t)return hi(Z)}}function Tp(n,t){return!!e.findAncestor(n,function(n){return e.isFunctionLikeDeclaration(n)?"quit":152===n.kind&&n.parent===t})}function Sp(n){var t=192===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),a=!1;if(!t)for(;r&&198===r.kind;)r=e.getSuperContainer(r,!0),a=G<2;var i=0;if(!function(n){return!!n&&(t?158===n.kind:!(!e.isClassLike(n.parent)&&189!==n.parent.kind)&&(e.hasModifier(n,32)?157===n.kind||156===n.kind||159===n.kind||160===n.kind:157===n.kind||156===n.kind||159===n.kind||160===n.kind||155===n.kind||154===n.kind||158===n.kind))}(r)){var o=e.findAncestor(n,function(e){return e===r?"quit":150===e.kind});return o&&150===o.kind?Ht(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Ht(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||189===r.parent.kind)?Ht(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Ht(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ye}if(t||158!==r.kind||hp(n,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=e.hasModifier(r,32)||t?512:256,rr(n).flags|=i,157===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?rr(r).flags|=4096:rr(r).flags|=2048),a&&gp(n.parent,r),189===r.parent.kind)return G<2?(Ht(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ye):fe;var s=r.parent;if(!e.getClassExtendsHeritageElement(s))return Ht(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ye;var l=Hi(qr(s)),c=l&&ki(l)[0];return c?158===r.kind&&Tp(n,r)?(Ht(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ye):512===i?Oi(l):so(c,l.thisType):ye}function Lp(n){return 4&e.getObjectFlags(n)&&n.target===pn?n.typeArguments[0]:void 0}function Ap(n){return Wm(n,function(n){return 2097152&n.flags?e.forEach(n.types,Lp):Lp(n)})}function xp(n){if(198!==n.kind){if(ld(n)){var t=Zp(n);if(t){var r=t.thisParameter;if(r)return hi(r)}}var a=e.isInJSFile(n);if(W||a){var i=function(e){return 157!==e.kind&&159!==e.kind&&160!==e.kind||189!==e.parent.kind?197===e.kind&&276===e.parent.kind?e.parent.parent:void 0:e.parent}(n);if(i){for(var o=Hp(i),s=i,l=o;l;){var c=Ap(l);if(c)return nd(c,qu(qp(i)));if(276!==s.parent.kind)break;l=Hp(s=s.parent.parent)}return Nu(o?xu(o):z_(i))}var d=n.parent;if(205===d.kind&&60===d.operatorToken.kind){var u=d.left;if(190===u.kind||191===u.kind){var m=u.expression;if(a&&e.isIdentifier(m)){var p=e.getSourceFileOfNode(d);if(p.commonJsModuleIndicator&&mm(m)===p.symbol)return}return Nu(z_(m))}}}}}function Cp(n,t){var r=n.parent;if(ld(r)){var a=e.getImmediatelyInvokedFunctionExpression(r);if(a&&a.arguments){var i=Eg(a),o=r.parameters.indexOf(n);if(n.dotDotDotToken)return gg(i,o,i.length,fe,void 0);var s=rr(a),l=s.resolvedSignature;s.resolvedSignature=Wn;var c=o<i.length?mu(ly(i[o])):n.initializer?void 0:be;return s.resolvedSignature=l,c}var d=Zp(r);if(d){if(t){if(A_(r),Va(c=hi(Wr(r.symbol))))return c;d=os(c,0)[0]}var u=r.parameters.indexOf(n)-(e.getThisParameter(r)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(r.parameters)===n?r_(d,u):t_(d,u)}}}function Dp(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Nc(t);switch(n.kind){case 152:return Cp(n,!1);case 187:return function(n){var t=n.parent.parent,r=n.propertyName||n.name,a=Dp(t);if(a&&!e.isBindingPattern(r)&&!Ua(r)){var i=Wl(r);if(Qi(i)){var o=to(i);return Fa(a,o)}}}(n)}}function Rp(n){for(var t=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(t||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(t=!0),n=n.parent}return!1}function Mp(n,t){var r=!!(2&e.getFunctionFlags(t)),a=Ip(t);if(a)return Vv(n,a,r)||void 0}function Ip(e){var n=Ms(e);if(n)return n;var t=Qp(e);return t&&!Is(t)?Rs(t):void 0}function Op(e,n){var t=Eg(e).indexOf(n);return-1===t?void 0:kp(e,t)}function kp(n,t){var r=rr(n).resolvedSignature===zn?zn:Ug(n);return e.isJsxOpeningLikeElement(n)&&0===t?zp(r,n):n_(r,t)}function Np(n,t){var r=n.parent,a=r.left,i=r.operatorToken,o=r.right;switch(i.kind){case 60:if(n!==o)return;var s=function(n){var t=e.getAssignmentDeclarationKind(n);switch(t){case 0:return!0;case 5:case 1:case 6:case 3:if(n.left.symbol){var r=n.left.symbol.valueDeclaration;if(!r)return!1;var a=n.left,i=e.getEffectiveTypeAnnotationNode(r);if(i)return Nc(i);if(e.isIdentifier(a.expression)){var o=a.expression,s=sr(o,o.escapedText,111551,void 0,o.escapedText,!0);if(s){var l=e.getEffectiveTypeAnnotationNode(s.valueDeclaration);if(l){var c=wp(Nc(l),a.name.escapedText);return c||!1}return!1}}return!e.isInJSFile(r)}return!0;case 2:case 4:if(!n.symbol)return!0;if(n.symbol.valueDeclaration){var l=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(l){var c=Nc(l);if(c)return c}}if(2===t)return!1;var d=n.left;if(!e.isObjectLiteralMethod(e.getThisContainer(d.expression,!1)))return!1;var u=bp(d.expression);return u&&wp(u,d.name.escapedText)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(t)}}(r);if(!s)return;return!0===s?oy(a):s;case 55:var l=Wp(r,t);return n===o&&(l&&l.pattern||!l&&!e.isDefaultedExpandoInitializer(r))?oy(a):l;case 54:case 27:return n===o?Wp(r,t):void 0;default:return}}function wp(n,t){return Wm(n,function(n){if(wo(n)){var r=Co(n),a=zo(r)||r,i=Ic(e.unescapeLeadingUnderscores(t));if(gd(i,a))return sc(n,i)}else if(3670016&n.flags){var o=as(n,t);if(o)return hi(o);if(_u(n)){var s=yu(n);if(s&&of(t)&&+t>=0)return s}return of(t)&&Pp(n,1)||Pp(n,0)}},!0)}function Pp(e,n){return Wm(e,function(e){return ls(e,n)},!0)}function Gp(e,n){var t=Hp(e.parent,n);if(t){if(!no(e)){var r=wp(t,qr(e).escapedName);if(r)return r}return rf(e.name)&&Pp(t,1)||Pp(t,0)}}function Fp(e,n){return e&&(wp(e,""+n)||hv(1,e,he,void 0,!1))}function Vp(n){var t=n.parent;return e.isJsxAttributeLike(t)?Wp(n):e.isJsxElement(t)?function(e,n){var t=Hp(e.openingElement.tagName),r=Ef(hf(e));if(t&&!Va(t)&&r&&""!==r){var a=xd(e.children),i=a.indexOf(n),o=wp(t,r);return o&&(1===a.length?o:Wm(o,function(e){return au(e)?lc(e,Ic(i)):e},!0))}}(t,n):void 0}function Bp(n){if(e.isJsxAttribute(n)){var t=Hp(n.parent);if(!t||Va(t))return;return wp(t,n.name.escapedText)}return Wp(n.parent)}function Up(e){switch(e.kind){case 10:case 8:case 9:case 14:case 103:case 88:case 97:case 73:case 142:return!0;case 190:case 196:return Up(e.expression);case 271:return!e.expression||Up(e.expression)}return!1}function Hp(n,t){var r=Kp(e.isObjectLiteralMethod(n)?function(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(8388608&n.flags))return Gp(n,t)}(n,t):Wp(n,t),n,t);if(r){var a=Wm(r,es,!0);if(1048576&a.flags){if(e.isObjectLiteralExpression(n))return function(n,t){return Vd(t,e.map(e.filter(n.properties,function(e){return!!e.symbol&&276===e.kind&&Up(e.initializer)&&vm(t,e.symbol.escapedName)}),function(e){return[function(){return ly(e.initializer)},e.symbol.escapedName]}),gd,t)}(n,a);if(e.isJsxAttributes(n))return function(n,t){return Vd(t,e.map(e.filter(n.properties,function(e){return!!e.symbol&&268===e.kind&&vm(t,e.symbol.escapedName)&&(!e.initializer||Up(e.initializer))}),function(e){return[e.initializer?function(){return ly(e.initializer)}:function(){return De},e.symbol.escapedName]}),gd,t)}(n,a)}return a}}function Kp(n,t,r){if(n&&N_(n,63176704)){var a=qp(t);if(a&&e.some(a.inferences,ry)){if(r&&1&r)return jp(n,a.nonFixingMapper);if(a.returnMapper)return jp(n,a.returnMapper)}}return n}function jp(n,t){return 63176704&n.flags?nd(n,t):1048576&n.flags?Gl(e.map(n.types,function(e){return jp(e,t)}),0):2097152&n.flags?Kl(e.map(n.types,function(e){return jp(e,t)})):n}function Wp(n,t){if(!(8388608&n.flags)){if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 238:case 152:case 155:case 154:case 187:return function(n){var t=n.parent;if(e.hasInitializer(t)&&n===t.initializer){var r=Dp(t);if(r)return r;if(e.isBindingPattern(t.name))return ii(t.name,!0,!1)}}(n);case 198:case 231:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t);if(1&r)return;var a=Ip(t);if(a){if(2&r){var i=Ry(a);return i&&Gl([i,f_(i)])}return a}}}(n);case 208:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),a=Ip(t);if(a)return n.asteriskToken?a:Vv(0,a,0!=(2&r))}}(r);case 202:return function(e){var n=Wp(e);if(n){var t=Oy(n);return t&&Gl([t,f_(t)])}}(r);case 192:if(93===r.expression.kind)return Se;case 193:return Op(r,n);case 195:case 213:return e.isConstTypeReference(r.type)?void 0:Nc(r.type);case 205:return Np(n,t);case 276:case 277:return Gp(r,t);case 278:return Hp(r.parent,t);case 188:var a=r;return Fp(Hp(a,t),e.indexOfNode(a.elements,n));case 206:return function(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Wp(t,n):void 0}(n,t);case 217:return e.Debug.assert(207===r.parent.kind),function(e,n){if(194===e.parent.kind)return Op(e.parent,n)}(r.parent,n);case 196:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?Nc(i.typeExpression.type):Wp(r,t);case 271:return Vp(r);case 268:case 270:return Bp(r);case 263:case 262:return function(n){return e.isJsxOpeningElement(n)&&n.parent.contextualType?n.parent.contextualType:kp(n,0)}(r)}}}function qp(n){var t=e.findAncestor(n,function(e){return!!e.inferenceContext});return t&&t.inferenceContext}function zp(n,t){return 0!==yg(t)?function(e,n){var t=d_(e,ve);t=Xp(n,hf(n),t);var r=yf(x.IntrinsicAttributes,n);return r!==ye&&(t=vo(r,t)),t}(n,t):function(n,t){var r,a=hf(t),i=(r=a,bf(x.ElementAttributesPropertyNameContainer,r)),o=void 0===i?d_(n,ve):""===i?Rs(n):function(e,n){if(e.unionSignatures){for(var t=[],r=0,a=e.unionSignatures;r<a.length;r++){var i=a[r],o=Rs(i);if(Va(o))return o;var s=Fa(o,n);if(!s)return;t.push(s)}return Kl(t)}var l=Rs(e);return Va(l)?l:Fa(l,n)}(n,i);if(!o)return i&&e.length(t.attributes.properties)&&Ht(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),ve;if(Va(o=Xp(t,a,o)))return o;var s=o,l=yf(x.IntrinsicClassAttributes,t);if(l!==ye){var c=xi(l.symbol),d=Rs(n);s=vo(c?Js(l,Es([d],c,bs(c),e.isInJSFile(t))):l,s)}var u=yf(x.IntrinsicAttributes,t);return u!==ye&&(s=vo(u,s)),s}(n,t)}function Xp(n,t,r){var a,i=(a=t)&&ir(a.exports,x.LibraryManagedAttributes,788968);if(i){var o=Hi(i),s=function(e){if(pf(e.tagName))return Vs(Fg(e,n=Sf(e)));var n,t=z_(e.tagName);return 128&t.flags?(n=Tf(t,e))?Vs(Fg(e,n)):ye:t}(n);if(e.length(o.typeParameters)>=2)return Js(o,l=Es([s,r],o.typeParameters,2,e.isInJSFile(n)));if(e.length(o.aliasTypeArguments)>=2){var l=Es([s,r],o.aliasTypeArguments,2,e.isInJSFile(n));return $s(o.aliasSymbol,l)}}return r}function Jp(n,t){var r=os(n,0);if(1===r.length){var a=r[0];if(!function(n,t){for(var r=0;r<t.parameters.length;r++){var a=t.parameters[r];if(a.initializer||a.questionToken||a.dotDotDotToken||fs(a))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--,!o_(n)&&a_(n)<r}(a,t))return a}}function Yp(e){return 197===e.kind||198===e.kind}function Qp(n){return Yp(n)||e.isObjectLiteralMethod(n)?Zp(n):void 0}function Zp(n){e.Debug.assert(157!==n.kind||e.isObjectLiteralMethod(n));var t=Ss(n);if(t)return t;var r=Hp(n,1);if(r){if(!(1048576&r.flags))return Jp(r,n);for(var a,i=0,o=r.types;i<o.length;i++){var s=Jp(o[i],n);if(s)if(a){if(!$d(a[0],s,!1,!0,!0,ud))return;a.push(s)}else a=[s]}return a?1===a.length?a[0]:mo(a[0],a):void 0}}function $p(e){return 187===e.kind&&!!e.initializer||205===e.kind&&60===e.operatorToken.kind}function ef(n,t,r){for(var a=n.elements,i=a.length,o=!1,s=[],l=e.isAssignmentTarget(n),c=Hp(n),d=Q_(n),u=0;u<i;u++){var m=a[u];if(l&&209===m.kind){var p=ly(m.expression,t,r),f=ds(p,1)||hv(65,p,he,void 0,!1);f&&s.push(f)}else{var g=Z_(m,t,Fp(c,u),r);s.push(g)}u<i-1&&209===m.kind&&(o=!0)}if(!o){var _=i>0&&209===a[i-1].kind,y=i-(_?1:0),v=void 0;if(l&&y>0)return(g=Ys(Rl(s,y,_))).pattern=n,g;if(v=tf(s,c,_,i,d))return nf(v);if(r)return nf(Rl(s,y,_))}return nf(xl(s.length?Gl(s,2):B?Pe:be,d))}function nf(n){if(!(4&e.getObjectFlags(n)))return n;var t=n.literalType;return t||((t=n.literalType=Ys(n)).objectFlags|=589824),t}function tf(e,n,t,r,a){if(void 0===r&&(r=e.length),void 0===a&&(a=!1),a||n&&Um(n,ou))return Rl(e,r-(t?1:0),t,a)}function rf(e){switch(e.kind){case 150:return function(e){return w_(sf(e),296)}(e);case 73:return of(e.escapedText);case 8:case 10:return of(e.text);default:return!1}}function af(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function of(e){return(+e).toString()===e}function sf(n){var t=rr(n.expression);return t.resolvedType||(t.resolvedType=ly(n.expression),98304&t.resolvedType.flags||!w_(t.resolvedType,12716)&&!gd(t.resolvedType,Fe)?Ht(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):ng(n.expression,t.resolvedType,!0)),t.resolvedType}function lf(e,n,t,r){for(var a=[],i=0;i<t.length;i++)(0===r||rf(e.properties[i+n].name))&&a.push(hi(t[i]));return Hs(a.length?Gl(a,2):he,Q_(e))}function cf(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=tr(n);if(!t.immediateTarget){var r=_r(n);if(!r)return e.Debug.fail();t.immediateTarget=Tr(r,!0)}return t.immediateTarget}function df(n,t){var r,a=e.isAssignmentTarget(n);!function(n,t){for(var r=e.createUnderscoreEscapedMap(),a=0,i=n.properties;a<i.length;a++){var o=i[a];if(278!==o.kind){var s=o.name;if(150===s.kind&&Sb(s),277===o.kind&&!t&&o.objectAssignmentInitializer)return Gb(o.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(o.modifiers)for(var l=0,c=o.modifiers;l<c.length;l++){var d=c[l];122===d.kind&&157===o.kind||Gb(d,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(d))}var u=void 0;switch(o.kind){case 277:xb(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 276:Ab(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&Vb(s),u=4;break;case 157:u=8;break;case 159:u=1;break;case 160:u=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}var m=e.getPropertyNameForPropertyNameNode(s);if(void 0!==m){var p=r.get(m);if(p)if(12&u&&12&p)Gb(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&u&&3&p))return Gb(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===p||u===p)return Gb(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);r.set(m,u|p)}else r.set(m,u)}}else if(t){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return Gb(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(n,a);var i=[],o=Ue,s=Hp(n),l=s&&s.pattern&&(185===s.pattern.kind||189===s.pattern.kind),c=Q_(n),d=c?8:0,u=e.isInJSFile(n)&&!e.isInJsonFile(n),m=e.getJSDocEnumTag(n),p=!s&&u&&!m,f=z,g=!1,_=!1,y=!1;r=e.createSymbolTable();for(var v=0,h=0;h<n.properties.length;h++){var b=n.properties[h],E=qr(b),T=b.name&&150===b.name.kind&&!e.isWellKnownSymbolSyntactically(b.name.expression)?sf(b.name):void 0;if(276===b.kind||277===b.kind||e.isObjectLiteralMethod(b)){var S=276===b.kind?$_(b,t):277===b.kind?Z_(b.name,t):ey(b,t);if(u){var L=za(b);L?(hd(S,L,b),S=L):m&&m.typeExpression&&hd(S,Nc(m.typeExpression),b)}f|=1835008&e.getObjectFlags(S);var A=T&&Qi(T)?T:void 0,x=A?qt(4|E.flags,to(A),4096|d):qt(4|E.flags,E.escapedName,d);if(A&&(x.nameType=A),a)(276===b.kind&&$p(b.initializer)||277===b.kind&&b.objectAssignmentInitializer)&&(x.flags|=16777216);else if(l&&!(512&e.getObjectFlags(s))){var C=as(s,E.escapedName);C?x.flags|=16777216&C.flags:P.suppressExcessPropertyErrors||cs(s,0)||Ht(b.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ba(E),Ta(s))}x.declarations=E.declarations,x.parent=E.parent,E.valueDeclaration&&(x.valueDeclaration=E.valueDeclaration),x.type=S,x.target=E,E=x}else{if(278===b.kind){if(G<2&&ub(b,2),i.length>0&&(o=Sc(o,M(),n.symbol,f,c),i=[],r=e.createSymbolTable(),_=!1,y=!1),!uf(S=ly(b.expression)))return Ht(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ye;o=Sc(o,S,n.symbol,f,c),v=h+1;continue}e.Debug.assert(159===b.kind||160===b.kind),gh(b)}!T||8576&T.flags?r.set(E.escapedName,E):gd(T,Fe)&&(gd(T,Le)?y=!0:_=!0,a&&(g=!0)),i.push(E)}if(l)for(var D=0,R=Bo(s);D<R.length;D++)x=R[D],r.get(x.escapedName)||o&&as(o,x.escapedName)||(16777216&x.flags||Ht(x.valueDeclaration||x.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),r.set(x.escapedName,x),i.push(x));return o!==Ue?(i.length>0&&(o=Sc(o,M(),n.symbol,f,c)),o):M();function M(){var t=_?lf(n,v,i,0):void 0,o=y?lf(n,v,i,1):void 0,s=sa(n.symbol,r,e.emptyArray,e.emptyArray,t,o);return s.objectFlags|=524416|f,p&&(s.objectFlags|=16384),g&&(s.objectFlags|=512),a&&(s.pattern=n),s}}function uf(n){return!!(126615555&n.flags||117632&Eu(n)&&uf(Tu(n))||3145728&n.flags&&e.every(n.types,uf))}function mf(n){return!e.stringContains(n,"-")}function pf(n){return 73===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function ff(e,n){return e.initializer?Z_(e.initializer,n):De}function gf(e,n){for(var t=[],r=0,a=e.children;r<a.length;r++){var i=a[r];11===i.kind?i.containsOnlyTriviaWhiteSpaces||t.push(Se):t.push(Z_(i,n))}return t}function _f(n,t){return function(n,t){for(var r,a=n.attributes,i=e.createSymbolTable(),o=He,s=!1,l=!1,c=4096,d=Ef(hf(n)),u=0,m=a.properties;u<m.length;u++){var p=m[u],f=p.symbol;if(e.isJsxAttribute(p)){var g=ff(p,t);c|=1835008&e.getObjectFlags(g);var _=qt(33554436|f.flags,f.escapedName);_.declarations=f.declarations,_.parent=f.parent,f.valueDeclaration&&(_.valueDeclaration=f.valueDeclaration),_.type=g,_.target=f,i.set(_.escapedName,_),p.name.escapedText===d&&(l=!0)}else e.Debug.assert(270===p.kind),i.size>0&&(o=Sc(o,S(),a.symbol,c,!1),i=e.createSymbolTable()),Va(g=z_(p.expression,t))&&(s=!0),uf(g)?o=Sc(o,g,a.symbol,c,!1):r=r?Kl([r,g]):g}s||i.size>0&&(o=Sc(o,S(),a.symbol,c,!1));var y=261===n.parent.kind?n.parent:void 0;if(y&&y.openingElement===n&&y.children.length>0){var v=gf(y,t);if(!s&&d&&""!==d){l&&Ht(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var h=Hp(n.attributes),b=h&&wp(h,d),E=qt(33554436,d);E.type=1===v.length?v[0]:tf(v,b,!1)||xl(Gl(v)),E.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0,void 0),E.valueDeclaration.parent=a,E.valueDeclaration.symbol=E;var T=e.createSymbolTable();T.set(d,E),o=Sc(o,sa(a.symbol,T,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,c,!1)}}return s?fe:r&&o!==He?Kl([r,o]):r||(o===He?S():o);function S(){c|=z;var n=sa(a.symbol,i,e.emptyArray,e.emptyArray,void 0,void 0);return n.objectFlags|=524416|c,n}}(n.parent,t)}function yf(e,n){var t=hf(n),r=t&&Ur(t),a=r&&ir(r,e,788968);return a?Hi(a):ye}function vf(n){var t=rr(n);if(!t.resolvedSymbol){var r=yf(x.IntrinsicElements,n);if(r!==ye){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=as(r,n.tagName.escapedText);return a?(t.jsxFlags|=1,t.resolvedSymbol=a):ds(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(Ht(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+x.IntrinsicElements),t.resolvedSymbol=me)}return j&&Ht(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(x.IntrinsicElements)),t.resolvedSymbol=me}return t.resolvedSymbol}function hf(e){var n=e&&rr(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=Ut(e),r=sr(e,t,1920,void 0,t,!1);if(r){var a=Lr(ir(Ur(Lr(r)),x.JSX,1920));if(a)return n&&(n.jsxNamespace=a),a;n&&(n.jsxNamespace=!1)}}return _l(x.JSX,1920,void 0)}function bf(n,t){var r=t&&ir(t.exports,n,788968),a=r&&Hi(r),i=a&&Bo(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&Ht(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function Ef(e){return bf(x.ElementChildrenAttributeNameContainer,e)}function Tf(n,t){var r=yf(x.IntrinsicElements,t);if(r!==ye){var a=n.value,i=as(r,e.escapeLeadingUnderscores(a));if(i)return hi(i);var o=ds(r,0);return o||void 0}return fe}function Sf(n){e.Debug.assert(pf(n.tagName));var t=rr(n);if(!t.resolvedJsxElementAttributesType){var r=vf(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=hi(r):2&t.jsxFlags?t.resolvedJsxElementAttributesType=Ks(r,0).type:t.resolvedJsxElementAttributesType=ye}return t.resolvedJsxElementAttributesType}function Lf(e){var n=yf(x.ElementClass,e);if(n!==ye)return n}function Af(e){return yf(x.Element,e)}function xf(e){var n=Af(e);if(n)return Gl([n,Ee])}function Cf(n){var t,r=e.isJsxOpeningLikeElement(n);r&&function(n){hb(n,n.typeArguments);for(var t=e.createUnderscoreEscapedMap(),r=0,a=n.attributes.properties;r<a.length;r++){var i=a[r];if(270!==i.kind){var o=i.name,s=i.initializer;if(t.get(o.escapedText))return Gb(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(o.escapedText,!0),s&&271===s.kind&&!s.expression)return Gb(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(n),t=n,0===(P.jsx||0)&&Ht(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Af(t)&&j&&Ht(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var a=It&&2===P.jsx?e.Diagnostics.Cannot_find_name_0:void 0,i=Ut(n),o=sr(r?n.tagName:n,i,111551,a,i,!0);if(o&&(o.isReferenced=67108863,2097152&o.flags&&Cr(o)),r){var s=Ug(n);!function(n,t,r){if(1===n)(a=xf(r))&&Fd(t,a,Pt,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);else if(0===n)(i=Lf(r))&&Fd(t,i,Pt,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);else{var a=xf(r),i=Lf(r);if(!a||!i)return;Fd(t,Gl([a,i]),Pt,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}(yg(n),Rs(s),n)}}function Df(e,n,t){if(524288&e.flags){var r=Po(e);if(r.stringIndexInfo||r.numberIndexInfo&&of(n)||Fo(e,n)||t&&!mf(n))return!0}else if(3145728&e.flags&&Rf(e))for(var a=0,i=e.types;a<i.length;a++)if(Df(i[a],n,t))return!0;return!1}function Rf(n){return!!(524288&n.flags&&!(512&e.getObjectFlags(n))||67108864&n.flags||1048576&n.flags&&e.some(n.types,Rf)||2097152&n.flags&&e.every(n.types,Rf))}function Mf(n,t){if(function(n){n.expression&&e.isCommaSequence(n.expression)&&Gb(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(n),n.expression){var r=ly(n.expression,t);return n.dotDotDotToken&&r!==fe&&!nu(r)&&Ht(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return ye}function If(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function Of(n){if(8192&n.flags||4&e.getCheckFlags(n))return!0;if(e.isInJSFile(n.valueDeclaration)){var t=n.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&3===e.getAssignmentDeclarationKind(t)}}function kf(n,t,r,a){var i,o=e.getDeclarationModifierFlagsFromSymbol(a),s=149===n.kind?n.right:184===n.kind?n:n.name;if(1024&e.getCheckFlags(a))return Ht(s,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,ba(a),Ta(r)),!1;if(t){if(G<2&&Nf(a))return Ht(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return Ht(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ba(a),Ta(Yd(a))),!1}if(128&o&&e.isThisProperty(n)&&Nf(a)&&(i=e.getClassLikeDeclarationOfSymbol(zr(a)))&&function(n){return!!e.findAncestor(n,function(n){return!!(e.isConstructorDeclaration(n)&&e.nodeIsPresent(n.body)||e.isPropertyDeclaration(n))||!(!e.isClassLike(n)&&!e.isFunctionLikeDeclaration(n))&&"quit"})}(n))return Ht(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ba(a),e.getTextOfIdentifierOrLiteral(i.name)),!1;if(!(24&o))return!0;if(8&o)return!!Ah(n,i=e.getClassLikeDeclarationOfSymbol(zr(a)))||(Ht(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,ba(a),Ta(Yd(a))),!1);if(t)return!0;var l=Lh(n,function(n){var t=Hi(qr(n));return function(n,t){return Jd(t,function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t))&&!Ti(n,Yd(t))})?void 0:n}(t,a)?t:void 0});if(!l){var c=void 0;if(32&o||!(c=function(n){var t=e.getThisContainer(n,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}(n))||!c.type)return Ht(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ba(a),Ta(Yd(a)||r)),!1;var d=Nc(c.type);l=262144&d.flags?Ho(d):d}return!!(32&o)||(262144&r.flags&&(r=r.isThisType?Ho(r):zo(r)),!(!r||!Ti(r,l))||(Ht(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,ba(a),Ta(l)),!1))}function Nf(e){return!!Jd(e,function(e){return!(8192&e.flags)})}function wf(e,n,t,r){return Gf(ly(e),e,n,t,r)}function Pf(e){return 98304&(B?Eu(e):e.flags)?xu(e):e}function Gf(n,t,r,a,i){if(B&&2&n.flags)return Ht(t,e.Diagnostics.Object_is_of_type_unknown),ye;var o=98304&(B?Eu(n):n.flags);if(o){Ht(t,32768&o?65536&o?i||e.Diagnostics.Object_is_possibly_null_or_undefined:a||e.Diagnostics.Object_is_possibly_undefined:r||e.Diagnostics.Object_is_possibly_null);var s=xu(n);return 229376&s.flags?ye:s}return n}function Ff(n,t){var r=Gf(n,t);return r!==ye&&16384&r.flags&&Ht(t,e.Diagnostics.Object_is_possibly_undefined),r}function Vf(e){return Hf(e,e.expression,e.name)}function Bf(e){return Hf(e,e.left,e.right)}function Uf(n){for(;196===n.parent.kind;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function Hf(n,t,r){var a,i=wf(t),o=rr(t).resolvedSymbol,s=e.getAssignmentTargetKind(n),l=es(0!==s||Uf(n)?Nu(i):i);if(Va(l)||l===Ne)return e.isIdentifier(t)&&o&&pp(o,n),l;var c=as(l,r.escapedText);if(!e.isIdentifier(t)||!o||c&&jh(c)||pp(o,n),c){if(function(n,t,r){var a,i=n.valueDeclaration;if(i&&!e.getSourceFileOfNode(t).isDeclarationFile){var o=e.idText(r);!function(n){return!!e.findAncestor(n,function(n){switch(n.kind){case 155:return!0;case 276:case 157:case 159:case 160:case 278:case 150:case 217:case 271:case 268:case 269:case 270:case 263:case 212:case 274:return!1;default:return!e.isExpressionNode(n)&&"quit"}})}(t)||or(i,r)||function(e){if(!(32&e.parent.flags))return!1;for(var n=hi(e.parent);;){if(!(n=n.symbol&&jf(n)))return!1;var t=as(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(n)?241!==i.kind||165===t.parent.kind||4194304&i.flags||or(i,r)||(a=Ht(r,e.Diagnostics.Class_0_used_before_its_declaration,o)):a=Ht(r,e.Diagnostics.Property_0_is_used_before_its_initialization,o),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}(c,n,r),Qf(c,n,101===t.kind),rr(n).resolvedSymbol=c,kf(n,99===t.kind,l,c),s&&(M_(n,c)||I_(n)))return Ht(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(r)),ye;a=mp(hi(c),n)}else{var d=0===s||!nc(i)||rc(i)?cs(l,0):void 0;if(!d||!d.type)return Ql(i)?fe:i.symbol===Z?(Z.exports.has(r.escapedText)&&418&Z.exports.get(r.escapedText).flags?Ht(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(r.escapedText),Ta(i)):j&&Ht(r,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ta(i)),fe):(r.escapedText&&!pr(n)&&function(n,t){var r,a;if(1048576&t.flags&&!(131068&t.flags))for(var i=0,o=t.types;i<o.length;i++){var s=o[i];if(!as(s,n.escapedText)){r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ta(s));break}}if(Wf(n.escapedText,t))r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(n),Ta(t));else{var l=My(t);if(l&&as(l,n.escapedText))r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ta(t)),a=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var c=qf(n,t);if(void 0!==c){var d=e.symbolName(c);r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(n),Ta(t),d),a=c.valueDeclaration&&e.createDiagnosticForNode(c.valueDeclaration,e.Diagnostics._0_is_declared_here,d)}else r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ta(t))}}var u=e.createDiagnosticForNodeFromMessageChain(n,r);a&&e.addRelatedInfo(u,a),It.add(u)}(r,rc(i)?l:i),ye);d.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&Ht(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ta(l)),a=d.type}return Kf(n,c,a,r)}function Kf(n,t,r,a){var i=e.getAssignmentTargetKind(n);if(191!==n.kind&&190!==n.kind||1===i||t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags))return r;var o=!1;if(B&&K&&101===n.expression.kind){var s=t&&t.valueDeclaration;if(s&&$v(s)){var l=op(n);158===l.kind&&l.parent===s.parent&&(o=!0)}}else B&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&op(n)===op(t.valueDeclaration)&&(o=!0);var c=ip(n,r,o?Au(r):r);return o&&!(32768&Eu(r))&&32768&Eu(c)?(Ht(a,e.Diagnostics.Property_0_is_used_before_being_assigned,ba(t)),r):i?uu(c):c}function jf(e){var n=ki(e);if(0!==n.length)return Kl(n)}function Wf(n,t){var r=t.symbol&&as(hi(t.symbol),n);return void 0!==r&&r.valueDeclaration&&e.hasModifier(r.valueDeclaration,32)}function qf(n,t){return Yf(e.isString(n)?n:e.idText(n),Bo(t),111551)}function zf(n,t){var r=qf(n,t);return r&&e.symbolName(r)}function Xf(n,t,r){return e.Debug.assert(void 0!==t,"outername should always be defined"),lr(n,t,r,void 0,t,!1,!1,function(n,r,a){return e.Debug.assertEqual(t,r,"name should equal outerName"),ir(n,r,a)||Yf(e.unescapeLeadingUnderscores(r),e.arrayFrom(n.values()),a)})}function Jf(n,t){return t.exports&&Yf(e.idText(n),Vr(t),2623475)}function Yf(n,t,r){return e.getSpellingSuggestion(n,t,function(n){var t=e.symbolName(n);return!e.startsWith(t,'"')&&n.flags&r?t:void 0})}function Qf(n,t,r){if(n&&106500&n.flags&&n.valueDeclaration&&e.hasModifier(n.valueDeclaration,8)&&(!t||!e.isWriteOnlyAccess(t)||65536&n.flags&&!(32768&n.flags))){if(r){var a=e.findAncestor(t,e.isFunctionLikeDeclaration);if(a&&a.symbol===n)return}(1&e.getCheckFlags(n)?tr(n).target:n).isReferenced=67108863}}function Zf(n,t,r,a){if(a===ye||Va(a))return!0;var i=as(a,r);return i?kf(n,t,a,i):e.isInJSFile(n)&&0!=(1048576&a.flags)&&a.types.some(function(e){return Zf(n,t,r,e)})}function $f(n){var t=n.initializer;if(239===t.kind){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return qr(r)}else if(73===t.kind)return mm(t)}function eg(n){var t=wf(n.expression),r=0!==e.getAssignmentTargetKind(n)||Uf(n)?Nu(t):t,a=n.argumentExpression;if(!a){var i,o=e.getSourceFileOfNode(n);return 193===n.parent.kind&&n.parent.expression===n?Pb(o,i=e.skipTrivia(o.text,n.expression.end),n.end-i,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):Pb(o,i=n.end-"]".length,n.end-i,e.Diagnostics.Expression_expected),ye}var s=ly(a);if(r===ye||r===Ne)return r;if(G_(r)&&10!==a.kind)return Ht(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ye;var l=cc(r,function(n){var t,r=e.skipParentheses(n);if(73===r.kind){var a=mm(r);if(3&a.flags)for(var i=n,o=n.parent;o;){if(227===o.kind&&i===o.statement&&$f(o)===a&&ds(t=oy(o.expression),1)&&!ds(t,0))return!0;i=o,o=o.parent}}return!1}(a)?Le:s,n,e.isAssignmentTarget(n)?2|(nc(r)&&!rc(r)?1:0):0)||ye;return Sy(Kf(n,l.symbol,l,a),n)}function ng(n,t,r){if(t===ye)return!1;if(!e.isWellKnownSymbolSyntactically(n))return!1;if(0==(12288&t.flags))return r&&Ht(n,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(n)),!1;var a=n.expression,i=mm(a);if(!i)return!1;var o=vl(!0);return!(!o||i!==o&&(r&&Ht(a,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function tg(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function rg(n){return tg(n)&&e.forEach(n.typeArguments,ph),194===n.kind?ly(n.template):e.isJsxOpeningLikeElement(n)?ly(n.attributes):153!==n.kind&&e.forEach(n.arguments,function(e){ly(e)}),Wn}function ag(e){return rg(e),qn}function ig(e){return!!e&&(209===e.kind||216===e.kind&&e.isSpread)}function og(n){return e.findIndex(n,ig)}function sg(e){return!!(16384&e.flags)}function lg(n,t,r,a){var i;void 0===a&&(a=!1);var o=!1,s=a_(r),l=i_(r);if(194===n.kind)if(i=t.length,207===n.template.kind){var c=e.last(n.template.templateSpans);o=e.nodeIsMissing(c.literal)||!!c.literal.isUnterminated}else{var d=n.template;e.Debug.assert(14===d.kind),o=!!d.isUnterminated}else if(153===n.kind)i=Tg(n,r);else if(e.isJsxOpeningLikeElement(n)){if(o=n.attributes.end===n.end)return!0;i=0===l?t.length:1,s=0===t.length?s:1,l=Math.min(l,1)}else{if(!n.arguments)return e.Debug.assert(193===n.kind),0===i_(r);i=a?t.length+1:t.length,o=n.arguments.end===n.end;var u=og(t);if(u>=0)return u>=i_(r)&&(o_(r)||u<a_(r))}if(!o_(r)&&i>s)return!1;if(o||i>=l)return!0;for(var m=i;m<l;m++)if(131072&Km(n_(r,m),sg).flags)return!1;return!0}function cg(n,t){var r=e.length(n.typeParameters),a=bs(n.typeParameters);return!t||t.length>=a&&t.length<=r}function dg(e){return mg(e,0,!1)}function ug(e){return mg(e,0,!1)||mg(e,1,!1)}function mg(e,n,t){if(524288&e.flags){var r=Po(e);if(t||0===r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(0===n&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===n&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function pg(n,t,r,a){var i=Bu(n.typeParameters,n,0,a),o=s_(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return Fu(s?qc(t,s):t,n,function(e,n){nm(i.inferences,e,n)}),r||Vu(t,n,function(e,n){nm(i.inferences,e,n,16)}),ks(n,dm(i),e.isInJSFile(t.declaration))}function fg(n,t,r,a,i){if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r){var a=zp(n,e),i=q_(e.attributes,a,r,t);return nm(r.inferences,i,a),dm(r)}(n,t,a,i);if(153!==n.kind){var o=Wp(n);if(o){var s=qp(n),l=nd(o,qu(function(n,t){return void 0===t&&(t=0),n&&Uu(e.map(n.inferences,Wu),n.signature,n.flags|t,n.compareTypes)}(s,1))),c=dg(l),d=c&&c.typeParameters?Vs(Ns(c,c.typeParameters)):l,u=Rs(t);nm(i.inferences,d,u,16);var m=Bu(t.typeParameters,t,i.flags),p=nd(o,s&&s.returnMapper);nm(m.inferences,p,u),i.returnMapper=e.some(m.inferences,ry)?qu(m):void 0}}var f=xs(t);if(f){var g=hg(n),_=g?ly(g):Oe;nm(i.inferences,_,f)}for(var y=l_(t),v=y?Math.min(a_(t)-1,r.length):r.length,h=0;h<v;h++){var b=r[h];if(211!==b.kind){var E=n_(t,h),T=q_(b,E,i,a);nm(i.inferences,T,E)}}if(y){var S=gg(r,v,r.length,y,i);nm(i.inferences,S,y)}return dm(i)}function gg(n,t,r,a,i){if(t>=r-1){var o=n[r-1];if(ig(o))return 216===o.kind?xl(o.type):Um(s=q_(o.expression,a,i,0),function(e){return!(63176705&e.flags||nu(e)||_u(e))})?xl(lc(s,Le)):s}for(var s,l=[],c=-1,d=t;d<r;d++){var u=lc(a,Ic(d-t)),m=q_(n[d],u,i,0);c<0&&ig(n[d])&&(c=d-t);var p=N_(u,4325372);l.push(p?Rc(m):mu(m))}return c<0?Rl(l):Rl(e.append(l.slice(0,c),Gl(l.slice(c))),c,!0)}function _g(n,t,r,a){for(var i,o=e.isInJSFile(n.declaration),s=n.typeParameters,l=Es(e.map(t,Nc),s,bs(s),o),c=0;c<t.length;c++){e.Debug.assert(void 0!==s[c],"Should not call checkTypeArguments with too many type arguments");var d=Ho(s[c]);if(d){var u=r&&a?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,m=a||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;i||(i=Vc(s,l));var p=l[c];if(!hd(p,so(nd(d,i),p),r?t[c]:void 0,m,u))return}}return l}function yg(n){if(pf(n.tagName))return 2;var t=es(ly(n.tagName));return e.length(os(t,1))?0:e.length(os(t,0))?1:2}function vg(n,t,r,a,i,o,s){var l={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r,a,i,o){var s=zp(n,e);return Ed(q_(e.attributes,s,void 0,r),s,t,a?e.tagName:void 0,e.attributes,void 0,i,o)}(n,r,a,i,o,s,l)?void 0:(e.Debug.assert(!o||!!l.errors,"jsx should have errors when reporting errors"),l.errors||[]);var c=xs(r);if(c&&c!==Oe&&193!==n.kind){var d=hg(n),u=d?ly(d):Oe,m=o?d||n:void 0,p=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Fd(u,c,a,m,p,s,l))return e.Debug.assert(!o||!!l.errors,"this parameter should have errors when reporting errors"),l.errors||[]}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,g=l_(r),_=g?Math.min(a_(r)-1,t.length):t.length,y=0;y<_;y++){var v=t[y];if(211!==v.kind){var h=n_(r,y),b=q_(v,h,void 0,i),E=4&i?Ru(b):b;if(!Ed(E,h,a,o?v:void 0,v,f,s,l))return e.Debug.assert(!o||!!l.errors,"parameter should have errors when reporting errors"),S(v,E,h),l.errors||[]}}if(g){var T=gg(t,_,t.length,g,void 0);if(m=o?_<t.length?t[_]:n:void 0,!Fd(T,g,a,m,f,void 0,l))return e.Debug.assert(!o||!!l.errors,"rest parameter should have errors when reporting errors"),S(m,T,g),l.errors||[]}return;function S(n,t,r){if(n&&o&&l.errors&&l.errors.length){if(Ry(r))return;var i=Ry(t);i&&Pd(i,r,a)&&e.addRelatedInfo(l.errors[0],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await))}}}function hg(n){if(192===n.kind){var t=e.skipOuterExpressions(n.expression);if(190===t.kind||191===t.kind)return t.expression}}function bg(n,t,r){var a=e.createNode(216,n.pos,n.end);return a.parent=n,a.type=t,a.isSpread=r||!1,a}function Eg(n){if(194===n.kind){var t=n.template,r=[bg(t,wn||(wn=yl("TemplateStringsArray",0,!0))||Ue)];return 207===t.kind&&e.forEach(t.templateSpans,function(e){r.push(e.expression)}),r}if(153===n.kind)return function(n){var t=n.parent,r=n.expression;switch(t.kind){case 241:case 210:return[bg(r,hi(qr(t)))];case 152:var a=t.parent;return[bg(r,158===t.parent.kind?hi(qr(a)):ye),bg(r,fe),bg(r,Le)];case 155:case 157:case 159:case 160:var i=155!==t.kind&&0!==G;return[bg(r,function(n){var t=qr(n.parent);return e.hasModifier(n,32)?hi(t):Hi(t)}(t)),bg(r,function(n){var t=n.name;switch(t.kind){case 73:return Ic(e.idText(t));case 8:case 10:return Ic(t.text);case 150:var r=sf(t);return w_(r,12288)?r:Se;default:return e.Debug.fail("Unsupported property name."),ye}}(t)),bg(r,i?Al(Rh(t)):fe)]}return e.Debug.fail()}(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var a=n.arguments||e.emptyArray,i=a.length;if(i&&ig(a[i-1])&&og(a)===i-1){var o=a[i-1],s=ot?ly(o.expression):z_(o.expression);if(_u(s)){var l=s.typeArguments||e.emptyArray,c=s.target.hasRestElement?l.length-1:-1,d=e.map(l,function(e,n){return bg(o,e,n===c)});return e.concatenate(a.slice(0,i-1),d)}}return a}function Tg(n,t){switch(n.parent.kind){case 241:case 210:return 1;case 155:return 2;case 157:case 159:case 160:return 0===G||t.parameters.length<=2?2:3;case 152:return 3;default:return e.Debug.fail()}}function Sg(n,t){var r,a,i=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var o=e.getErrorSpanForNode(i,n.expression.name);r=o.start,a=t?o.length:n.end-r}else{var s=e.getErrorSpanForNode(i,n.expression);r=s.start,a=t?s.length:n.end-r}return{start:r,length:a,sourceFile:i}}function Lg(n,t,r,a,i,o){if(e.isCallExpression(n)){var s=Sg(n),l=s.sourceFile,c=s.start,d=s.length;return e.createFileDiagnostic(l,c,d,t,r,a,i,o)}return e.createDiagnosticForNode(n,t,r,a,i,o)}function Ag(n,t,r){for(var a,i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,c=r.length,d=0,u=t;d<u.length;d++){var m=u[d],p=i_(m),f=a_(m);p<c&&p>s&&(s=p),c<f&&f<l&&(l=f),p<i&&(i=p,a=m),o=Math.max(o,f)}var g,_,y=e.some(t,o_),v=y?i:i<o?i+"-"+o:i,h=og(r)>-1;c<=o&&h&&c--;var b=y||h?y&&h?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(a&&i_(a)>c&&a.declaration){var E=a.declaration.parameters[a.thisParameter?c+1:c];E&&(_=e.createDiagnosticForNode(E,e.isBindingPattern(E.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,E.name?e.isBindingPattern(E.name)?void 0:e.idText(oh(E.name)):c))}if(i<c&&c<o)return Lg(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c,s,l);if(!h&&c<i){var T=Lg(n,b,v,c);return _?e.addRelatedInfo(T,_):T}if(y||h){if(g=e.createNodeArray(r),h&&c){var S=e.elementAt(r,og(r)+1)||void 0;g=e.createNodeArray(r.slice(o>c&&S?r.indexOf(S):Math.min(o,r.length-1)))}}else g=e.createNodeArray(r.slice(o));g.pos=e.first(g).pos,g.end=e.last(g).end,g.end===g.pos&&g.end++;var L=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),g,b,v,c);return _?e.addRelatedInfo(L,_):L}function xg(n,r,a,i,o){var s,l=194===n.kind,c=153===n.kind,d=e.isJsxOpeningLikeElement(n),u=!a;c||(s=n.typeArguments,(l||d||99!==n.expression.kind)&&e.forEach(s,ph));var m=a||[];if(function(n,t){var r,a,i,o,s=0,l=-1;e.Debug.assert(!t.length);for(var c=0,d=n;c<d.length;c++){var u=d[c],m=u.declaration&&qr(u.declaration),p=u.declaration&&u.declaration.parent;a&&m!==a?(i=s=t.length,r=p):r&&p===r?i+=1:(r=p,i=s),a=m,u.hasLiteralTypes?(o=++l,s++):o=i,t.splice(o,0,u)}}(r,m),!m.length)return u&&It.add(Lg(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),ag(n);var p,f,g,_,y=Eg(n),v=1===m.length&&!m[0].typeParameters,h=c||v||!e.some(y,id)?0:4,b=!!(16&i)&&192===n.kind&&n.arguments.hasTrailingComma;if(m.length>1&&(_=K(m,wt,b)),_||(_=K(m,Pt,b)),_)return _;if(u)if(p)if(1===p.length||p.length>3){var E,T=p[p.length-1];p.length>3&&(E=e.chainDiagnosticMessages(E,e.Diagnostics.The_last_overload_gave_the_following_error),E=e.chainDiagnosticMessages(E,e.Diagnostics.No_overload_matches_this_call));var S=vg(n,y,T,Pt,0,!0,function(){return E});if(S)for(var L=0,A=S;L<A.length;L++){var x=A[L];T.declaration&&p.length>3&&e.addRelatedInfo(x,e.createDiagnosticForNode(T.declaration,e.Diagnostics.The_last_overload_is_declared_here)),It.add(x)}else e.Debug.fail("No error for last overload signature")}else{for(var C=[],D=0,R=Number.MAX_VALUE,M=0,I=0,O=function(t){var r=vg(n,y,t,Pt,0,!0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,I+1,m.length,Ea(t))});r?(r.length<=R&&(R=r.length,M=I),D=Math.max(D,r.length),C.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),I++},k=0,N=p;k<N.length;k++)O(N[k]);var w=D>1?C[M]:e.flatten(C);e.Debug.assert(w.length>0,"No errors reported for 3 or fewer overload signatures");var P=e.chainDiagnosticMessages(e.map(w,function(e){return"string"==typeof e.messageText?e:e.messageText}),e.Diagnostics.No_overload_matches_this_call),G=e.flatMap(w,function(e){return e.relatedInformation});if(e.every(w,function(e){return e.start===w[0].start&&e.length===w[0].length&&e.file===w[0].file})){var F=w[0],V=F.file,B=F.start,U=F.length;It.add({file:V,start:B,length:U,code:P.code,category:P.category,messageText:P,relatedInformation:G})}else It.add(e.createDiagnosticForNodeFromMessageChain(n,P,G))}else if(f)It.add(Ag(n,[f],y));else if(g)_g(g,n.typeArguments,!0,o);else{var H=e.filter(r,function(e){return cg(e,s)});0===H.length?It.add(function(n,t,r){var a=r.length;if(1===t.length){var i=bs((u=t[0]).typeParameters),o=e.length(u.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,i<o?i+"-"+o:i,a)}for(var s=-1/0,l=1/0,c=0,d=t;c<d.length;c++){var u,m=bs((u=d[c]).typeParameters);o=e.length(u.typeParameters),m>a?l=Math.min(l,m):o<a&&(s=Math.max(s,o))}return s!==-1/0&&l!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,a,s,l):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?l:s,a)}(n,r,s)):c?o&&It.add(Lg(n,o)):It.add(Ag(n,H,y))}return t||!y?ag(n):function(n,t,r,a){return e.Debug.assert(t.length>0),a||1===t.length||t.some(function(e){return!!e.typeParameters})?function(n,t,r){var a=function(e,n){for(var t=-1,r=-1,a=0;a<e.length;a++){var i=e[a],o=a_(i);if(o_(i)||o>=n)return a;o>r&&(r=o,t=a)}return t}(t,void 0===$?r.length:$),i=t[a],o=i.typeParameters;if(!o)return i;var s=tg(n)?n.typeArguments:void 0,l=s?ws(i,function(e,n,t){for(var r=e.map(Rh);r.length>n.length;)r.pop();for(;r.length<n.length;)r.push(Ho(n[r.length])||cm(t));return r}(s,o,e.isInJSFile(n))):function(n,t,r,a){var i=Bu(t,r,e.isInJSFile(n)?2:0),o=fg(n,r,a,12,i);return ws(r,o)}(n,o,i,r);return t[a]=l,l}(n,t,r):function(n){var t,r=e.mapDefined(n,function(e){return e.thisParameter});r.length&&(t=Dg(r,r.map($g)));for(var a=e.minAndMax(n,Cg),i=a.min,o=a.max,s=[],l=function(t){var r=e.mapDefined(n,function(n){var r=n.parameters,a=n.hasRestParameter;return a?t<r.length-1?r[t]:e.last(r):t<r.length?r[t]:void 0});e.Debug.assert(0!==r.length),s.push(Dg(r,e.mapDefined(n,function(e){return t_(e,t)})))},c=0;c<o;c++)l(c);var d=e.mapDefined(n,function(n){return n.hasRestParameter?e.last(n.parameters):void 0}),u=0!==d.length;if(u){var m=xl(Gl(e.mapDefined(n,Os),2));s.push(Rg(d,m))}return co(n[0].declaration,void 0,t,s,Kl(n.map(Rs)),void 0,i,u,n.some(function(e){return e.hasLiteralTypes}))}(t)}(n,m,y,!!a);function K(t,r,a){if(void 0===a&&(a=!1),p=void 0,f=void 0,g=void 0,v){var i=t[0];if(s||!lg(n,y,i,a))return;return vg(n,y,i,r,0,!1,void 0)?void(p=[i]):i}for(var o=0;o<t.length;o++)if(cg(i=t[o],s)&&lg(n,y,i,a)){var l=void 0,c=void 0;if(i.typeParameters){var d=void 0;if(s){if(!(d=_g(i,s,!1))){g=i;continue}}else c=Bu(i.typeParameters,i,e.isInJSFile(n)?2:0),d=fg(n,i,y,8|h,c),h|=4&c.flags?8:0;if(l=ks(i,d,e.isInJSFile(i.declaration),c&&c.inferredTypeParameters),l_(i)&&!lg(n,y,l,a)){f=l;continue}}else l=i;if(!vg(n,y,l,r,h,!1,void 0)){if(h){if(h=0,c&&(l=ks(i,d=fg(n,i,y,h,c),e.isInJSFile(i.declaration),c&&c.inferredTypeParameters),l_(i)&&!lg(n,y,l,a))){f=l;continue}if(vg(n,y,l,r,h,!1,void 0)){(p||(p=[])).push(l);continue}}return t[o]=l,l}(p||(p=[])).push(l)}}}function Cg(e){var n=e.parameters.length;return e.hasRestParameter?n-1:n}function Dg(e,n){return Rg(e,Gl(n,2))}function Rg(n,t){return Du(e.first(n),t)}function Mg(e){return!(!e.typeParameters||!eb(Rs(e)))}function Ig(e,n,t,r){return Va(e)||Va(n)&&!!(262144&e.flags)||!t&&!r&&!(1179648&n.flags)&&gd(e,rn)}function Og(n,t,r){if(n.arguments&&G<1){var a=og(n.arguments);a>=0&&Ht(n.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=wf(n.expression);if(i===Ne)return Xn;if((i=es(i))===ye)return ag(n);if(Va(i))return n.typeArguments&&Ht(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),rg(n);var o=os(i,1);if(o.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,a=e.getSelectedModifierFlags(r,24);if(!a)return!0;var i=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=Hi(r.parent.symbol);if(!Ah(n,i)){var s=e.getContainingClass(n);if(s&&16&a){var l=Rh(s);if(function n(t,r){var a=ki(r);if(!e.length(a))return!1;var i=a[0];if(2097152&i.flags){for(var o=i.types,s=Eo(o),l=0,c=0,d=i.types;c<d.length;c++){var u=d[c];if(!s[l]&&3&e.getObjectFlags(u)){if(u.symbol===t)return!0;if(n(t,u))return!0}l++}return!1}return i.symbol===t||n(t,i)}(r.parent.symbol,l))return!0}return 8&a&&Ht(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ta(o)),16&a&&Ht(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ta(o)),!1}return!0}(n,o[0]))return ag(n);var s=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return s&&e.hasModifier(s,128)?(Ht(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),ag(n)):xg(n,o,t,r)}var l=os(i,0);if(l.length){var c=xg(n,l,t,r);return j||(c.declaration&&!Hg(c.declaration)&&Rs(c)!==Oe&&Ht(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),xs(c)===Oe&&Ht(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),c}return Ng(n.expression,i,1),ag(n)}function kg(n,t){var r,a=0===t,i=Oy(n),o=i&&os(i,t).length>0;if(1048576&n.flags){for(var s=!1,l=0,c=n.types;l<c.length;l++){var d=c[l];if(0!==os(d,t).length){if(s=!0,r)break}else if(r||(r=e.chainDiagnosticMessages(r,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ta(d)),r=e.chainDiagnosticMessages(r,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Ta(n))),s)break}s||(r=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Ta(n))),r||(r=e.chainDiagnosticMessages(r,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ta(n)))}else r=e.chainDiagnosticMessages(r,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ta(n));return{messageChain:e.chainDiagnosticMessages(r,a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable),relatedMessage:o?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Ng(n,t,r,a){var i=kg(t,r),o=i.messageChain,s=i.relatedMessage,l=e.createDiagnosticForNodeFromMessageChain(n,o);if(s&&e.addRelatedInfo(l,e.createDiagnosticForNode(n,s)),e.isCallExpression(n.parent)){var c=Sg(n.parent,!0),d=c.start,u=c.length;l.start=d,l.length=u}It.add(l),wg(t,r,a?e.addRelatedInfo(l,a):l)}function wg(n,t,r){if(n.symbol){var a=tr(n.symbol).originatingImport;if(a&&!e.isImportCall(a)){var i=os(hi(tr(n.symbol).target),t);if(!i||!i.length)return;e.addRelatedInfo(r,e.createDiagnosticForNode(a,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function Pg(n){switch(n.parent.kind){case 241:case 210:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 152:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 155:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 157:case 159:case 160:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function Gg(n,t,r){var a=ly(n.expression),i=es(a);if(i===ye)return ag(n);var o,s,l=os(i,0),c=os(i,1).length;if(Ig(a,i,l.length,c))return rg(n);if(o=n,(s=l).length&&e.every(s,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<Tg(o,e)})){var d=e.getTextOfNode(n.expression,!1);return Ht(n,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,d),ag(n)}var u=Pg(n);if(!l.length){var m=kg(i,0),p=e.chainDiagnosticMessages(m.messageChain,u),f=e.createDiagnosticForNodeFromMessageChain(n.expression,p);return m.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(n.expression,m.relatedMessage)),It.add(f),wg(i,0,f),ag(n)}return xg(n,l,t,r,u)}function Fg(n,t){var r=hf(n),a=r&&Ur(r),i=a&&ir(a,x.Element,788968),o=i&&J.symbolToEntityName(i,788968,n),s=e.createFunctionTypeNode(void 0,[e.createParameter(void 0,void 0,void 0,"props",void 0,J.typeToTypeNode(t,n))],o?e.createTypeReferenceNode(o,void 0):e.createKeywordTypeNode(121)),l=qt(1,"props");return l.type=t,co(s,void 0,void 0,[l],i?Hi(i):ye,void 0,1,!1,!1)}function Vg(n,t,r){if(pf(n.tagName)){var a=Sf(n),i=Fg(n,a);return bd(q_(n.attributes,zp(i,n),void 0,0),a,n.tagName,n.attributes),i}var o=ly(n.tagName),s=es(o);if(s===ye)return ag(n);var l=function n(t,r){if(4&t.flags)return[Wn];if(128&t.flags){var a=Tf(t,r);return a?[Fg(r,a)]:(Ht(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+x.IntrinsicElements),e.emptyArray)}var i=es(t),o=os(i,1);return 0===o.length&&(o=os(i,0)),0===o.length&&1048576&i.flags&&(o=_o(e.map(i.types,function(e){return n(e,r)}))),o}(o,n);return Ig(o,s,l.length,0)?rg(n):0===l.length?(Ht(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),ag(n)):xg(n,l,t,r)}function Bg(n,t,r){switch(n.kind){case 192:return function(n,t,r){if(99===n.expression.kind){var a=Sp(n.expression);if(Va(a)){for(var i=0,o=n.arguments;i<o.length;i++)ly(o[i]);return Wn}if(a!==ye){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(s)return xg(n,Ii(a,s.typeArguments,s),t,r)}return rg(n)}var l=wf(n.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(l===Ne)return Xn;var c=es(l);if(c===ye)return ag(n);var d=os(c,0),u=os(c,1).length;if(Ig(l,c,d.length,u))return l!==ye&&n.typeArguments&&Ht(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),rg(n);if(!d.length){if(u)Ht(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ta(l));else{var m=void 0;if(1===n.arguments.length){var p=e.getSourceFileOfNode(n).text;e.isLineBreak(p.charCodeAt(e.skipTrivia(p,n.expression.end,!0)-1))&&(m=e.createDiagnosticForNode(n.expression,e.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))}Ng(n.expression,c,0,m)}return ag(n)}return 8&r&&!n.typeArguments&&d.some(Mg)?(ty(n,r),zn):d.some(function(n){return e.isInJSFile(n.declaration)&&!!e.getJSDocClassTag(n.declaration)})?(Ht(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ta(l)),ag(n)):xg(n,d,t,r)}(n,t,r);case 193:return Og(n,t,r);case 194:return function(e,n,t){var r=ly(e.tag),a=es(r);if(a===ye)return ag(e);var i=os(a,0),o=os(a,1).length;return Ig(r,a,i.length,o)?rg(e):i.length?xg(e,i,n,t):(Ng(e.tag,a,0),ag(e))}(n,t,r);case 153:return Gg(n,t,r);case 263:case 262:return Vg(n,t,r)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function Ug(e,n,t){var r=rr(e),a=r.resolvedSignature;if(a&&a!==zn&&!n)return a;r.resolvedSignature=zn;var i=Bg(e,n,t||0);return i!==zn&&(r.resolvedSignature=it===ot?i:a),i}function Hg(n){if(!n||!e.isInJSFile(n))return!1;var t=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?n:e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?n.initializer:void 0;if(t){if(e.getJSDocClassTag(n))return!0;var r=qr(t);return!!r&&(void 0!==r.members||void 0!==r.exports&&void 0!==r.exports.get("prototype"))}return!1}function Kg(e){if(524288&e.flags){var n=Po(e);return 1===n.callSignatures.length&&Hg(n.callSignatures[0].declaration)}return!1}function jg(n){var t;Hg(n.valueDeclaration)&&(t=Wg(n));var r=function(n){var t=n.valueDeclaration,r=t&&t.parent&&(e.isFunctionDeclaration(t)&&qr(t)||e.isBinaryExpression(t.parent)&&qr(t.parent.left)||e.isVariableDeclaration(t.parent)&&qr(t.parent)),a=r&&r.exports&&r.exports.get("prototype"),i=a&&a.valueDeclaration&&function(n){if(!n.parent)return!1;for(var t=n.parent;t&&190===t.kind;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&60===t.operatorToken.kind){var r=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(r)&&r}}(a.valueDeclaration);return i?Nu(z_(i)):void 0}(n);return r&&t?Kl([t,r]):r||t}function Wg(n){var t=tr(n);return t.inferredClassType||(t.inferredClassType=sa(n,io(n)||A,e.emptyArray,e.emptyArray,void 0,void 0)),t.inferredClassType}function qg(n,t){hb(n,n.typeArguments)||bb(n.arguments);var r=Ug(n,void 0,t);if(r===zn)return we;if(99===n.expression.kind)return Oe;if(193===n.kind){var a=r.declaration;if(a&&158!==a.kind&&162!==a.kind&&167!==a.kind&&!e.isJSDocConstructSignature(a)&&!Hg(a))return j&&Ht(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),fe}if(e.isInJSFile(n)&&Yg(n))return function(e){var n=Or(e,e);if(n){var t=Pr(n);if(t)return hi(t)}return fe}(n.arguments[0]);var i,o=Rs(r);if(12288&o.flags&&zg(n))return Oc(e.walkUpParenthesizedExpressions(n.parent));if(e.isInJSFile(n)){var s=e.getDeclarationOfExpando(n);if(s){var l=qr(s);l&&e.hasEntries(l.exports)&&((i=sa(l,l.exports,e.emptyArray,e.emptyArray,void 0,void 0)).objectFlags|=16384)}}return i?Kl([o,i]):o}function zg(n){if(!e.isCallExpression(n))return!1;var t=n.expression;if(e.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),!e.isIdentifier(t)||"Symbol"!==t.escapedText)return!1;var r=vl(!1);return!!r&&r===sr(t,"Symbol",111551,void 0,void 0,!1)}function Xg(n){if(bb(n.arguments)||function(n){if(F===e.ModuleKind.ES2015)return Gb(n,e.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);if(n.typeArguments)return Gb(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;1!==t.length?Gb(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(gb(t),e.isSpreadElement(t[0])&&Gb(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(n),0===n.arguments.length)return g_(n,fe);for(var t=n.arguments[0],r=z_(t),a=1;a<n.arguments.length;++a)z_(n.arguments[a]);(32768&r.flags||65536&r.flags||!gd(r,Se))&&Ht(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ta(r));var i=Or(n,t);if(i){var o=Gr(i,t,!0);if(o)return g_(n,Jg(hi(o),o,i))}return g_(n,fe)}function Jg(n,t,r){if(V&&n&&n!==ye){var a=n;if(!a.syntheticType)if(hr(e.find(r.declarations,e.isSourceFile),r,!1)){var i=e.createSymbolTable(),o=qt(2097152,"default");o.nameType=Ic("default"),o.target=Lr(t),i.set("default",o);var s=qt(2048,"__type"),l=sa(s,i,e.emptyArray,e.emptyArray,void 0,void 0);s.type=l,a.syntheticType=uf(n)?Sc(n,l,s,0,!1):l}else a.syntheticType=n;return a.syntheticType}return n}function Yg(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=sr(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(t===ne)return!0;if(2097152&t.flags)return!1;var r=16&t.flags?240:3&t.flags?238:0;if(0!==r){var a=e.getDeclarationOfKind(t,r);return!!a&&!!(4194304&a.flags)}return!1}function Qg(n,r,a,i){var o=ly(a,i);if(e.isConstTypeReference(r))return function n(t){switch(t.kind){case 10:case 14:case 8:case 9:case 103:case 88:case 188:case 189:return!0;case 196:return n(t.expression);case 203:var r=t.operator,a=t.operand;return 39===r&&(8===a.kind||9===a.kind)||38===r&&8===a.kind;case 190:case 191:var i=t.expression;if(e.isIdentifier(i)){var o=Dh(i);return o&&2097152&o.flags&&(o=Ar(o)),!!(o&&384&o.flags&&1===Gi(o))}}return!1}(a)||Ht(a,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Rc(o);ph(r),o=Ru(uu(o));var s=Nc(r);return t&&s!==ye&&(yd(s,Nu(o))||Dd(o,s,n,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),s}function Zg(n){return function(n){var t=n.name.escapedText;switch(n.keywordToken){case 96:if("target"!==t)return Gb(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"target");break;case 93:"meta"!==t&&Gb(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"meta")}}(n),96===n.keywordToken?function(n){var t=e.getNewTargetContainer(n);if(t){if(158===t.kind){var r=qr(t.parent);return hi(r)}var r=qr(t);return hi(r)}return Ht(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ye}(n):93===n.keywordToken?function(n){F!==e.ModuleKind.ESNext&&F!==e.ModuleKind.System&&Ht(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system);var t=e.getSourceFileOfNode(n);return e.Debug.assert(!!(1048576&t.flags),"Containing file is missing import meta node flag."),e.Debug.assert(!!t.externalModuleIndicator,"Containing file should be a module."),"meta"===n.name.escapedText?Pn||(Pn=yl("ImportMeta",0,!0))||Ue:ye}(n):e.Debug.assertNever(n.keywordToken)}function $g(n){var t=hi(n);if(B){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return Au(t)}return t}function e_(e,n){var t=e.parameters.length-(e.hasRestParameter?1:0);if(n<t)return e.parameters[n].escapedName;var r=e.parameters[t]||me,a=hi(r);if(_u(a)){var i=a.target.associatedNames,o=n-t;return i&&i[o]||r.escapedName+"_"+o}return r.escapedName}function n_(e,n){return t_(e,n)||fe}function t_(n,t){var r=n.parameters.length-(n.hasRestParameter?1:0);if(t<r)return $g(n.parameters[t]);if(n.hasRestParameter){var a=hi(n.parameters[r]),i=t-r;if(!_u(a)||a.target.hasRestElement||i<(a.typeArguments||e.emptyArray).length)return lc(a,Ic(i))}}function r_(e,n){var t=a_(e),r=s_(e),a=t-(r?1:0);if(r&&n===a)return r;for(var i=[],o=[],s=n;s<a;s++)i.push(n_(e,s)),o.push(e_(e,s));r&&(i.push(lc(r,Le)),o.push(e_(e,a)));var l=i_(e);return Rl(i,l<n?0:l-n,!!r,!1,o)}function a_(n){var t=n.parameters.length;if(n.hasRestParameter){var r=hi(n.parameters[t-1]);if(_u(r))return t+(r.typeArguments||e.emptyArray).length-1}return t}function i_(e){if(e.hasRestParameter){var n=hi(e.parameters[e.parameters.length-1]);if(_u(n)){var t=n.target.minLength;if(t>0)return e.parameters.length-1+t}}return e.minArgumentCount}function o_(e){if(e.hasRestParameter){var n=hi(e.parameters[e.parameters.length-1]);return!_u(n)||n.target.hasRestElement}return!1}function s_(e){if(e.hasRestParameter){var n=hi(e.parameters[e.parameters.length-1]);return _u(n)?function(e){var n=yu(e);return n&&xl(n)}(n):n}}function l_(e){var n=s_(e);return!n||nu(n)||Va(n)?void 0:n}function c_(e){return d_(e,ke)}function d_(e,n){return e.parameters.length>0?n_(e,0):n}function u_(n,t){n.typeParameters=t.typeParameters,t.thisParameter&&(!(i=n.thisParameter)||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(n.thisParameter=Du(t.thisParameter,void 0)),m_(n.thisParameter,hi(t.thisParameter)));for(var r=n.parameters.length-(n.hasRestParameter?1:0),a=0;a<r;a++){var i=n.parameters[a];e.getEffectiveTypeAnnotationNode(i.valueDeclaration)||m_(i,n_(t,a))}n.hasRestParameter&&(!zt(i=e.last(n.parameters))&&e.getEffectiveTypeAnnotationNode(i.valueDeclaration)||m_(i,r_(t,r)))}function m_(n,t){var r=tr(n);if(!r.type){r.type=t;var a=n.valueDeclaration;73!==a.name.kind&&(r.type===ve&&(r.type=ii(a.name)),function n(t){for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||(73===i.name.kind?tr(qr(i)).type=qa(i):n(i.name))}}(a.name))}}function p_(e){var n=bl(!0);return n!==We?Js(n,[e=Oy(e)||ve]):ve}function f_(e){var n=Tn||(Tn=yl("PromiseLike",1,!0))||We;return n!==We?Js(n,[e=Oy(e)||ve]):ve}function g_(n,t){var r=p_(t);return r===ve?(Ht(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ye):(El(!0)||Ht(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),r)}function __(n,t){if(!n.body)return ye;var r,a,i,o=e.getFunctionFlags(n),s=0!=(2&o),l=0!=(1&o),c=Oe;if(219!==n.body.kind)r=z_(n.body,t&&-9&t),s&&(r=Iy(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(l){var d=T_(n,t);d?d.length>0&&(r=Gl(d,2)):c=ke;var u=function(n,t){var r=[],a=[],i=0!=(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,function(n){var o,s=n.expression?ly(n.expression,t):be;if(e.pushIfUnique(r,v_(n,s,fe,i)),n.asteriskToken){var l=Sv(s,i?19:17,n.expression);o=l&&l.nextType}else o=Wp(n);o&&e.pushIfUnique(a,o)}),{yieldTypes:r,nextTypes:a}}(n,t),m=u.yieldTypes,p=u.nextTypes;a=e.some(m)?Gl(m,2):void 0,i=e.some(p)?Kl(p):void 0}else{var f=T_(n,t);if(!f)return 2&o?g_(n,ke):ke;if(0===f.length)return 2&o?g_(n,Oe):Oe;r=Gl(f,2)}if(r||a||i){var g=Qp(n);if(g||(a&&Gu(n,a,1),r&&Gu(n,r),i&&Gu(n,i)),r&&cu(r)||a&&cu(a)||i&&cu(i)){var _=g?g===Ts(n)?l?void 0:r:Kp(Rs(g),n):void 0;l?(a=gu(a,_,0,s),r=gu(r,_,1,s),i=gu(i,_,2,s)):r=function(e,n,t){return e&&cu(e)&&(e=fu(e,n?t?My(n):n:void 0)),e}(r,_,s)}a&&(a=Nu(a)),r&&(r=Nu(r)),i&&(i=Nu(i))}return l?y_(a||ke,r||c,i||Mp(2,n)||ve,s):s?p_(r||c):r||c}function y_(e,n,t,r){var a=r?nt:tt,i=a.getGlobalGeneratorType(!1);if(e=a.resolveIterationType(e,void 0)||ve,n=a.resolveIterationType(n,void 0)||ve,t=a.resolveIterationType(t,void 0)||ve,i===We){var o=a.getGlobalIterableIteratorType(!1),s=o!==We?Cv(o,a):void 0,l=s?s.returnType:fe,c=s?s.nextType:he;return gd(n,l)&&gd(c,t)?o!==We?Ll(o,[e]):(a.getGlobalIterableIteratorType(!0),Ue):(a.getGlobalGeneratorType(!0),Ue)}return Ll(i,[e,n,t])}function v_(n,t,r,a){var i=n.expression||n,o=n.asteriskToken?vv(a?19:17,t,r,i):t;return a?Oy(o,i,n.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function h_(e,n,t,r){var a=0;if(r){for(var i=n;i<t.length;i++)a|=S.get(t[i])||32768;for(i=e;i<n;i++)a&=~(S.get(t[i])||0);for(i=0;i<e;i++)a|=S.get(t[i])||32768}else{for(i=e;i<n;i++)a|=T.get(t[i])||128;for(i=0;i<e;i++)a&=~(T.get(t[i])||0)}return a}function b_(n){if(!n.possiblyExhaustive)return!1;if(200===n.expression.kind){var t=oy(n.expression.expression),r=h_(0,0,Vm(n),!0);return!!(131072&Km(zo(t)||t,function(e){return(Lm(e)&r)===r}).flags)}var a=oy(n.expression);if(!du(a))return!1;var i,o,s=Fm(n);return!(!s.length||e.some(s,lu))&&(i=Wm(a,Rc),o=s,1048576&i.flags?!e.forEach(i.types,function(n){return!e.contains(o,n)}):e.contains(o,i))}function E_(n){return!!(128&n.flags)&&!e.some(n.body.statements,function(e){return 233===e.kind&&b_(e)})}function T_(n,t){var r=e.getFunctionFlags(n),a=[],i=E_(n),o=!1;if(e.forEachReturnStatement(n.body,function(s){var l=s.expression;if(l){var c=z_(l,t&&-9&t);2&r&&(c=Iy(c,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&c.flags&&(o=!0),e.pushIfUnique(a,c)}else i=!0}),0!==a.length||i||!o&&!function(e){switch(e.kind){case 197:case 198:return!0;case 157:return 189===e.parent.kind;default:return!1}}(n))return!(B&&a.length&&i)||Hg(n)&&a.some(function(e){return e.symbol===n.symbol})||e.pushIfUnique(a,he),a}function S_(n,r){if(t){var a=e.getFunctionFlags(n),i=r&&x_(r,a);if((!i||!N_(i,16385))&&156!==n.kind&&!e.nodeIsMissing(n.body)&&219===n.body.kind&&E_(n)){var o=256&n.flags;if(i&&131072&i.flags)Ht(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!o)Ht(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&B&&!gd(he,i))Ht(e.getEffectiveReturnTypeNode(n),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(P.noImplicitReturns){if(!i){if(!o)return;if(Kv(n,Rs(Ts(n))))return}Ht(e.getEffectiveReturnTypeNode(n)||n,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function L_(n,t){if(e.Debug.assert(157!==n.kind||e.isObjectLiteralMethod(n)),gh(n),t&&4&t&&id(n)){if(!e.getEffectiveReturnTypeNode(n)&&sd(n)){var r=rr(n);if(r.contextFreeType)return r.contextFreeType;var a=__(n,t),i=co(void 0,void 0,void 0,e.emptyArray,a,void 0,0,!1,!1),o=sa(n.symbol,A,[i],e.emptyArray,void 0,void 0);return o.objectFlags|=1048576,r.contextFreeType=o}return qe}vb(n)||197!==n.kind||Lb(n);var s=hi(Wr(n.symbol));return Va(s)?s:(A_(n,t),s)}function A_(n,t){var r=rr(n);if(!(1024&r.flags)){var a=Zp(n);if(!(1024&r.flags)){if(r.flags|=1024,a){var i=hi(Wr(n.symbol));if(Va(i))return;var o=os(i,0)[0];if(id(n)){var s=qp(n);t&&2&t&&function(n,t,r){for(var a=n.parameters.length-(n.hasRestParameter?1:0),i=0;i<a;i++){var o=n.parameters[i].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&nm(r.inferences,Nc(s),n_(t,i))}}var l=s_(t);if(l&&262144&l.flags){u_(n,qc(t,r.nonFixingMapper));var c=a_(t)-1;nm(r.inferences,r_(n,c),l)}}(o,a,s),u_(o,s?qc(a,s.mapper):a)}if(!Ms(n)&&!o.resolvedReturnType){var l=__(n,t);o.resolvedReturnType||(o.resolvedReturnType=l)}}my(n)}}}function x_(e,n){var t=!!(2&n);return e&&1&n?Vv(1,e,t)||ye:e&&t?Oy(e)||ye:e}function C_(e,n,t,r){if(void 0===r&&(r=!1),!gd(n,Be)){var a=r&&Ry(n);return Wt(e,!!a&&gd(a,Be),t),!1}return!0}function D_(n){if(!e.isCallExpression(n))return!1;if(!e.isBindableObjectDefinePropertyCall(n))return!1;var t=z_(n.arguments[2]);if(Fa(t,"value")){var r=as(t,"writable"),a=r&&hi(r);if(!a||a===xe||a===Ce)return!0;if(r&&r.valueDeclaration&&e.isPropertyAssignment(r.valueDeclaration)){var i=ly(r.valueDeclaration.initializer);if(i===xe||i===Ce)return!0}return!1}return!as(t,"set")}function R_(n){return!!(8&e.getCheckFlags(n)||4&n.flags&&64&e.getDeclarationModifierFlagsFromSymbol(n)||3&n.flags&&2&If(n)||98304&n.flags&&!(65536&n.flags)||8&n.flags||e.some(n.declarations,D_))}function M_(n,t){if(R_(t)){if(4&t.flags&&(190===n.kind||191===n.kind)&&101===n.expression.kind){var r=e.getContainingFunction(n);return!r||158!==r.kind||!t.valueDeclaration||!(r.parent===t.valueDeclaration.parent||r===t.valueDeclaration.parent)}return!0}return!1}function I_(n){if(190===n.kind||191===n.kind){var t=e.skipParentheses(n.expression);if(73===t.kind){var r=rr(t).resolvedSymbol;if(2097152&r.flags){var a=_r(r);return!!a&&252===a.kind}}}return!1}function O_(n,t){var r=e.skipOuterExpressions(n,3);return 73===r.kind||190===r.kind||191===r.kind||(Ht(n,t),!1)}function k_(e){return N_(e,2112)?w_(e,3)||N_(e,296)?Be:Ae:Le}function N_(e,n){if(e.flags&n&-131073||131072&n&&wo(e))return!0;if(3145728&e.flags)for(var t=0,r=e.types;t<r.length;t++)if(N_(r[t],n))return!0;return!1}function w_(e,n,t){return!!(e.flags&n)||!(t&&114691&e.flags)&&(!!(296&n)&&gd(e,Le)||!!(2112&n)&&gd(e,Ae)||!!(132&n)&&gd(e,Se)||!!(528&n)&&gd(e,Me)||!!(16384&n)&&gd(e,Oe)||!!(131072&n)&&gd(e,ke)||!!(65536&n)&&gd(e,Ee)||!!(32768&n)&&gd(e,he)||!!(4096&n)&&gd(e,Ie)||!!(67108864&n)&&gd(e,Ge))}function P_(n,t,r){return 1048576&n.flags?e.every(n.types,function(e){return P_(e,t,r)}):w_(n,t,r)}function G_(n){return!!(16&e.getObjectFlags(n))&&!!n.symbol&&F_(n.symbol)}function F_(e){return 0!=(128&e.flags)}function V_(n,t,r,a,i){void 0===i&&(i=!1);var o=n.properties,s=o[r];if(276===s.kind||277===s.kind){var l=s.name,c=Wl(l);if(Qi(c)){var d=as(t,to(c));d&&(Qf(d,s,i),kf(s,!1,t,d))}var u=Ka(s,lc(t,c,l));return U_(277===s.kind?s:s.initializer,u)}if(278===s.kind){if(!(r<o.length-1)){G<99&&ub(s,4);var m=[];if(a)for(var p=0,f=a;p<f.length;p++){var g=f[p];e.isSpreadAssignment(g)||m.push(g.name)}return u=Ha(t,m,t.symbol),gb(a,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),U_(s.expression,u)}Ht(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Ht(s,e.Diagnostics.Property_assignment_expected)}function B_(n,t,r,a,i){var o=n.elements,s=o[r];if(211!==s.kind){if(209!==s.kind){var l=Ic(r);if(au(t)){var c=$p(s)?8:0,d=cc(t,l,bg(s,l),c)||ye;return U_(s,Ka(s,$p(s)?Am(d,524288):d),i)}return U_(s,a,i)}if(r<o.length-1)Ht(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(205!==u.kind||60!==u.operatorToken.kind)return gb(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),U_(u,Hm(t,_u)?Wm(t,function(e){return Ml(e,r)}):xl(a),i);Ht(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function U_(n,t,r,a){var i;if(277===n.kind){var o=n;o.objectAssignmentInitializer&&(!B||32768&Eu(ly(o.objectAssignmentInitializer))||(t=Am(t,524288)),j_(o.name,o.equalsToken,o.objectAssignmentInitializer,r)),i=n.name}else i=n;return 205===i.kind&&60===i.operatorToken.kind&&(K_(i,r),i=i.left),189===i.kind?function(e,n,t){var r=e.properties;if(B&&0===r.length)return Gf(n,e);for(var a=0;a<r.length;a++)V_(e,n,a,r,t);return n}(i,t,a):188===i.kind?function(e,n,t){var r=e.elements;G<2&&P.downlevelIteration&&ub(e,512);for(var a=vv(65,n,he,e)||ye,i=0;i<r.length;i++)B_(e,n,i,a,t);return n}(i,t,r):function(n,t,r){var a=ly(n,r),i=278===n.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;return O_(n,i)&&bd(t,a,n,n),t}(i,t,r)}function H_(e,n){return 0!=(98304&n.flags)||yd(e,n)}function K_(n,t){return e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n)?ly(n.right,t):j_(n.left,n.operatorToken,n.right,t,n)}function j_(n,r,a,i,o){var s,l=r.kind;if(60===l&&(189===n.kind||188===n.kind))return U_(n,ly(a,i),i,101===a.kind);s=54===l||55===l?fv(n,i):ly(n,i);var c,d,u=ly(a,i);switch(l){case 40:case 41:case 63:case 64:case 42:case 65:case 43:case 66:case 39:case 62:case 46:case 67:case 47:case 68:case 48:case 69:case 50:case 71:case 51:case 72:case 49:case 70:if(s===Ne||u===Ne)return Ne;s=Gf(s,n),u=Gf(u,a);var m=void 0;if(528&s.flags&&528&u.flags&&void 0!==(m=function(e){switch(e){case 50:case 71:return 55;case 51:case 72:return 36;case 49:case 70:return 54;default:return}}(r.kind)))return Ht(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(m)),Le;var p,f=C_(n,s,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),g=C_(a,u,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(w_(s,3)&&w_(u,3)||!N_(s,2112)&&!N_(u,2112))p=Le;else if(w_(s,2112)&&w_(u,2112)){switch(l){case 48:case 69:E()}p=Ae}else E(function(e,n){return w_(e,2112)&&w_(n,2112)}),p=ye;return f&&g&&h(p),p;case 38:case 61:if(s===Ne||u===Ne)return Ne;w_(s,132)||w_(u,132)||(s=Gf(s,n),u=Gf(u,a));var _=void 0;return w_(s,296,!0)&&w_(u,296,!0)?_=Le:w_(s,2112,!0)&&w_(u,2112,!0)?_=Ae:w_(s,132,!0)||w_(u,132,!0)?_=Se:(Va(s)||Va(u))&&(_=s===ye||u===ye?ye:fe),_&&!v(l)?_:_?(61===l&&h(_),_):(E(function(e,n){return w_(e,2543)&&w_(n,2543)}),fe);case 28:case 30:case 31:case 32:return v(l)&&(s=uu(Gf(s,n)),u=uu(Gf(u,a)),b(function(e,n){return yd(e,n)||yd(n,e)||gd(e,Be)&&gd(n,Be)})),Me;case 33:case 34:case 35:case 36:return b(function(e,n){return H_(e,n)||H_(n,e)}),Me;case 95:return function(n,t,r,a){return r===Ne||a===Ne?Ne:(!Va(r)&&P_(r,131068)&&Ht(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Va(a)||kh(a)||fd(a,rn)||Ht(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Me)}(n,a,s,u);case 94:return function(n,t,r,a){return r===Ne||a===Ne?Ne:(r=Gf(r,n),a=Gf(a,t),yd(r,Se)||w_(r,12584)||Ht(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),P_(a,126091264)||Ht(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Me)}(n,a,s,u);case 54:return 4194304&Lm(s)?Gl([(d=B?s:uu(u),Wm(d,Su)),u]):s;case 55:return 8388608&Lm(s)?Gl([Tu(s),u],2):s;case 60:var y=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return function(n,t){if(2===n)for(var r=0,a=Go(t);r<a.length;r++){var i=a[r],o=hi(i);if(o.symbol&&32&o.symbol.flags){var s=i.escapedName,l=sr(i.valueDeclaration,s,788968,void 0,s,!1);if(l&&l.declarations.some(e.isJSDocTypedefTag))return Gb(l.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s)),Gb(i.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s))}}}(y,u),function(t){switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var r=qr(n),i=e.getAssignedExpandoInitializer(a);return i&&e.isObjectLiteralExpression(i)&&r&&e.hasEntries(r.exports);default:return!1}}(y)?(524288&u.flags&&(2===y||6===y||Id(u)||Sm(u)||1&e.getObjectFlags(u))||h(u),s):(h(u),Ru(u));case 27:return!P.allowUnreachableCode&&function n(t){switch((t=e.skipParentheses(t)).kind){case 73:case 10:case 13:case 194:case 207:case 14:case 8:case 9:case 103:case 88:case 97:case 142:case 197:case 210:case 198:case 188:case 189:case 200:case 214:case 262:case 261:return!0;case 206:return n(t.whenTrue)&&n(t.whenFalse);case 205:return!e.isAssignmentOperator(t.operatorToken.kind)&&n(t.left)&&n(t.right);case 203:case 204:switch(t.operator){case 52:case 38:case 39:case 53:return!0}return!1;case 201:case 195:case 213:default:return!1}}(n)&&(73!==(c=a).kind||"eval"!==c.escapedText)&&Ht(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),u;default:return e.Debug.fail()}function v(t){var r=N_(s,12288)?n:N_(u,12288)?a:void 0;return!r||(Ht(r,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t)),!1)}function h(r){t&&e.isAssignmentOperator(l)&&(!O_(n,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)||e.isIdentifier(n)&&"exports"===e.unescapeLeadingUnderscores(n.escapedText)||bd(r,s,n,a))}function b(e){return!e(s,u)&&(E(e),!0)}function E(n){var t=!1,a=o||r,i=Sa(s,u),l=i[0],c=i[1];if(n){var d=Oy(s),m=Oy(u);t=!(d===s&&m===u)&&!(!d||!m)&&n(d,m)}(function(n,t,a,i){var o;switch(r.kind){case 35:case 33:o="false";break;case 36:case 34:o="true"}if(o)return Wt(n,t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,a,i)})(a,t,l,c)||Wt(a,t,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),l,c)}}function W_(n){t&&(4096&n.flags&&!function(n){for(var t=n,r=n.parent;r;){if(e.isFunctionLike(r)&&t===r.body)return!1;if(e.isClassLike(t))return!0;t=r,r=r.parent}return!1}(n)||wb(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Rp(n)&&Ht(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(n);if(!r)return fe;var a=e.getFunctionFlags(r);if(!(1&a))return fe;var i=0!=(2&a);n.asteriskToken&&(i&&G<99&&ub(n,53248),!i&&G<2&&P.downlevelIteration&&ub(n,256));var o=Ms(r),s=o&&Bv(o,i),l=s&&s.yieldType||fe,c=s&&s.nextType||fe,d=i?Oy(c)||fe:c,u=n.expression?ly(n.expression):be,m=v_(n,u,d,i);return o&&m&&bd(m,l,n.expression||n,n.expression),n.asteriskToken?bv(i?19:17,1,u,n.expression)||fe:o?Vv(2,o,i)||fe:Mp(2,r)||fe}function q_(n,t,r,a){var i=function(n){return 269!==n.kind||e.isJsxSelfClosingElement(n.parent)?n:n.parent.parent}(n),o=i.contextualType,s=i.inferenceContext;i.contextualType=t,i.inferenceContext=r;var l=ly(n,1|a|(r?2:0)),c=N_(l,2944)&&Y_(l,Kp(t,n))?Rc(l):l;return i.contextualType=o,i.inferenceContext=s,c}function z_(e,n){var t=rr(e);if(!t.resolvedType){if(n&&0!==n)return ly(e,n);var r=it;it=ot,t.resolvedType=ly(e,n),it=r}return t.resolvedType}function X_(n){return 195===(n=e.skipParentheses(n)).kind||213===n.kind}function J_(n){var t=e.getEffectiveInitializer(n),r=oy(t,!0),a=e.isParameter(n)&&186===n.name.kind&&_u(r)&&!r.target.hasRestElement&&Qs(r)<n.name.elements.length?function(n,t){for(var r=t.elements,a=Qs(n),i=a?n.typeArguments.slice():[],o=a;o<r.length;o++){var s=r[o];(o<r.length-1||187!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&$p(s)?ri(s,!1,!1):fe),e.isOmittedExpression(s)||$p(s)||Pu(s,fe))}return Rl(i,n.target.minLength,!1,n.target.readonly)}(r,n.name):r,i=2&e.getCombinedNodeFlags(n)||e.isDeclarationReadonly(n)||X_(t)||Y_(a,Wp(t))?a:mu(a);if(e.isInJSFile(n)){if(98304&i.flags)return Pu(n,fe),fe;if(iu(i))return Pu(n,fn),fn}return i}function Y_(n,t){if(t){if(3145728&t.flags){var r=t.types;return e.some(r,function(e){return Y_(n,e)})}if(58982400&t.flags){var a=zo(t)||ve;return N_(a,4)&&N_(n,128)||N_(a,8)&&N_(n,256)||N_(a,64)&&N_(n,2048)||N_(a,4096)&&N_(n,8192)||Y_(n,a)}return!!(4194432&t.flags&&N_(n,128)||256&t.flags&&N_(n,256)||2048&t.flags&&N_(n,2048)||512&t.flags&&N_(n,512)||8192&t.flags&&N_(n,8192))}return!1}function Q_(n){var t=n.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&Q_(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t))&&Q_(t.parent)}function Z_(e,n,t,r){var a=ly(e,n,r);return Q_(e)?Rc(a):X_(e)?a:fu(a,Kp(2===arguments.length?Wp(e):t,e))}function $_(e,n){return 150===e.name.kind&&sf(e.name),Z_(e.initializer,n)}function ey(e,n){return Mb(e),150===e.name.kind&&sf(e.name),ny(e,L_(e,n),n)}function ny(n,t,r){if(r&&10&r){var a=mg(t,0,!0),i=mg(t,1,!0),o=a||i;if(o&&o.typeParameters){var s=Hp(n);if(s&&!Ci(s)){var l=mg(xu(s),a?0:1,!1);if(l&&!l.typeParameters){if(8&r)return ty(n,r),qe;var c=qp(n),d=c.signature&&Rs(c.signature),u=d&&ug(d);if(u&&!u.typeParameters&&!e.every(c.inferences,ry)){var m=function(n,t){for(var r,a,i=[],o=0,s=t;o<s.length;o++){var l=s[o],c=l.symbol.escapedName;if(ay(n.inferredTypeParameters,c)||ay(i,c)){var d=iy(e.concatenate(n.inferredTypeParameters,i),c),u=qt(262144,d),m=ra(u);m.target=l,r=e.append(r,l),a=e.append(a,m),i.push(m)}else i.push(l)}if(a)for(var p=Vc(r,a),f=0,g=a;f<g.length;f++){var l=g[f];l.mapper=p}return i}(c,o.typeParameters),p=Ns(o,m),f=e.map(c.inferences,function(e){return ju(e.typeParameter)});if(Fu(p,l,function(e,n){nm(f,e,n,0,!0)}),e.some(f,ry)&&(Vu(p,l,function(e,n){nm(f,e,n)}),!function(e,n){for(var t=0;t<e.length;t++)if(ry(e[t])&&ry(n[t]))return!0;return!1}(c.inferences,f)))return function(e,n){for(var t=0;t<e.length;t++)!ry(e[t])&&ry(n[t])&&(e[t]=n[t])}(c.inferences,f),c.inferredTypeParameters=e.concatenate(c.inferredTypeParameters,m),Vs(p)}return Vs(pg(o,l,c))}}}}return t}function ty(e,n){2&n&&(qp(e).flags|=4)}function ry(e){return!(!e.candidates&&!e.contraCandidates)}function ay(n,t){return e.some(n,function(e){return e.symbol.escapedName===t})}function iy(e,n){for(var t=n.length;t>1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;for(var r=n.slice(0,t),a=1;;a++){var i=r+a;if(!ay(e,i))return i}}function oy(n,t){var r=e.skipParentheses(n);if(192!==r.kind||99===r.expression.kind||e.isRequireCall(r,!0)||zg(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Nc(r.type)}else{var a=dg(wf(r.expression));if(a&&!a.typeParameters)return Rs(a)}return t?z_(n):ly(n)}function sy(e){var n=rr(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=fe;var r=n.contextFreeType=ly(e,4);return e.contextualType=t,r}function ly(n,a,i){var o=d;d=n,b=0;var s=ny(n,function(n,a,i){var o=n.kind;if(r)switch(o){case 210:case 197:case 198:r.throwIfCancellationRequested()}switch(o){case 73:return fp(n);case 101:return bp(n);case 99:return Sp(n);case 97:return Te;case 14:case 10:return Dc(Ic(n.text));case 8:return Vb(n),Dc(Ic(+n.text));case 9:return function(n){if(!(e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent))&&G<99&&Gb(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext));}(n),Dc(function(n){return Ic({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}(n));case 103:return De;case 88:return xe;case 207:return function(n){return e.forEach(n.templateSpans,function(n){N_(ly(n.expression),12288)&&Ht(n.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),Se}(n);case 13:return mn;case 188:return ef(n,a,i);case 189:return df(n,a);case 190:return Vf(n);case 149:return Bf(n);case 191:return eg(n);case 192:if(93===n.expression.kind)return Xg(n);case 193:return qg(n,a);case 194:return function(e){return hb(e,e.typeArguments),G<2&&ub(e,131072),Rs(Ug(e))}(n);case 196:return function(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return r?Qg(r,r.typeExpression.type,n.expression,t):ly(n.expression,t)}(n,a);case 210:return function(e){return Yv(e),gh(e),hi(qr(e))}(n);case 197:case 198:return L_(n,a);case 200:return function(e){return ly(e.expression),Nt}(n);case 195:case 213:return function(e){return Qg(e,e.type,e.expression)}(n);case 214:return function(e){return xu(ly(e.expression))}(n);case 215:return Zg(n);case 199:return function(n){ly(n.expression);var t=e.skipParentheses(n.expression);if(190!==t.kind&&191!==t.kind)return Ht(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Me;var r=Yr(rr(t).resolvedSymbol);return r&&R_(r)&&Ht(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Me}(n);case 201:return function(e){return ly(e.expression),be}(n);case 202:return function(n){if(t){if(!(16384&n.flags)){var r=e.getSourceFileOfNode(n);if(!Nb(r)){var a=e.getSpanOfTokenAtPosition(r,n.pos),i=e.createFileDiagnostic(r,a.start,a.length,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),o=e.getContainingFunction(n);if(o&&158!==o.kind){e.Debug.assert(0==(2&e.getFunctionFlags(o)),"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,s)}It.add(i)}}Rp(n)&&Ht(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var l=ly(n.expression),c=Iy(l,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c!==l||c===ye||3&l.flags||Kt(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),c}(n);case 203:return function(n){var t=ly(n.operand);if(t===Ne)return Ne;switch(n.operand.kind){case 8:switch(n.operator){case 39:return Dc(Ic(-n.operand.text));case 38:return Dc(Ic(+n.operand.text))}break;case 9:if(39===n.operator)return Dc(Ic({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 38:case 39:case 53:return Gf(t,n.operand),N_(t,12288)&&Ht(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),38===n.operator?(N_(t,2112)&&Ht(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),Ta(t)),Le):k_(t);case 52:fv(n.operand);var r=12582912&Lm(t);return 4194304===r?xe:8388608===r?De:Me;case 44:case 45:return C_(n.operand,Gf(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&O_(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),k_(t)}return ye}(n);case 204:return function(n){var t=ly(n.operand);return t===Ne?Ne:(C_(n.operand,Gf(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&O_(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),k_(t))}(n);case 205:return K_(n,a);case 206:return function(e,n){return fv(e.condition),Gl([ly(e.whenTrue,n),ly(e.whenFalse,n)],2)}(n,a);case 209:return function(e,n){return G<2&&ub(e,P.downlevelIteration?1536:2048),vv(33,ly(e.expression,n),he,e.expression)}(n,a);case 211:return be;case 208:return W_(n);case 216:return n.type;case 271:return Mf(n,a);case 261:case 262:return function(e,n){return gh(e),Af(e)||fe}(n);case 265:return function(n){return Cf(n.openingFragment),2===P.jsx&&(P.jsxFactory||e.getSourceFileOfNode(n).pragmas.has("jsx"))&&Ht(n,P.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),gf(n),Af(n)||fe}(n);case 269:return _f(n,a);case 263:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ye}(n,a,i),a);return G_(s)&&function(n,t){if(190===n.parent.kind&&n.parent.expression===n||191===n.parent.kind&&n.parent.expression===n||(73===n.kind||149===n.kind)&&xh(n)||168===n.parent.kind&&n.parent.exprName===n||258===n.parent.kind&&(P.preserveConstEnums||4194304&n.flags)||Ht(n,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),P.isolatedModules){e.Debug.assert(!!(128&t.symbol.flags));var r=t.symbol.valueDeclaration;4194304&r.flags&&Ht(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(n,s),d=o,s}function cy(n){n.expression&&wb(n.expression,e.Diagnostics.Type_expected),ph(n.constraint),ph(n.default);var r=Ui(qr(n));zo(r),function(e){return Qo(e)!==Xe}(r)||Ht(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Ta(r));var a=Ho(r),i=Zo(r);a&&i&&hd(i,so(nd(a,Fc(r,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),t&&qv(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function dy(n){pb(n),lv(n);var t=e.getContainingFunction(n);e.hasModifier(n,92)&&(158===t.kind&&e.nodeIsPresent(t.body)||Ht(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&Ht(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&("this"===n.name.escapedText||"new"===n.name.escapedText)&&(0!==t.parameters.indexOf(n)&&Ht(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),158!==t.kind&&162!==t.kind&&167!==t.kind||Ht(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),198===t.kind&&Ht(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!n.dotDotDotToken||e.isBindingPattern(n.name)||gd(hi(n.symbol),_n)||Ht(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function uy(n,t,r){for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];if(!e.isOmittedExpression(o)){var s=o.name;if(73===s.kind&&s.escapedText===r)return Ht(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((186===s.kind||185===s.kind)&&uy(s,t,r))return!0}}}function my(n){163===n.kind?function(n){pb(n)||function(n){var t=n.parameters[0];if(1!==n.parameters.length)return Gb(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(t.dotDotDotToken)return Gb(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(t))return Gb(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Gb(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Gb(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Gb(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(139!==t.type.kind&&136!==t.type.kind){var r=Nc(t.type);return 4&r.flags||8&r.flags?Gb(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(t.name),Ta(r),Ta(n.type?Nc(n.type):fe)):1048576&r.flags&&P_(r,128,!0)?Gb(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Gb(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}n.type||Gb(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(n)}(n):166!==n.kind&&240!==n.kind&&167!==n.kind&&161!==n.kind&&158!==n.kind&&162!==n.kind||vb(n);var r=e.getFunctionFlags(n);if(4&r||(3==(3&r)&&G<99&&ub(n,12288),2==(3&r)&&G<4&&ub(n,64),0!=(3&r)&&G<2&&ub(n,128)),zv(n.typeParameters),e.forEach(n.parameters,dy),n.type&&ph(n.type),t){!function(n){G>=2||P.noEmit||!e.hasRestParameter(n)||4194304&n.flags||e.nodeIsMissing(n.body)||e.forEach(n.parameters,function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===ee.escapedName&&Ht(n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(n);var a=e.getEffectiveReturnTypeNode(n);if(j&&!a)switch(n.kind){case 162:Ht(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 161:Ht(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(a){var i=e.getFunctionFlags(n);if(1==(5&i)){var o=Nc(a);if(o===Oe)Ht(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Vv(0,o,0!=(2&i))||fe;hd(y_(s,Vv(1,o,0!=(2&i))||s,Vv(2,o,0!=(2&i))||ve,!!(2&i)),o,a)}}else 2==(3&i)&&function(n,t){var r=Nc(t);if(G>=2){if(r===ye)return;var a=bl(!0);if(a!==We&&!bi(r,a))return void Ht(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(n){Ny(n&&e.getEntityNameFromTypeNode(n))}(t),r===ye)return;var i=e.getEntityNameFromTypeNode(t);if(void 0===i)return void Ht(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ta(r));var o=Mr(i,111551,!0),s=o?hi(o):ye;if(s===ye)return void(73===i.kind&&"Promise"===i.escapedText&&Ei(r)===bl(!1)?Ht(t,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Ht(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(i)));var l=Ln||(Ln=yl("PromiseConstructorLike",0,!0))||Ue;if(l===Ue)return void Ht(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(i));if(!hd(s,l,t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var c=i&&oh(i),d=ir(n.locals,c.escapedText,111551);if(d)return void Ht(d.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(c),e.entityNameToString(i))}Iy(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(n,a)}163!==n.kind&&295!==n.kind&&Hy(n)}}function py(n){for(var t=e.createMap(),r=0,a=n.members;r<a.length;r++){var i=a[r];if(154===i.kind){var o=void 0,s=i.name;switch(s.kind){case 10:case 8:o=s.text;break;case 73:o=e.idText(s);break;default:continue}t.get(o)?(Ht(e.getNameOfDeclaration(i.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Ht(i.name,e.Diagnostics.Duplicate_identifier_0,o)):t.set(o,!0)}}}function fy(n){if(242===n.kind){var t=qr(n);if(t.declarations.length>0&&t.declarations[0]!==n)return}var r=Bs(qr(n));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o<s.length;o++){var l=s[o];if(1===l.parameters.length&&l.parameters[0].type)switch(l.parameters[0].type.kind){case 139:i?Ht(l,e.Diagnostics.Duplicate_string_index_signature):i=!0;break;case 136:a?Ht(l,e.Diagnostics.Duplicate_number_index_signature):a=!0}}}function gy(n){pb(n)||function(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&"constructor"===n.name.text)return Gb(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Rb(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(242===n.parent.kind){if(Rb(n.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(n.initializer)return Gb(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(169===n.parent.kind){if(Rb(n.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(n.initializer)return Gb(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(4194304&n.flags&&Ob(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||4194304&n.flags||e.hasModifier(n,160)))return Gb(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(n)||Sb(n.name),lv(n)}function _y(n){my(n),function(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var a=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return Pb(n,a,r.end-a,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(n)||function(n){var t=e.getEffectiveReturnTypeNode(n);t&&Gb(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(n),ph(n.body);var r=qr(n);if(n===e.getDeclarationOfKind(r,n.kind)&&Cy(r),!e.nodeIsMissing(n.body)&&t){var a=n.parent;if(e.getClassExtendsHeritageElement(a)){gp(n.parent,a);var i=vp(a),o=yp(n);if(o){if(i&&Ht(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),e.some(n.parent.members,function(n){return 155===n.kind&&!e.hasModifier(n,32)&&!!n.initializer})||e.some(n.parameters,function(n){return e.hasModifier(n,92)})){for(var s=void 0,l=0,c=n.body.statements;l<c.length;l++){var d=c[l];if(222===d.kind&&e.isSuperCall(d.expression)){s=d;break}if(!e.isPrologueDirective(d))break}s||Ht(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else i||Ht(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function yy(n){if(t){if(vb(n)||function(n){if(!(4194304&n.flags)){if(G<1)return Gb(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===n.body&&!e.hasModifier(n,128))return Pb(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(n.body&&e.hasModifier(n,128))return Gb(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.typeParameters)return Gb(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return Db(e)||e.parameters.length===(159===e.kind?0:1)}(n))return Gb(n.name,159===n.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(160===n.kind){if(n.type)return Gb(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.assertDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return Gb(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return Gb(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return Gb(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(n)||Sb(n.name),Vy(n),my(n),159===n.kind&&!(4194304&n.flags)&&e.nodeIsPresent(n.body)&&128&n.flags&&(256&n.flags||Ht(n.name,e.Diagnostics.A_get_accessor_must_return_a_value)),150===n.name.kind&&sf(n.name),!no(n)){var r=159===n.kind?160:159,a=e.getDeclarationOfKind(qr(n),r);if(a){var i=e.getModifierFlags(n),o=e.getModifierFlags(a);(28&i)!=(28&o)&&Ht(n.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&i)!=(128&o)&&Ht(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),vy(n,a,mi,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),vy(n,a,pi,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=fi(qr(n));159===n.kind&&S_(n,s)}ph(n.body)}function vy(e,n,t,r){var a=t(e),i=t(n);a&&i&&!dd(a,i)&&Ht(e,r)}function hy(n,t){return Es(e.map(n.typeArguments,Nc),t,bs(t),e.isInJSFile(n))}function by(n,t){for(var r,a,i=!0,o=0;o<t.length;o++){var s=Ho(t[o]);s&&(r||(a=Vc(t,r=hy(n,t))),i=i&&hd(r[o],nd(s,a),n.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function Ey(n){var t=ul(n);if(t!==ye){var r=rr(n).resolvedSymbol;if(r)return 524288&r.flags&&tr(r).typeParameters||(4&e.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function Ty(n){hb(n,n.typeArguments),165!==n.kind||void 0===n.typeName.jsdocDotPos||e.isInJSFile(n)||e.isInJSDoc(n)||Pb(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var r=ul(n);if(r!==ye){if(n.typeArguments&&(e.forEach(n.typeArguments,ph),t)){var a=Ey(n);a&&by(n,a)}32&r.flags&&8&rr(n).resolvedSymbol.flags&&Ht(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Ta(r))}}function Sy(n,t){if(!(8388608&n.flags))return n;var r=n.objectType,a=n.indexType;if(gd(a,Jl(r,!1)))return 191===t.kind&&e.isAssignmentTarget(t)&&32&e.getObjectFlags(r)&&1&Oo(r)&&Ht(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ta(r)),n;var i=es(r);if(cs(i,1)&&w_(a,296))return n;if(nc(r)){var o=Zl(a,t);if(o){var s=Um(i,function(e){return as(e,o)});if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return Ht(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),ye}}return Ht(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ta(a),Ta(r)),ye}function Ly(n){!function(n){if(143===n.operator){if(140!==n.type.kind)return Gb(n.type,e.Diagnostics._0_expected,e.tokenToString(140));var t=e.walkUpParenthesizedTypes(n.parent);switch(t.kind){case 238:var r=t;if(73!==r.name.kind)return Gb(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return Gb(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return Gb(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 155:if(!e.hasModifier(t,32)||!e.hasModifier(t,64))return Gb(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 154:if(!e.hasModifier(t,64))return Gb(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Gb(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 134===n.operator&&170!==n.type.kind&&171!==n.type.kind&&wb(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(140))}(n),ph(n.type)}function Ay(n){return e.hasModifier(n,8)&&!!(4194304&n.flags)}function xy(n,t){var r=e.getCombinedModifierFlags(n);return 242!==n.parent.kind&&241!==n.parent.kind&&210!==n.parent.kind&&4194304&n.flags&&(2&r||e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent)||(r|=1),r|=2),r&t}function Cy(n){if(t){for(var r,a,i,o=0,s=155,l=!1,c=!0,d=!1,u=n.declarations,m=0!=(16384&n.flags),p=!1,f=!1,g=!1,_=0,y=u;_<y.length;_++){var v=y[_],h=4194304&v.flags,b=242===v.parent.kind||169===v.parent.kind||h;if(b&&(i=void 0),241!==v.kind&&210!==v.kind||h||(g=!0),240===v.kind||157===v.kind||156===v.kind||158===v.kind){var E=xy(v,155);o|=E,s&=E,l=l||e.hasQuestionToken(v),c=c&&e.hasQuestionToken(v),e.nodeIsPresent(v.body)&&r?m?f=!0:p=!0:i&&i.parent===v.parent&&i.end!==v.pos&&D(i),e.nodeIsPresent(v.body)?r||(r=v):d=!0,i=v,b||(a=v)}}if(f&&e.forEach(u,function(n){Ht(n,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),p&&e.forEach(u,function(n){Ht(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_function_implementation)}),g&&!m&&16&n.flags&&e.forEach(u,function(t){$t(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_identifier_0,e.symbolName(n),e.filter(u,function(e){return e!==t}))}),!a||a.body||e.hasModifier(a,128)||a.questionToken||D(a),d&&(function(n,t,r,a,i){if(0!=(a^i)){var o=xy(C(n,t),r);e.forEach(n,function(n){var t=xy(n,r)^o;1&t?Ht(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?Ht(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?Ht(e.getNameOfDeclaration(n)||n,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&Ht(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(u,r,155,o,s),function(n,t,r,a){if(r!==a){var i=e.hasQuestionToken(C(n,t));e.forEach(n,function(n){e.hasQuestionToken(n)!==i&&Ht(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(u,r,l,c),r))for(var T=As(n),S=Ts(r),L=0,A=T;L<A.length;L++){var x=A[L];if(!Md(S,x)){e.addRelatedInfo(Ht(x.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(r,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function C(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function D(n){if(!n.name||!e.nodeIsMissing(n.name)){var t=!1,r=e.forEachChild(n.parent,function(e){if(t)return e;t=e===n});if(r&&r.pos===n.end&&r.kind===n.kind){var a=r.name||r,i=r.name;if(n.name&&i&&(e.isComputedPropertyName(n.name)&&e.isComputedPropertyName(i)||!e.isComputedPropertyName(n.name)&&!e.isComputedPropertyName(i)&&e.getEscapedTextOfIdentifierOrLiteral(n.name)===e.getEscapedTextOfIdentifierOrLiteral(i)))return void(157!==n.kind&&156!==n.kind||e.hasModifier(n,32)===e.hasModifier(r,32)||Ht(a,e.hasModifier(n,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(r.body))return void Ht(a,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(n.name))}var o=n.name||n;m?Ht(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(n,128)?Ht(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Ht(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Dy(n){if(t){var r=n.localSymbol;if((r||(r=qr(n)).exportSymbol)&&e.getDeclarationOfKind(r,n.kind)===n){for(var a=0,i=0,o=0,s=0,l=r.declarations;s<l.length;s++){var c=y(g=l[s]),d=xy(g,513);1&d?512&d?o|=c:a|=c:i|=c}var u=a&i,m=o&(a|i);if(u||m)for(var p=0,f=r.declarations;p<f.length;p++){c=y(g=f[p]);var g,_=e.getNameOfDeclaration(g);c&m?Ht(_,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(_)):c&u&&Ht(_,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(_))}}}function y(n){var t=n;switch(t.kind){case 242:case 243:case 312:case 305:case 306:return 2;case 245:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5:4;case 241:case 244:return 3;case 285:return 7;case 255:if(!e.isEntityNameExpression(t.expression))return 1;t=t.expression;case 249:case 252:case 251:var r=0,a=Ar(qr(t));return e.forEach(a.declarations,function(e){r|=y(e)}),r;case 238:case 187:case 240:case 254:return 1;default:return e.Debug.failBadSyntaxKind(t)}}}function Ry(e,n,t,r){var a=My(e,n);return a&&Oy(a,n,t,r)}function My(n,t){if(!Va(n)){var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(bi(n,bl(!1)))return r.promisedTypeOfPromise=n.typeArguments[0];var a=Fa(n,"then");if(!Va(a)){var i=a?os(a,0):e.emptyArray;if(0!==i.length){var o=Am(Gl(e.map(i,c_)),2097152);if(!Va(o)){var s=os(o,0);if(0!==s.length)return r.promisedTypeOfPromise=Gl(e.map(s,c_),2);t&&Ht(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&Ht(t,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Iy(e,n,t,r){return Oy(e,n,t,r)||ye}function Oy(n,t,r,a){var i=n;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(Va(n))return i.awaitedTypeOfType=n;if(1048576&n.flags){for(var o=void 0,s=0,l=n.types;s<l.length;s++){var c=l[s];o=e.append(o,Oy(c,t,r,a))}if(!o)return;return i.awaitedTypeOfType=Gl(o)}var d=My(n);if(d){if(n.id===d.id||Mt.indexOf(d.id)>=0)return void(t&&Ht(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Mt.push(n.id);var u=Oy(d,t,r,a);if(Mt.pop(),!u)return;return i.awaitedTypeOfType=u}var m=Fa(n,"then");if(!(m&&os(m,0).length>0))return i.awaitedTypeOfType=n;if(t){if(!r)return e.Debug.fail();Ht(t,r,a)}}function ky(n){var t=Rs(Ug(n));if(!(1&t.flags)){var r,a,i=Pg(n);switch(n.parent.kind){case 241:r=Gl([hi(qr(n.parent)),Oe]);break;case 152:r=Oe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 155:r=Oe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 157:case 159:case 160:r=Gl([Al(Rh(n.parent)),Oe]);break;default:return e.Debug.fail()}hd(t,r,n,i,function(){return a})}}function Ny(e){if(e){var n=oh(e),t=2097152|(73===e.kind?788968:1920),r=sr(n,n.escapedText,t,void 0,void 0,!0);r&&2097152&r.flags&&Qr(r)&&!jh(Ar(r))&&Cr(r)}}function wy(n){var t=Py(n);t&&e.isEntityName(t)&&Ny(t)}function Py(e){if(e)switch(e.kind){case 175:case 174:return Gy(e.types);case 176:return Gy([e.trueType,e.falseType]);case 178:return Py(e.type);case 165:return e.typeName}}function Gy(n){for(var t,r=0,a=n;r<a.length;r++){for(var i=a[r];178===i.kind;)i=i.type;if(133!==i.kind&&(B||97!==i.kind&&142!==i.kind)){var o=Py(i);if(!o)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return}else t=o}}return t}function Fy(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function Vy(n){if(n.decorators&&e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){P.experimentalDecorators||Ht(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=n.decorators[0];if(ub(t,8),152===n.kind&&ub(t,32),P.emitDecoratorMetadata)switch(ub(t,16),n.kind){case 241:var r=e.getFirstConstructorWithBody(n);if(r)for(var a=0,i=r.parameters;a<i.length;a++)wy(Fy(i[a]));break;case 159:case 160:var o=159===n.kind?160:159,s=e.getDeclarationOfKind(qr(n),o);wy(ui(n)||s&&ui(s));break;case 157:for(var l=0,c=n.parameters;l<c.length;l++)wy(Fy(c[l]));wy(e.getEffectiveReturnTypeNode(n));break;case 155:wy(e.getEffectiveTypeAnnotationNode(n));break;case 152:wy(Fy(n));for(var d=0,u=n.parent.parameters;d<u.length;d++)wy(Fy(u[d]))}e.forEach(n.decorators,ky)}}function By(e){switch(e.kind){case 73:return e;case 190:return e.name;default:return}}function Uy(n){Vy(n),my(n);var r=e.getFunctionFlags(n);if(n.name&&150===n.name.kind&&sf(n.name),!no(n)){var a=qr(n),i=n.localSymbol||a,o=e.find(i.declarations,function(e){return e.kind===n.kind&&!(65536&e.flags)});n===o&&Cy(i),a.parent&&e.getDeclarationOfKind(a,n.kind)===n&&Cy(a)}var s=156===n.kind?void 0:n.body;if(ph(s),S_(n,Ms(n)),t&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(s)&&!Ay(n)&&Pu(n,fe),1&r&&e.nodeIsPresent(s)&&Rs(Ts(n))),e.isInJSFile(n)){var l=e.getJSDocTypeTag(n);l&&l.typeExpression&&!Jp(Nc(l.typeExpression),n)&&Ht(l,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Hy(n){if(t&&!(4194304&n.flags)){var r=e.getSourceFileOfNode(n),a=at.get(r.path);a||(a=[],at.set(r.path,a)),a.push(n)}}function Ky(n,t){for(var r=0,a=n;r<a.length;r++){var i=a[r];switch(i.kind){case 241:case 210:qy(i,t),Xy(i,t);break;case 285:case 245:case 219:case 247:case 226:case 227:case 228:Zy(i,t);break;case 158:case 197:case 240:case 198:case 157:case 159:case 160:i.body&&Zy(i,t),Xy(i,t);break;case 156:case 161:case 162:case 166:case 167:case 243:case 242:Xy(i,t);break;case 177:zy(i,t);break;default:e.Debug.assertNever(i,"Node should not have been registered for unused identifiers check")}}}function jy(n,t,r){var a=e.getNameOfDeclaration(n)||n,i=Th(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;r(n,0,e.createDiagnosticForNode(a,i,t))}function Wy(n){return e.isIdentifier(n)&&95===e.idText(n).charCodeAt(0)}function qy(n,t){for(var r=0,a=n.members;r<a.length;r++){var i=a[r];switch(i.kind){case 157:case 155:case 159:case 160:if(160===i.kind&&32768&i.symbol.flags)break;var o=qr(i);!o.isReferenced&&e.hasModifier(i,8)&&t(i,0,e.createDiagnosticForNode(i.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ba(o)));break;case 158:for(var s=0,l=i.parameters;s<l.length;s++){var c=l[s];!c.symbol.isReferenced&&e.hasModifier(c,8)&&t(c,0,e.createDiagnosticForNode(c.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(c.symbol)))}break;case 163:case 218:break;default:e.Debug.fail()}}}function zy(n,t){var r=n.typeParameter;Jy(r)&&t(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(r.name)))}function Xy(n,t){if(e.last(qr(n).declarations)===n)for(var r=e.getEffectiveTypeParameterDeclarations(n),a=new e.NodeSet,i=0,o=r;i<o.length;i++){var s=o[i];if(Jy(s)){var l=e.idText(s.name),c=s.parent;if(177!==c.kind&&c.typeParameters.every(Jy)){if(a.tryAdd(c)){var d=e.isJSDocTemplateTag(c)?e.rangeOfNode(c):e.rangeOfTypeParameters(c.typeParameters),u=1===r.length,m=u?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,p=u?l:void 0;t(s,1,e.createFileDiagnostic(e.getSourceFileOfNode(c),d.pos,d.end-d.pos,m,p))}}else t(s,1,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function Jy(e){return!(262144&Wr(e.symbol).isReferenced||Wy(e.name))}function Yy(e,n,t,r){var a=String(r(n)),i=e.get(a);i?i[1].push(t):e.set(a,[n,[t]])}function Qy(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function Zy(n,t){if(!(4194304&n.flags)){var r=e.createMap(),a=e.createMap(),i=e.createMap();n.locals.forEach(function(n){var o;if(262144&n.flags?3&n.flags&&!(3&n.isReferenced):!n.isReferenced&&!n.exportSymbol)for(var s=0,l=n.declarations;s<l.length;s++){var c=l[s];if(!(e.isAmbientModule(c)||(e.isVariableDeclaration(c)&&e.isForInOrOfStatement(c.parent.parent)||ev(c))&&Wy(c.name)))if(ev(c))Yy(r,251===(o=c).kind?o:252===o.kind?o.parent:o.parent.parent,c,D);else if(e.isBindingElement(c)&&e.isObjectBindingPattern(c.parent))c!==e.last(c.parent.elements)&&e.last(c.parent.elements).dotDotDotToken||Yy(a,c.parent,c,D);else if(e.isVariableDeclaration(c))Yy(i,c.parent,c,D);else{var d=n.valueDeclaration&&Qy(n.valueDeclaration),u=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);d&&u?e.isParameterPropertyDeclaration(d)||e.parameterIsThisKeyword(d)||Wy(u)||t(d,1,e.createDiagnosticForNode(u,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(n))):jy(c,e.symbolName(n),t)}}}),r.forEach(function(n){var r=n[0],a=n[1],i=r.parent;if((r.name?1:0)+(r.namedBindings?252===r.namedBindings.kind?1:r.namedBindings.elements.length:0)===a.length)t(i,0,1===a.length?e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(a).name)):e.createDiagnosticForNode(i,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=a;o<s.length;o++){var l=s[o];jy(l,e.idText(l.name),t)}}),a.forEach(function(n){var r=n[0],a=n[1],o=Qy(r.parent)?1:0;if(r.elements.length===a.length)1===a.length&&238===r.parent.kind&&239===r.parent.parent.kind?Yy(i,r.parent.parent,r.parent,D):t(r,o,1===a.length?e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,$y(e.first(a).name)):e.createDiagnosticForNode(r,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,l=a;s<l.length;s++){var c=l[s];t(c,o,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,$y(c.name)))}}),i.forEach(function(n){var r=n[0],a=n[1];if(r.declarations.length===a.length)t(r,0,1===a.length?e.createDiagnosticForNode(e.first(a).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,$y(e.first(a).name)):e.createDiagnosticForNode(220===r.parent.kind?r.parent:r,e.Diagnostics.All_variables_are_unused));else for(var i=0,o=a;i<o.length;i++){var s=o[i];t(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,$y(s.name)))}})}}function $y(n){switch(n.kind){case 73:return e.idText(n);case 186:case 185:return $y(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function ev(e){return 251===e.kind||254===e.kind||252===e.kind}function nv(n){if(219===n.kind&&Fb(n),e.isFunctionOrModuleBlock(n)){var t=lt;e.forEach(n.statements,ph),lt=t}else e.forEach(n.statements,ph);n.locals&&Hy(n)}function tv(n,t,r){if(!t||t.escapedText!==r)return!1;if(155===n.kind||154===n.kind||157===n.kind||156===n.kind||159===n.kind||160===n.kind)return!1;if(4194304&n.flags)return!1;var a=e.getRootDeclaration(n);return 152!==a.kind||!e.nodeIsMissing(a.parent.body)}function rv(n){e.findAncestor(n,function(t){return!!(4&Yh(t))&&(73!==n.kind?Ht(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ht(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function av(n){e.findAncestor(n,function(t){return!!(8&Yh(t))&&(73!==n.kind?Ht(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ht(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function iv(n,t){if(!(F>=e.ModuleKind.ES2015||P.noEmit)&&(tv(n,t,"require")||tv(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Ga(n);285===r.kind&&e.isExternalOrCommonJsModule(r)&&Ht(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function ov(n,t){if(!(G>=4||P.noEmit)&&tv(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Ga(n);285===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&Ht(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}function sv(e){return e===ge?fe:e===gn?fn:e}function lv(n){if(Vy(n),e.isBindingElement(n)||ph(n.type),n.name){if(150===n.name.kind&&(sf(n.name),n.initializer&&z_(n.initializer)),187===n.kind){185===n.parent.kind&&G<99&&ub(n,4),n.propertyName&&150===n.propertyName.kind&&sf(n.propertyName);var t=n.parent.parent,r=Ba(t),a=n.propertyName||n.name;if(r&&!e.isBindingPattern(a)){var i=Wl(a);if(Qi(i)){var o=as(r,to(i));o&&(Qf(o,void 0,!1),kf(t,!!t.initializer&&99===t.initializer.kind,r,o))}}}if(e.isBindingPattern(n.name)&&(186===n.name.kind&&G<2&&P.downlevelIteration&&ub(n,512),e.forEach(n.name.elements,ph)),n.initializer&&152===e.getRootDeclaration(n).kind&&e.nodeIsMissing(e.getContainingFunction(n).body))Ht(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){var s=n.initializer&&227!==n.parent.parent.kind,l=0===n.name.elements.length;if(s||l){var c=oi(n);if(s){var d=z_(n.initializer);B&&l?Ff(d,n):bd(d,oi(n),n,n.initializer)}l&&(e.isArrayBindingPattern(n.name)?vv(65,c,he,n):B&&Ff(c,n))}}else{var u=qr(n),m=sv(hi(u));if(n===u.valueDeclaration){var p=e.getEffectiveInitializer(n);p&&(e.isInJSFile(n)&&e.isObjectLiteralExpression(p)&&(0===p.properties.length||e.isPrototypeAccess(n.name))&&e.hasEntries(u.exports)||227===n.parent.parent.kind||bd(z_(p),m,n,p,void 0)),u.declarations.length>1&&e.some(u.declarations,function(t){return t!==n&&e.isVariableLike(t)&&!dv(t,n)})&&Ht(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var f=sv(oi(n));m===ye||f===ye||dd(m,f)||67108864&u.flags||cv(u.valueDeclaration,m,n,f),n.initializer&&bd(z_(n.initializer),f,n,n.initializer,void 0),dv(n,u.valueDeclaration)||Ht(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}155!==n.kind&&154!==n.kind&&(Dy(n),238!==n.kind&&187!==n.kind||function(n){if(0==(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(238!==n.kind||n.initializer)){var t=qr(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=sr(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&If(r)){var a=e.getAncestor(r.valueDeclaration,239),i=220===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!i||!(219===i.kind&&e.isFunctionLike(i.parent)||246===i.kind||245===i.kind||285===i.kind)){var o=ba(r);Ht(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),iv(n,n.name),ov(n,n.name))}}}function cv(n,t,r,a){var i=e.getNameOfDeclaration(r),o=155===r.kind||154===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(i),l=Ht(i,o,s,Ta(t),Ta(a));n&&e.addRelatedInfo(l,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function dv(n,t){return 152===n.kind&&238===t.kind||238===n.kind&&152===t.kind||e.hasQuestionToken(n)===e.hasQuestionToken(t)&&e.getSelectedModifierFlags(n,504)===e.getSelectedModifierFlags(t,504)}function uv(n){return function(n){if(227!==n.parent.parent.kind&&228!==n.parent.parent.kind)if(4194304&n.flags)Ob(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return Gb(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return Gb(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(220!==n.parent.parent.kind||!n.type||n.initializer||4194304&n.flags))return Gb(n.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);P.module===e.ModuleKind.ES2015||P.module===e.ModuleKind.ESNext||P.module===e.ModuleKind.System||P.noEmit||4194304&n.parent.parent.flags||!e.hasModifier(n.parent.parent,1)||function n(t){if(73===t.kind){if("__esModule"===e.idText(t))return Gb(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,a=0,i=r;a<i.length;a++){var o=i[a];if(!e.isOmittedExpression(o))return n(o.name)}return!1}(n.name),(e.isLet(n)||e.isVarConst(n))&&function n(t){if(73===t.kind){if(112===t.originalKeywordKind)return Gb(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=t.elements,a=0,i=r;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||n(o.name)}return!1}(n.name)}(n),lv(n)}function mv(n){return function(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return Gb(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(gb(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Gb(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);n.initializer&&Pb(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(n),lv(n)}function pv(n){pb(n)||kb(n.declarationList)||function(n){if(!function e(n){switch(n.kind){case 223:case 224:case 225:case 232:case 226:case 227:case 228:return!1;case 234:return e(n.parent)}return!0}(n.parent)){if(e.isLet(n.declarationList))return Gb(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(n.declarationList)&&Gb(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(n),e.forEach(n.declarationList.declarations,ph)}function fv(n,t){var r=ly(n,t);return 16384&r.flags&&Ht(n,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function gv(n){Cb(n);var t,r=Pf(ly(n.expression));if(239===n.initializer.kind){var a=n.initializer.declarations[0];a&&e.isBindingPattern(a.name)&&Ht(a.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),_v(n)}else{var i=n.initializer,o=ly(i);188===i.kind||189===i.kind?Ht(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):gd(131072&(t=Yl(Jl(r))).flags?Se:t,o)?O_(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):Ht(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}r!==ke&&w_(r,126091264)||Ht(n.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Ta(r)),ph(n.statement),n.locals&&Hy(n)}function _v(e){var n=e.initializer;n.declarations.length>=1&&uv(n.declarations[0])}function yv(e,n){var t=wf(e);return vv(n?15:13,t,he,e)}function vv(e,n,t,r){return Va(n)?n:hv(e,n,t,r,!0)||fe}function hv(n,t,r,a,i){var o=0!=(2&n);if(t!==ke){var s=G>=2,l=!s&&P.downlevelIteration;if(s||l||o){var c=Sv(t,n,s?a:void 0);if(i&&c){var d=8&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&n?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&hd(r,c.nextType,a,d)}if(c||s)return c&&c.yieldType}var u=t,m=!1,p=!1;if(4&n){if(1048576&u.flags){var f=t.types,g=e.filter(f,function(e){return!(132&e.flags)});g!==f&&(u=Gl(g,2))}else 132&u.flags&&(u=ke);if((p=u!==t)&&(G<1&&a&&(Ht(a,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),m=!0),131072&u.flags))return Se}if(!au(u)){if(a&&!m){var _=bv(n,0,t,void 0),y=4&n&&!p?l?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:_?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:l?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:_?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],v=y[0];Wt(a,y[1]&&!!Ry(u),v,Ta(u))}return p?Se:void 0}var h=ds(u,1);return p&&h?132&h.flags?Se:Gl([h,Se],2):h}Mv(a,t,o)}function bv(e,n,t,r){if(!Va(t)){var a=Sv(t,e,r);return a&&a[N(n)]}}function Ev(e,n,t){if(void 0===e&&(e=ke),void 0===n&&(n=ke),void 0===t&&(t=ve),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=zs([e,n,t]),a=Yn.get(r);return a||(a={yieldType:e,returnType:n,nextType:t},Yn.set(r,a)),a}return{yieldType:e,returnType:n,nextType:t}}function Tv(n){for(var t,r,a,i=0,o=n;i<o.length;i++){var s=o[i];if(void 0!==s&&s!==Qn){if(s===Zn)return Zn;t=e.append(t,s.yieldType),r=e.append(r,s.returnType),a=e.append(a,s.nextType)}}return t||r||a?Ev(t&&Gl(t),r&&Gl(r),a&&Kl(a)):Qn}function Sv(n,t,r){if(Va(n))return Zn;if(!(1048576&n.flags)){var a=Av(n,t,r);return a===Qn?void(r&&Mv(r,n,!!(2&t))):a}var i,o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=n[o];if(s)return s===Qn?void 0:s;for(var l=0,c=n.types;l<c.length;l++){var d=Av(c[l],t,r);d===Qn?r&&(Mv(r,n,!!(2&t)),r=void 0):i=e.append(i,d)}var u=i?Tv(i):Qn;return n[o]=u,u===Qn?void 0:u}function Lv(e,n){if(e===Qn)return Qn;if(e===Zn)return Zn;var t=e.yieldType,r=e.returnType,a=e.nextType;return Ev(Oy(t,n)||fe,Oy(r,n)||fe,a)}function Av(e,n,t){if(Va(e))return Zn;var r;if(2&n&&(r=xv(e,nt)||Dv(e,nt)))return r;if(1&n&&(r=xv(e,tt)||Dv(e,tt))){if(!(2&n))return r;if(r!==Qn)return e.iterationTypesOfAsyncIterable=Lv(r,t)}return 2&n&&(r=Rv(e,nt,t))!==Qn?r:1&n&&(r=Rv(e,tt,t))!==Qn?2&n?e.iterationTypesOfAsyncIterable=r?Lv(r,t):Qn:r:Qn}function xv(e,n){return e[n.iterableCacheKey]}function Cv(e,n){var t=xv(e,n)||Rv(e,n,void 0);return t===Qn?et:t}function Dv(e,n){var t;if(bi(e,t=n.getGlobalIterableType(!1))||bi(e,t=n.getGlobalIterableIteratorType(!1))){var r=e.typeArguments[0],a=Cv(t,n),i=a.returnType,o=a.nextType;return e[n.iterableCacheKey]=Ev(r,i,o)}if(bi(e,n.getGlobalGeneratorType(!1))){var s=e.typeArguments;return r=s[0],i=s[1],o=s[2],e[n.iterableCacheKey]=Ev(r,i,o)}}function Rv(n,t,r){var a=as(n,e.getPropertyNameForKnownSymbolName(t.iteratorSymbolName)),i=!a||16777216&a.flags?void 0:hi(a);if(Va(i))return n[t.iterableCacheKey]=Zn;var o=i?os(i,0):void 0;if(!e.some(o))return n[t.iterableCacheKey]=Qn;var s=Iv(Gl(e.map(o,Rs),2),t,r)||Qn;return n[t.iterableCacheKey]=s}function Mv(n,t,r){var a=r?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Wt(n,!!Ry(t),a,Ta(t))}function Iv(e,n,t){if(Va(e))return Zn;var r=Ov(e,n)||function(e,n){var t=n.getGlobalIterableIteratorType(!1);if(bi(e,t)){var r=e.typeArguments[0],a=Ov(t,n)||Fv(t,n,void 0),i=a===Qn?et:a,o=i.returnType,s=i.nextType;return e[n.iteratorCacheKey]=Ev(r,o,s)}if(bi(e,n.getGlobalIteratorType(!1))||bi(e,n.getGlobalGeneratorType(!1))){var l=e.typeArguments,r=l[0],o=l[1],s=l[2];return e[n.iteratorCacheKey]=Ev(r,o,s)}}(e,n)||Fv(e,n,t);return r===Qn?void 0:r}function Ov(e,n){return e[n.iteratorCacheKey]}function kv(e,n){var t=Fa(e,"done")||xe;return gd(0===n?xe:De,t)}function Nv(e){return kv(e,0)}function wv(e){return kv(e,1)}function Pv(e){if(Va(e))return Zn;var n=e.iterationTypesOfIteratorResult;if(n)return n;if(bi(e,Rn||(Rn=yl("IteratorYieldResult",1,!1))||We)){var t=e.typeArguments[0];return e.iterationTypesOfIteratorResult=Ev(t,void 0,void 0)}if(bi(e,function(e){return Mn||(Mn=yl("IteratorReturnResult",1,e))||We}(!1))){var r=e.typeArguments[0];return e.iterationTypesOfIteratorResult=Ev(void 0,r,void 0)}var a=Km(e,Nv),i=a!==ke?Fa(a,"value"):void 0,o=Km(e,wv),s=o!==ke?Fa(o,"value"):void 0;return e.iterationTypesOfIteratorResult=i||s?Ev(i,s||Oe,void 0):Qn}function Gv(n,t,r,a){var i=as(n,r);if(i||"next"===r){var o=!i||"next"===r&&16777216&i.flags?void 0:"next"===r?hi(i):Am(hi(i),2097152);if(Va(o))return"next"===r?Zn:$n;var s,l,c,d,u,m=o?os(o,0):e.emptyArray;if(0===m.length)return a&&Ht(a,"next"===r?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic,r),"next"===r?Zn:void 0;for(var p=0,f=m;p<f.length;p++){var g=f[p];"throw"!==r&&e.some(g.parameters)&&(s=e.append(s,n_(g,0))),l=e.append(l,Rs(g))}if("throw"!==r){var _=s?Gl(s):ve,y=t.resolveIterationType(_,a)||fe;"next"===r?d=y:"return"===r&&(c=e.append(c,y))}var v=l?Gl(l,2):ke,h=Pv(t.resolveIterationType(v,a)||fe);return h===Qn?(a&&Ht(a,t.mustHaveAValueDiagnostic,r),u=fe,c=e.append(c,fe)):(u=h.yieldType,c=e.append(c,h.returnType)),Ev(u,Gl(c),d)}}function Fv(e,n,t){var r=Tv([Gv(e,n,"next",t),Gv(e,n,"return",t),Gv(e,n,"throw",t)]);return e[n.iteratorCacheKey]=r}function Vv(e,n,t){if(!Va(n)){var r=Bv(n,t);return r&&r[N(e)]}}function Bv(e,n){if(Va(e))return Zn;var t=n?nt:tt;return Sv(e,n?2:1,void 0)||Iv(e,t,void 0)}function Uv(n){Fb(n)||function(n){for(var t=n;t;){if(e.isFunctionLike(t))return Gb(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 234:if(n.label&&t.label.escapedText===n.label.escapedText){var r=229===n.kind&&!e.isIterationStatement(t.statement,!0);return!!r&&Gb(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 233:if(230===n.kind&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1}t=t.parent}if(n.label){var a=230===n.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Gb(n,a)}var a=230===n.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;Gb(n,a)}(n)}function Hv(e,n){var t=!!(2&n);return 1&n?Vv(1,e,t)||ye:t?My(e)||ye:e}function Kv(n,t){var r=Hv(t,e.getFunctionFlags(n));return!!r&&N_(r,16387)}function jv(n){Fb(n)||void 0===n.expression&&function(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!Nb(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);It.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,t,r,a,i))}}(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&ly(n.expression)}function Wv(n){var t,r=Us(n.symbol,1),a=Us(n.symbol,0),i=ds(n,0),o=ds(n,1);if(i||o){e.forEach(Go(n),function(e){var t=hi(e);p(e,t,n,a,i,0),p(e,t,n,r,o,1)});var s=n.symbol.valueDeclaration;if(1&e.getObjectFlags(n)&&e.isClassLike(s))for(var l=0,c=s.members;l<c.length;l++){var d=c[l];if(!e.hasModifier(d,32)&&no(d)){var u=qr(d),m=hi(u);p(u,m,n,a,i,0),p(u,m,n,r,o,1)}}}function p(n,t,r,a,i,o){if(i&&!e.isKnownSymbol(n)){var s,l=n.valueDeclaration,c=l&&e.getNameOfDeclaration(l);if(1!==o||(c?rf(c):of(n.escapedName)))l&&c&&(205===l.kind||150===c.kind||n.parent===r.symbol)?s=l:a?s=a:2&e.getObjectFlags(r)&&(s=e.forEach(ki(r),function(e){return Fo(e,n.escapedName)&&ds(e,o)})?void 0:r.symbol.declarations[0]),s&&!gd(t,i)&&Ht(s,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,ba(n),Ta(t),Ta(i))}}i&&o&&!(t=r||a)&&2&e.getObjectFlags(n)&&(t=e.forEach(ki(n),function(e){return ds(e,0)&&ds(e,1)})?void 0:n.symbol.declarations[0]),t&&!gd(o,i)&&Ht(t,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Ta(o),Ta(i))}function qv(e,n){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ht(e,n,e.escapedText)}}function zv(n){if(n)for(var r=!1,a=0;a<n.length;a++){var i=n[a];if(cy(i),t){i.default?(r=!0,Xv(i.default,n,a)):r&&Ht(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<a;o++)n[o].symbol===i.symbol&&Ht(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function Xv(n,t,r){!function n(a){if(165===a.kind){var i=ul(a);if(262144&i.flags)for(var o=r;o<t.length;o++)i.symbol===qr(t[o])&&Ht(a,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(a,n)}(n)}function Jv(n){if(1!==n.declarations.length){var t=tr(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=function(n){return e.filter(n.declarations,function(e){return 241===e.kind||242===e.kind})}(n);if(r.length<=1)return;if(!function(n,t){for(var r=e.length(t),a=bs(t),i=0,o=n;i<o.length;i++){var s=o[i],l=e.getEffectiveTypeParameterDeclarations(s),c=l.length;if(c<a||c>r)return!1;for(var d=0;d<c;d++){var u=l[d],m=t[d];if(u.name.escapedText!==m.symbol.escapedName)return!1;var p=e.getEffectiveConstraintOfTypeParameter(u),f=p&&Nc(p),g=Ho(m);if(f&&(!g||!dd(f,g)))return!1;var _=u.default&&Nc(u.default),y=Zo(m);if(_&&y&&!dd(_,y))return!1}}return!0}(r,Hi(n).localTypeParameters))for(var a=ba(n),i=0,o=r;i<o.length;i++)Ht(o[i].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,a)}}}function Yv(n){var r;!function(n){var t=e.getSourceFileOfNode(n);(function(n){var t=!1,r=!1;if(!pb(n)&&n.heritageClauses)for(var a=0,i=n.heritageClauses;a<i.length;a++){var o=i[a];if(87===o.token){if(t)return wb(o,e.Diagnostics.extends_clause_already_seen);if(r)return wb(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return wb(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(110===o.token),r)return wb(o,e.Diagnostics.implements_clause_already_seen);r=!0}Eb(o)}})(n)||_b(n.typeParameters,t)}(n),Vy(n),n.name&&(qv(n.name,e.Diagnostics.Class_name_cannot_be_0),iv(n,n.name),ov(n,n.name),4194304&n.flags||(r=n.name,1===G&&"Object"===r.escapedText&&F!==e.ModuleKind.ES2015&&F!==e.ModuleKind.ESNext&&Ht(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[F]))),zv(e.getEffectiveTypeParameterDeclarations(n)),Dy(n);var a=qr(n),i=Hi(a),o=so(i),s=hi(a);Jv(a),function(n){for(var t=e.createUnderscoreEscapedMap(),r=e.createUnderscoreEscapedMap(),a=0,i=n.members;a<i.length;a++){var o=i[a];if(158===o.kind)for(var s=0,l=o.parameters;s<l.length;s++){var c=l[s];e.isParameterPropertyDeclaration(c)&&!e.isBindingPattern(c.name)&&p(t,c.name,c.name.escapedText,3)}else{var d=e.hasModifier(o,32)?r:t,u=o.name,m=u&&e.getPropertyNameForPropertyNameNode(u);if(u&&m)switch(o.kind){case 159:p(d,u,m,1);break;case 160:p(d,u,m,2);break;case 155:p(d,u,m,3);break;case 157:p(d,u,m,8)}}}function p(n,t,r,a){var i=n.get(r);i?8&i?8!==a&&Ht(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):i&a?Ht(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):n.set(r,i|a):n.set(r,a)}}(n),4194304&n.flags||function(n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t],i=a.name;if(e.hasModifier(a,32)&&i){var o=e.getPropertyNameForPropertyNameNode(i);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":Ht(i,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,Ma(qr(n)))}}}}(n);var l=e.getEffectiveBaseTypeNode(n);if(l){G<2&&ub(l.parent,1);var c=e.getClassExtendsHeritageElement(n);c&&c!==l&&ly(c.expression);var d=ki(i);if(d.length&&t){var u=d[0],m=Oi(i),p=es(m);if(function(n,t){var r=os(n,1);if(r.length){var a=r[0].declaration;if(a&&e.hasModifier(a,8)){var i=e.getClassLikeDeclarationOfSymbol(n.symbol);Ah(t,i)||Ht(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Rr(n.symbol))}}}(p,l),ph(l.expression),e.some(l.typeArguments)){e.forEach(l.typeArguments,ph);for(var f=0,g=Mi(p,l.typeArguments,l);f<g.length&&by(l,g[f].typeParameters);f++);}if(hd(o,T=so(u,i.thisType),void 0)?hd(s,cd(p),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Qv(n,o,T,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&m.flags&&!Ci(s)&&Ht(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(p.symbol&&32&p.symbol.flags||8650752&m.flags)){var _=Ii(p,l.typeArguments,l);e.forEach(_,function(e){return!Hg(e.declaration)&&Rs(e)!==u})&&Ht(l.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(n,t){var r=Bo(t);e:for(var a=0,i=r;a<i.length;a++){var o=i[a],s=Zv(o);if(!(4194304&s.flags)){var l=Zv(Fo(n,s.escapedName)),c=e.getDeclarationModifierFlagsFromSymbol(s);if(e.Debug.assert(!!l,"derived should point to something, even if it is the base class' declaration."),l===s){var d=e.getClassLikeDeclarationOfSymbol(n.symbol);if(128&c&&(!d||!e.hasModifier(d,128))){for(var u=0,m=ki(n);u<m.length;u++){var p=m[u];if(p!==t){var f=Fo(p,s.escapedName),g=f&&Zv(f);if(g&&g!==s)continue e}}210===d.kind?Ht(d,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ba(o),Ta(t)):Ht(d,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ta(n),ba(o),Ta(t))}}else{var _=e.getDeclarationModifierFlagsFromSymbol(l);if(8&c||8&_)continue;if(Of(s)||98308&s.flags&&98308&l.flags)continue;var y=void 0;y=Of(s)?98304&l.flags?e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:98304&s.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function,Ht(e.getNameOfDeclaration(l.valueDeclaration)||l.valueDeclaration,y,Ta(t),ba(s),Ta(n))}}}}(i,u)}}var y=e.getClassImplementsHeritageClauseElements(n);if(y)for(var v=0,h=y;v<h.length;v++){var b=h[v];if(e.isEntityNameExpression(b.expression)||Ht(b.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Ty(b),t){var E=Nc(b);if(E!==ye)if(Ni(E)){var T,S=E.symbol&&32&E.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;hd(o,T=so(E,i.thisType),void 0)||Qv(n,o,T,S)}else Ht(b,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}t&&(Wv(i),fy(n),function(n){if(B&&K&&!(4194304&n.flags))for(var t=Zr(n),r=0,a=n.members;r<a.length;r++){var i=a[r];if($v(i)){var o=i.name;if(e.isIdentifier(o)){var s=hi(qr(i));3&s.flags||32768&Eu(s)||t&&eh(o,s,t)||Ht(i.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(n))}function Qv(n,t,r,a){for(var i=!1,o=function(n){if(e.hasStaticModifier(n))return"continue";var a=n.name&&Dh(n.name)||Dh(n);if(a){var o=as(t,a.escapedName),s=as(r,a.escapedName);o&&s&&(hd(hi(o),hi(s),n.name||n,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ba(a),Ta(t),Ta(r))})||(i=!0))}},s=0,l=n.members;s<l.length;s++)o(l[s]);i||hd(t,r,n.name||n,a)}function Zv(n){return 1&e.getCheckFlags(n)?n.target:n}function $v(n){return 155===n.kind&&!e.hasModifier(n,160)&&!n.exclamationToken&&!n.initializer}function eh(n,t,r){var a=e.createPropertyAccess(e.createThis(),n);return a.expression.parent=a,a.parent=r,a.flowNode=r.returnFlowNode,!(32768&Eu(ip(a,t,Au(t))))}function nh(n){if(pb(n)||function(n){var t=!1;if(n.heritageClauses)for(var r=0,a=n.heritageClauses;r<a.length;r++){var i=a[r];if(87!==i.token)return e.Debug.assert(110===i.token),wb(i,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return wb(i,e.Diagnostics.extends_clause_already_seen);t=!0,Eb(i)}}(n),zv(n.typeParameters),t){qv(n.name,e.Diagnostics.Interface_name_cannot_be_0),Dy(n);var r=qr(n);if(Jv(r),n===e.getDeclarationOfKind(r,242)){var a=Hi(r),i=so(a);if(function(n,t){var r=ki(n);if(r.length<2)return!0;var a=e.createUnderscoreEscapedMap();e.forEach(Yi(n).declaredProperties,function(e){a.set(e.escapedName,{prop:e,containingType:n})});for(var i=!0,o=0,s=r;o<s.length;o++)for(var l=s[o],c=0,d=Bo(so(l,n.thisType));c<d.length;c++){var u=d[c],m=a.get(u.escapedName);if(m){if(m.containingType!==n&&0===Zd(m.prop,u,ud)){i=!1;var p=Ta(m.containingType),f=Ta(l),g=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,ba(u),p,f);g=e.chainDiagnosticMessages(g,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ta(n),p,f),It.add(e.createDiagnosticForNodeFromMessageChain(t,g))}}else a.set(u.escapedName,{prop:u,containingType:l})}return i}(a,n.name)){for(var o=0,s=ki(a);o<s.length;o++)hd(i,so(s[o],a.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);Wv(a)}}py(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),function(n){e.isEntityNameExpression(n.expression)||Ht(n.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Ty(n)}),e.forEach(n.members,ph),t&&(fy(n),Hy(n))}function th(e){var n=rr(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=rh(i,t);rr(i).enumMemberValue=o,t="number"==typeof o?o+1:void 0}}}function rh(n,t){if(Ua(n.name))Ht(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);of(r)&&!af(r)&&Ht(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return n.initializer?function(n){var t=Gi(qr(n.parent)),r=e.isEnumConst(n.parent),a=n.initializer,i=1!==t||Pi(n)?function t(r){switch(r.kind){case 203:var a=t(r.operand);if("number"==typeof a)switch(r.operator){case 38:return a;case 39:return-a;case 53:return~a}break;case 205:var i=t(r.left),s=t(r.right);if("number"==typeof i&&"number"==typeof s)switch(r.operatorToken.kind){case 50:return i|s;case 49:return i&s;case 47:return i>>s;case 48:return i>>>s;case 46:return i<<s;case 51:return i^s;case 40:return i*s;case 42:return i/s;case 38:return i+s;case 39:return i-s;case 43:return i%s;case 41:return Math.pow(i,s)}else if("string"==typeof i&&"string"==typeof s&&38===r.operatorToken.kind)return i+s;break;case 10:return r.text;case 8:return Vb(r),+r.text;case 196:return t(r.expression);case 73:var l=r;return af(l.escapedText)?+l.escapedText:e.nodeIsMissing(r)?0:o(r,qr(n.parent),l.escapedText);case 191:case 190:var c=r;if(function e(n){return 73===n.kind||190===n.kind&&e(n.expression)||191===n.kind&&e(n.expression)&&10===n.argumentExpression.kind}(c)){var d=oy(c.expression);if(d.symbol&&384&d.symbol.flags){var u=void 0;if(190===c.kind)u=c.name.escapedText;else{var m=c.argumentExpression;e.Debug.assert(e.isLiteralExpression(m)),u=e.escapeLeadingUnderscores(m.text)}return o(r,d.symbol,u)}}}}(a):void 0;if(void 0!==i)r&&"number"==typeof i&&!isFinite(i)&&Ht(a,isNaN(i)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===t)return Ht(a,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;r?Ht(a,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):4194304&n.parent.flags?Ht(a,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):hd(ly(a),Hi(qr(n.parent)),a,void 0)}return i;function o(t,r,a){var i=r.exports.get(a);if(i){var o=i.valueDeclaration;if(o!==n)return or(o,n)?Qh(o):(Ht(t,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(n):4194304&n.parent.flags&&!e.isEnumConst(n.parent)&&0===Gi(qr(n.parent))?void 0:void 0!==t?t:void Ht(n.name,e.Diagnostics.Enum_member_must_have_initializer)}function ah(n){if(t){var r=e.isGlobalScopeAugmentation(n),a=4194304&n.flags;r&&!a&&Ht(n.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(n);if(dh(n,i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;pb(n)||a||10!==n.name.kind||Gb(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&(iv(n,n.name),ov(n,n.name)),Dy(n);var o=qr(n);if(512&o.flags&&!a&&o.declarations.length>1&&M(n,!!P.preserveConstEnums||!!P.isolatedModules)){var s=function(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];if((241===a.kind||240===a.kind&&e.nodeIsPresent(a.body))&&!(4194304&a.flags))return a}}(o);s&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(s)?Ht(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<s.pos&&Ht(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var l=e.getDeclarationOfKind(o,241);l&&(u=n,m=l,p=e.getEnclosingBlockScopeContainer(u),f=e.getEnclosingBlockScopeContainer(m),ar(p)?ar(f):!ar(f)&&p===f)&&(rr(n).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(n)){if((r||33554432&qr(n).flags)&&n.body)for(var c=0,d=n.body.statements;c<d.length;c++)ih(d[c],r)}else ar(n.parent)?r?Ht(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name))&&Ht(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Ht(n.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var u,m,p,f;n.body&&(ph(n.body),e.isGlobalScopeAugmentation(n)||Hy(n))}function ih(n,t){switch(n.kind){case 220:for(var r=0,a=n.declarationList.declarations;r<a.length;r++)ih(a[r],t);break;case 255:case 256:wb(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 249:case 250:wb(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 187:case 238:var i=n.name;if(e.isBindingPattern(i)){for(var o=0,s=i.elements;o<s.length;o++)ih(s[o],t);break}case 241:case 244:case 240:case 242:case 245:case 243:if(t)return;var l=qr(n);if(l){var c=!(33554432&l.flags);c||(c=!!l.parent&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function oh(e){switch(e.kind){case 73:return e;case 149:do{e=e.left}while(73!==e.kind);return e;case 190:do{e=e.expression}while(73!==e.kind);return e}}function sh(n){var t=e.getExternalModuleName(n);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return Ht(t,e.Diagnostics.String_literal_expected),!1;var r=246===n.parent.kind&&e.isAmbientModule(n.parent.parent);return 285===n.parent.kind||r?!(r&&e.isExternalModuleNameRelative(t.text)&&!Ca(n)&&(Ht(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(Ht(t,256===n.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function lh(n){var t=qr(n),r=Ar(t);if(!(67108864&t.flags)&&r!==me){var a=(1160127&t.flags?111551:0)|(788968&t.flags?788968:0)|(1920&t.flags?1920:0);r.flags&a&&Ht(n,258===n.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,ba(t)),!P.isolatedModules||258!==n.kind||111551&r.flags||4194304&n.flags||Ht(n,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function ch(e){iv(e,e.name),ov(e,e.name),lh(e)}function dh(e,n){var t=285===e.parent.kind||246===e.parent.kind||245===e.parent.kind;return t||wb(e,n),!t}function uh(n){if(lh(n),e.getEmitDeclarations(P)&&Oa(n.propertyName||n.name,!0),!n.parent.parent.moduleSpecifier){var t=n.propertyName||n.name,r=sr(t,t.escapedText,2998271,void 0,void 0,!0);if(r&&(r===Q||ar(Ga(r.declarations[0]))))Ht(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{xr(n);var a=r&&(2097152&r.flags?Ar(r):r);(!a||a===me||111551&a.flags)&&z_(n.propertyName||n.name)}}}function mh(n){var t=qr(n),r=tr(t);if(!r.exportsChecked){var a=t.exports.get("export=");if(a&&function(n){return e.forEachEntry(n.exports,function(e,n){return"export="!==n})}(t)){var i=_r(a)||a.valueDeclaration;Ca(i)||e.isInJSFile(i)||Ht(i,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Hr(t);o&&o.forEach(function(n,t){var r=n.declarations,a=n.flags;if("__export"!==t&&!(1984&a)){var i=e.countWhere(r,C);if(!(524288&a&&i<=2)&&i>1)for(var o=0,s=r;o<s.length;o++){var l=s[o];I(l)&&It.add(e.createDiagnosticForNode(l,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(t)))}}}),r.exportsChecked=!0}}function ph(n){if(n){var a=d;d=n,b=0,function(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,function(n){var t=n.tags;return e.forEach(t,ph)});var a=n.kind;if(r)switch(a){case 245:case 241:case 242:case 240:r.throwIfCancellationRequested()}switch(a){case 151:return cy(n);case 152:return dy(n);case 155:case 154:return gy(n);case 166:case 167:case 161:case 162:case 163:return my(n);case 157:case 156:return function(n){Mb(n)||Sb(n.name),Uy(n),e.hasModifier(n,128)&&157===n.kind&&n.body&&Ht(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}(n);case 158:return _y(n);case 159:case 160:return yy(n);case 165:return Ty(n);case 164:return function(n){var t=function(e){switch(e.parent.kind){case 198:case 161:case 240:case 197:case 166:case 157:case 156:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=Ts(t),a=Ds(r);if(a){ph(n.type);var i=n.parameterName;if(e.isThisTypePredicate(a))kc(i);else if(a.parameterIndex>=0)r.hasRestParameter&&a.parameterIndex===r.parameters.length-1?Ht(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):hd(a.type,hi(r.parameters[a.parameterIndex]),n.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var o=!1,s=0,l=t.parameters;s<l.length;s++){var c=l[s].name;if(e.isBindingPattern(c)&&uy(c,i,a.parameterName)){o=!0;break}}o||Ht(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,a.parameterName)}}}else Ht(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(n);case 168:return function(e){pl(e)}(n);case 169:return function(n){e.forEach(n.members,ph),t&&(Wv(hc(n)),fy(n),py(n))}(n);case 170:return function(e){ph(e.elementType)}(n);case 171:return function(n){for(var t=n.elementTypes,r=!1,a=0;a<t.length;a++){var i=t[a];if(173===i.kind){if(a!==t.length-1){Gb(i,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}nu(Nc(i))||Ht(i,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(172===i.kind)r=!0;else if(r){Gb(i,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elementTypes,ph)}(n);case 174:case 175:return function(n){e.forEach(n.types,ph)}(n);case 178:case 172:case 173:return ph(n.type);case 179:return function(e){kc(e)}(n);case 180:return Ly(n);case 176:return function(n){e.forEachChild(n,ph)}(n);case 177:return function(n){e.findAncestor(n,function(e){return e.parent&&176===e.parent.kind&&e.parent.extendsType===e})||Gb(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ph(n.typeParameter),Hy(n)}(n);case 184:return function(e){ph(e.argument),Nc(e)}(n);case 302:return function(n){var t=e.getJSDocHost(n);if(e.isClassDeclaration(t)||e.isClassExpression(t)){var r=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(r.length>0),r.length>1&&Ht(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=By(n.class.expression),i=e.getClassExtendsHeritageElement(t);if(i){var o=By(i.expression);o&&a.escapedText!==o.escapedText&&Ht(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(o))}}else Ht(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 312:case 305:case 306:return function(n){n.typeExpression||Ht(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&qv(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),ph(n.typeExpression)}(n);case 311:return function(e){ph(e.constraint);for(var n=0,t=e.typeParameters;n<t.length;n++)ph(t[n])}(n);case 310:return function(e){ph(e.typeExpression)}(n);case 307:return function(n){if(ph(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);if(t){var r=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(n);if(r>-1&&r<t.parameters.length&&e.isBindingPattern(t.parameters[r].name))return;Ls(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!nu(Nc(n.typeExpression.type))&&Ht(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(149===n.name.kind?n.name.right:n.name)):e.isQualifiedName(n.name)?Ht(n.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(n.name),e.entityNameToString(n.name.left)):Ht(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}(n);case 295:!function(n){!t||n.type||e.isJSDocConstructSignature(n)||Pu(n,fe),my(n)}(n);case 293:case 292:case 290:case 291:case 299:return fh(n),void e.forEachChild(n,ph);case 296:return void function(n){fh(n),ph(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent))e.last(t.parent.parameters)!==t&&Ht(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(t)||Ht(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(e.isJSDocParameterTag(r)){var a=e.getParameterSymbolFromJSDoc(r);if(a){var i=e.getHostSignatureFromJSDoc(r);i&&e.last(i.parameters).symbol===a||Ht(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Ht(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}(n);case 289:return ph(n.type);case 181:return function(e){ph(e.objectType),ph(e.indexType),Sy(dc(e),e)}(n);case 182:return function(n){ph(n.typeParameter),ph(n.type),n.type||Pu(n,fe),hd(Co(uc(n)),Ve,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}(n);case 240:return function(e){t&&(Uy(e),Lb(e),iv(e,e.name),ov(e,e.name))}(n);case 219:case 246:return nv(n);case 220:return pv(n);case 222:return function(e){Fb(e),ly(e.expression)}(n);case 223:return function(n){Fb(n),fv(n.expression),ph(n.thenStatement),221===n.thenStatement.kind&&Ht(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),ph(n.elseStatement)}(n);case 224:return function(e){Fb(e),ph(e.statement),fv(e.expression)}(n);case 225:return function(e){Fb(e),fv(e.expression),ph(e.statement)}(n);case 226:return function(n){Fb(n)||n.initializer&&239===n.initializer.kind&&kb(n.initializer),n.initializer&&(239===n.initializer.kind?e.forEach(n.initializer.declarations,uv):ly(n.initializer)),n.condition&&fv(n.condition),n.incrementor&&ly(n.incrementor),ph(n.statement),n.locals&&Hy(n)}(n);case 227:return gv(n);case 228:return function(n){if(Cb(n),n.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(n)))&&G<99&&ub(n,32768):P.downlevelIteration&&G<2&&ub(n,256),239===n.initializer.kind)_v(n);else{var t=n.initializer,r=yv(n.expression,n.awaitModifier);if(188===t.kind||189===t.kind)U_(t,r||ye);else{var a=ly(t);O_(t,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&bd(r,a,t,n.expression)}}ph(n.statement),n.locals&&Hy(n)}(n);case 229:case 230:return Uv(n);case 231:return function(n){if(!Fb(n)){var t=e.getContainingFunction(n);if(t){var r=Rs(Ts(t)),a=e.getFunctionFlags(t);if(B||n.expression||131072&r.flags){var i=n.expression?z_(n.expression):he;if(160===t.kind)n.expression&&Ht(n,e.Diagnostics.Setters_cannot_return_a_value);else if(158===t.kind)n.expression&&!bd(i,r,n,n.expression)&&Ht(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Ms(t)){var o=Hv(r,a),s=2&a?Iy(i,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i;o&&bd(s,o,n,n.expression)}}else 158!==t.kind&&P.noImplicitReturns&&!Kv(t,r)&&Ht(n,e.Diagnostics.Not_all_code_paths_return_a_value)}else wb(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(n);case 232:return function(n){Fb(n)||16384&n.flags&&wb(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ly(n.expression);var t=e.getSourceFileOfNode(n);if(!Nb(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start;Pb(t,r,n.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(n);case 233:return function(n){var r;Fb(n);var a=!1,i=ly(n.expression),o=du(i);e.forEach(n.caseBlock.clauses,function(s){if(273===s.kind&&!a)if(void 0===r)r=s;else{var l=e.getSourceFileOfNode(n),c=e.skipTrivia(l.text,s.pos);Pb(l,c,(s.statements.length>0?s.statements[0].pos:s.end)-c,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),a=!0}if(t&&272===s.kind){var d=ly(s.expression),u=du(d),m=i;u&&o||(d=u?uu(d):d,m=uu(i)),H_(m,d)||Dd(d,m,s.expression,void 0)}e.forEach(s.statements,ph)}),n.caseBlock.locals&&Hy(n.caseBlock)}(n);case 234:return function(n){Fb(n)||e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)?"quit":234===t.kind&&t.label.escapedText===n.label.escapedText&&(Gb(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0)}),ph(n.statement)}(n);case 235:return jv(n);case 236:return function(n){Fb(n),nv(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration)if(t.variableDeclaration.type)wb(t.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(t.variableDeclaration.initializer)wb(t.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=t.block.locals;r&&e.forEachKey(t.locals,function(n){var t=r.get(n);t&&0!=(2&t.flags)&&Gb(t.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,n)})}nv(t.block)}n.finallyBlock&&nv(n.finallyBlock)}(n);case 238:return uv(n);case 187:return mv(n);case 241:return function(n){n.name||e.hasModifier(n,512)||wb(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Yv(n),e.forEach(n.members,ph),Hy(n)}(n);case 242:return nh(n);case 243:return function(n){pb(n),qv(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),zv(n.typeParameters),ph(n.type),Hy(n)}(n);case 244:return function(n){if(t){pb(n),qv(n.name,e.Diagnostics.Enum_name_cannot_be_0),iv(n,n.name),ov(n,n.name),Dy(n),th(n);var r=qr(n);if(n===e.getDeclarationOfKind(r,n.kind)){if(r.declarations.length>1){var a=e.isEnumConst(n);e.forEach(r.declarations,function(n){e.isEnumDeclaration(n)&&e.isEnumConst(n)!==a&&Ht(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var i=!1;e.forEach(r.declarations,function(n){if(244!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(i?Ht(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}(n);case 245:return ah(n);case 250:return function(n){if(!dh(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!pb(n)&&e.hasModifiers(n)&&wb(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),sh(n))){var t=n.importClause;t&&(t.name&&ch(t),t.namedBindings&&(252===t.namedBindings.kind?ch(t.namedBindings):Or(n,n.moduleSpecifier)&&e.forEach(t.namedBindings.elements,ch)))}}(n);case 249:return function(n){if(!dh(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(pb(n),e.isInternalModuleImportEqualsDeclaration(n)||sh(n)))if(ch(n),e.hasModifier(n,1)&&xr(n),260!==n.moduleReference.kind){var t=Ar(qr(n));if(t!==me){if(111551&t.flags){var r=oh(n.moduleReference);1920&Mr(r,112575).flags||Ht(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}788968&t.flags&&qv(n.name,e.Diagnostics.Import_name_cannot_be_0)}}else F>=e.ModuleKind.ES2015&&!(4194304&n.flags)&&Gb(n,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 256:return function(n){if(!dh(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!pb(n)&&e.hasModifiers(n)&&wb(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!n.moduleSpecifier||sh(n)))if(n.exportClause){e.forEach(n.exportClause.elements,uh);var t=246===n.parent.kind&&e.isAmbientModule(n.parent.parent),r=!t&&246===n.parent.kind&&!n.moduleSpecifier&&4194304&n.flags;285===n.parent.kind||t||r||Ht(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var a=Or(n,n.moduleSpecifier);a&&Fr(a)&&Ht(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ba(a)),F!==e.ModuleKind.System&&F!==e.ModuleKind.ES2015&&F!==e.ModuleKind.ESNext&&ub(n,65536)}}(n);case 255:return function(n){if(!dh(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var t=285===n.parent.kind?n.parent:n.parent.parent;if(245!==t.kind||e.isAmbientModule(t)){if(!pb(n)&&e.hasModifiers(n)&&wb(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),73===n.expression.kind){var r=n.expression,a=Mr(r,67108863,!0,!0,n);if(a){pp(a,r);var i=2097152&a.flags?Ar(a):a;(i===me||111551&i.flags)&&z_(n.expression)}e.getEmitDeclarations(P)&&Oa(n.expression,!0)}else z_(n.expression);mh(t),4194304&n.flags&&!e.isEntityNameExpression(n.expression)&&Gb(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!n.isExportEquals||4194304&n.flags||(F>=e.ModuleKind.ES2015?Gb(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):F===e.ModuleKind.System&&Gb(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?Ht(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Ht(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 221:case 237:return void Fb(n);case 259:!function(e){Vy(e)}(n)}}(n),d=a}}function fh(n){e.isInJSFile(n)||Gb(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function gh(n){var t=rr(e.getSourceFileOfNode(n));if(!(1&t.flags)){t.deferredNodes=t.deferredNodes||e.createMap();var r=""+D(n);t.deferredNodes.set(r,n)}}function _h(n){var t=d;switch(d=n,b=0,n.kind){case 197:case 198:case 157:case 156:!function(n){e.Debug.assert(157!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=Ms(n);if(S_(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Rs(Ts(n)),219===n.body.kind)ph(n.body);else{var a=ly(n.body),i=x_(r,t);i&&bd(2==(3&t)?Iy(a,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i,n.body,n.body)}}(n);break;case 159:case 160:yy(n);break;case 210:!function(n){e.forEach(n.members,ph),Hy(n)}(n);break;case 262:!function(e){Cf(e)}(n);break;case 261:!function(e){Cf(e.openingElement),pf(e.closingElement.tagName)?vf(e.closingElement):ly(e.closingElement.tagName),gf(e)}(n)}d=t}function yh(n){e.performance.mark("beforeCheck"),function(n){var t=rr(n);if(!(1&t.flags)){if(e.skipTypeChecking(n,P))return;!function(n){4194304&n.flags&&function(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if((e.isDeclaration(a)||220===a.kind)&&(242!==(i=a).kind&&243!==i.kind&&250!==i.kind&&249!==i.kind&&256!==i.kind&&255!==i.kind&&248!==i.kind&&!e.hasModifier(i,515)&&wb(i,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)))return!0}var i}(n)}(n),e.clear(Dt),e.clear(Rt),e.forEach(n.statements,ph),ph(n.endOfFileToken),function(e){var n=rr(e);n.deferredNodes&&n.deferredNodes.forEach(_h)}(n),e.isExternalOrCommonJsModule(n)&&Hy(n),n.isDeclarationFile||!P.noUnusedLocals&&!P.noUnusedParameters||Ky(hh(n),function(n,t,r){!e.containsParseError(n)&&vh(t)&&It.add(r)}),e.isExternalOrCommonJsModule(n)&&mh(n),Dt.length&&(e.forEach(Dt,rv),e.clear(Dt)),Rt.length&&(e.forEach(Rt,av),e.clear(Rt)),t.flags|=1}}(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function vh(n){switch(n){case 0:return!!P.noUnusedLocals;case 1:return!!P.noUnusedParameters;default:return e.Debug.assertNever(n)}}function hh(n){return at.get(n.path)||e.emptyArray}function bh(t,a){try{return r=a,function(t){if(Eh(),t){var r=It.getGlobalDiagnostics(),a=r.length;yh(t);var i=It.getDiagnostics(t.fileName),o=It.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,i)}return 0===a&&o.length>0?e.concatenate(o,i):i}return e.forEach(n.getSourceFiles(),yh),It.getDiagnostics()}(t)}finally{r=void 0}}function Eh(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Th(e){switch(e.kind){case 151:case 241:case 242:case 243:case 244:return!0;default:return!1}}function Sh(e){for(;149===e.parent.kind;)e=e.parent;return 165===e.parent.kind}function Lh(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function Ah(e,n){return!!Lh(e,function(e){return e===n})}function xh(e){return void 0!==function(e){for(;149===e.parent.kind;)e=e.parent;return 249===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:255===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Ch(n){if(e.isDeclarationName(n))return qr(n.parent);if(e.isInJSFile(n)&&190===n.parent.kind&&n.parent===n.parent.parent.left){var t=function(n){switch(e.getAssignmentDeclarationKind(n.parent.parent)){case 1:case 3:return qr(n.parent);case 4:case 2:case 5:return qr(n.parent.parent)}}(n);if(t)return t}if(255===n.parent.kind&&e.isEntityNameExpression(n)){var r=Mr(n,2998271,!0);if(r&&r!==me)return r}else if(!e.isPropertyAccessExpression(n)&&xh(n)){var a=e.getAncestor(n,249);return e.Debug.assert(void 0!==a),Dr(n,!0)}if(!e.isPropertyAccessExpression(n)){var i=function(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;if(t&&184===t.kind&&t.qualifier===n)return t}(n);if(i){Nc(i);var o=rr(n).resolvedSymbol;return o===me?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(function(e){for(;190===e.parent.kind;)e=e.parent;return 212===e.parent.kind}(n)){var s=0;212===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var l=e.isEntityNameExpression(n)?Mr(n,s):void 0;if(l)return l}if(307===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(151===n.parent.kind&&311===n.parent.parent.kind){e.Debug.assert(!e.isInJSFile(n));var c=e.getTypeParameterFromJsDoc(n.parent);return c&&c.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;if(73===n.kind){if(e.isJSXTagName(n)&&pf(n)){var d=vf(n.parent);return d===me?void 0:d}return Mr(n,111551,!1,!0)}if(190===n.kind||149===n.kind){var u=rr(n);return u.resolvedSymbol?u.resolvedSymbol:(190===n.kind?Vf(n):Bf(n),u.resolvedSymbol)}}else if(Sh(n))return Mr(n,s=165===n.parent.kind?788968:1920,!1,!0);return 164===n.parent.kind?Mr(n,1):void 0}function Dh(n){if(285===n.kind)return e.isExternalModule(n)?Wr(n.symbol):void 0;var t=n.parent,r=t.parent;if(!(8388608&n.flags)){if(O(n)){var a=qr(t);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?cf(a):a}if(e.isLiteralComputedPropertyDeclarationName(n))return qr(t.parent);if(73===n.kind){if(xh(n))return Ch(n);if(187===t.kind&&185===r.kind&&n===t.propertyName){var i=as(Rh(r),n.escapedText);if(i)return i}}switch(n.kind){case 73:case 190:case 149:return Ch(n);case 101:var o=e.getThisContainer(n,!1);if(e.isFunctionLike(o)){var s=Ts(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(n))return ly(n).symbol;case 179:return kc(n).symbol;case 99:return ly(n).symbol;case 125:var l=n.parent;return l&&158===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(250===n.parent.kind||256===n.parent.kind)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return Or(n,n);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===n)return qr(t);case 8:var c=e.isElementAccessExpression(t)?t.argumentExpression===n?oy(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(r)?Nc(r.objectType):void 0;return c&&as(c,e.escapeLeadingUnderscores(n.text));case 81:case 91:case 37:case 77:return qr(n.parent);case 184:return e.isLiteralImportTypeNode(n)?Dh(n.argument.literal):void 0;case 86:return e.isExportAssignment(n.parent)?e.Debug.assertDefined(n.parent.symbol):void 0;default:return}}}function Rh(n){if(8388608&n.flags)return ye;var t,r,a=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),i=a&&wi(qr(a.class));if(e.isPartOfTypeNode(n)){var o=Nc(n);return i?so(o,i.thisType):o}if(e.isExpressionNode(n))return Ih(n);if(i&&!a.isImplements){var s=e.firstOrUndefined(ki(i));return s?so(s,i.thisType):ye}if(Th(n))return Hi(r=qr(n));if(73===(t=n).kind&&Th(t.parent)&&t.parent.name===t)return(r=Dh(n))?Hi(r):ye;if(e.isDeclaration(n))return hi(r=qr(n));if(O(n))return(r=Dh(n))?hi(r):ye;if(e.isBindingPattern(n))return Qa(n.parent,!0)||ye;if(xh(n)&&(r=Dh(n))){var l=Hi(r);return l!==ye?l:hi(r)}return ye}function Mh(n){if(e.Debug.assert(189===n.kind||188===n.kind),228===n.parent.kind)return U_(n,yv(n.parent.expression,n.parent.awaitModifier)||ye);if(205===n.parent.kind)return U_(n,oy(n.parent.right)||ye);if(276===n.parent.kind){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression);return V_(t,Mh(t)||ye,e.indexOfNode(t.properties,n.parent))}var r=e.cast(n.parent,e.isArrayLiteralExpression),a=Mh(r)||ye,i=vv(65,a,he,n.parent)||ye;return B_(r,a,r.elements.indexOf(n),i)}function Ih(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),Rc(oy(n))}function Oh(n){n=es(n);var t=e.createSymbolTable(Bo(n)),r=os(n,0).length?an:os(n,1).length?on:void 0;return r&&e.forEach(Bo(r),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),ia(t)}function kh(n){return e.typeHasCallOrConstructSignatures(n,te)}function Nh(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t)return!(190===t.parent.kind&&t.parent.name===t)&&ob(t)===ee}return!1}function wh(n){var t=Or(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=Fr(t),a=tr(t=Pr(t));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(Hr(t),function(e){return(e=Lr(e))&&!!(111551&e.flags)})),a.exportsSomeValue}function Ph(n,t){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var a=ob(r,function(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}(r));if(a){if(1048576&a.flags){var i=Wr(a.exportSymbol);if(!t&&944&i.flags&&!(3&i.flags))return;a=i}var o=zr(a);if(o){if(512&o.flags&&285===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(r)?void 0:s}return e.findAncestor(r.parent,function(n){return e.isModuleOrEnumDeclaration(n)&&qr(n)===o})}}}}function Gh(n){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=ob(t);if(Sr(r,111551))return _r(r)}}function Fh(n){if(418&n.flags&&!e.isSourceFile(n.valueDeclaration)){var t=tr(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||function(n){return e.isBindingElement(n.valueDeclaration)&&275===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}(n)){var a=rr(n.valueDeclaration);if(sr(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(262144&a.flags){var i=524288&a.flags,o=e.isIterationStatement(r,!1),s=219===r.kind&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||i&&(o||s))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function Vh(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=ob(t);if(r&&Fh(r))return r.valueDeclaration}}}function Bh(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=qr(t);if(r)return Fh(r)}return!1}function Uh(n){switch(n.kind){case 249:case 251:case 252:case 254:case 258:return Kh(qr(n)||me);case 256:var t=n.exportClause;return!!t&&e.some(t.elements,Uh);case 255:return!n.expression||73!==n.expression.kind||Kh(qr(n)||me)}return!1}function Hh(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);return!(void 0===t||285!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&Kh(qr(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Kh(e){var n=Ar(e);return n===me||!!(111551&n.flags)&&(P.preserveConstEnums||!jh(n))}function jh(e){return F_(e)||!!e.constEnumOnlyModule}function Wh(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=As(qr(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function qh(n){return!(!B||_s(n)||e.isJSDocParameterTag(n)||!n.initializer||e.hasModifier(n,92))}function zh(n){return B&&_s(n)&&!n.initializer&&e.hasModifier(n,92)}function Xh(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=qr(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(Ur(r),function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)})}function Jh(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=qr(t);return r&&Bo(hi(r))||e.emptyArray}function Yh(e){return rr(e).flags||0}function Qh(e){return th(e.parent),rr(e).enumMemberValue}function Zh(e){switch(e.kind){case 279:case 190:case 191:return!0}return!1}function $h(n){if(279===n.kind)return Qh(n);var t=rr(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return Qh(r)}}function eb(e){return!!(524288&e.flags)&&os(e,0).length>0}function nb(n,t){var r=e.getParseTreeNode(n,e.isEntityName);if(!r)return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var a=Mr(r,111551,!0,!1,t),i=Mr(r,788968,!0,!1,t);if(a&&a===i){var o=El(!1);if(o&&a===o)return e.TypeReferenceSerializationKind.Promise;var s=hi(a);if(s&&Di(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.Unknown;var l=Hi(i);return l===ye?e.TypeReferenceSerializationKind.Unknown:3&l.flags?e.TypeReferenceSerializationKind.ObjectType:w_(l,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:w_(l,528)?e.TypeReferenceSerializationKind.BooleanType:w_(l,296)?e.TypeReferenceSerializationKind.NumberLikeType:w_(l,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:w_(l,132)?e.TypeReferenceSerializationKind.StringLikeType:_u(l)?e.TypeReferenceSerializationKind.ArrayLikeType:w_(l,12288)?e.TypeReferenceSerializationKind.ESSymbolType:eb(l)?e.TypeReferenceSerializationKind.TypeWithCallSignature:nu(l)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function tb(n,t,r,a,i){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.createToken(121);var s=qr(o),l=!s||133120&s.flags?ye:mu(hi(s));return 8192&l.flags&&l.symbol===s&&(r|=1048576),i&&(l=Au(l)),J.typeToTypeNode(l,t,1024|r,a)}function rb(n,t,r,a){var i=e.getParseTreeNode(n,e.isFunctionLike);if(!i)return e.createToken(121);var o=Ts(i);return J.typeToTypeNode(Rs(o),t,1024|r,a)}function ab(n,t,r,a){var i=e.getParseTreeNode(n,e.isExpression);if(!i)return e.createToken(121);var o=Nu(Ih(i));return J.typeToTypeNode(o,t,1024|r,a)}function ib(n){return Y.has(e.escapeLeadingUnderscores(n))}function ob(n,t){var r=rr(n).resolvedSymbol;if(r)return r;var a=n;if(t){var i=n.parent;e.isDeclaration(i)&&n===i.name&&(a=Ga(i))}return sr(a,n.escapedText,3257279,void 0,void 0,!0)}function sb(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=ob(t);if(r)return Yr(r).valueDeclaration}}}function lb(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&Mc(hi(qr(n)))}function cb(n,t){return function(n,t,r){return(1024&n.flags?J.symbolToExpression(n.symbol,111551,t,void 0,r):n===De?e.createTrue():n===xe&&e.createFalse())||e.createLiteral(n.value)}(hi(qr(n)),n,t)}function db(n){var t=245===n.kind?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=kr(t,t,void 0);if(r)return e.getDeclarationOfKind(r,285)}function ub(n,t){if((a&t)!==t&&P.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,P)&&!(4194304&n.flags)){var i=(d=n,c||(c=Nr(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,d)||me),c);if(i!==me)for(var o=t&~a,s=1;s<=131072;s<<=1)if(o&s){var l=mb(s);ir(i.exports,e.escapeLeadingUnderscores(l),111551)||Ht(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,l)}a|=t}}var d}function mb(n){switch(n){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"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function pb(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 157!==n.kind||e.nodeIsPresent(n.body)?wb(n,e.Diagnostics.Decorators_are_not_valid_here):wb(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(159===n.kind||160===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return wb(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(n)||function(n){var t,r,a,i,o=function(n){return!!n.modifiers&&(function(n){switch(n.kind){case 159:case 160:case 158:case 155:case 154:case 157:case 156:case 163:case 245:case 250:case 249:case 256:case 255:case 197:case 198:case 152:return!1;default:if(246===n.parent.kind||285===n.parent.kind)return!1;switch(n.kind){case 240:return fb(n,122);case 241:return fb(n,119);case 242:case 220:case 243:return!0;case 244:return fb(n,78);default:return e.Debug.fail(),!1}}}(n)?wb(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(n);if(void 0!==o)return o;for(var s=0,l=0,c=n.modifiers;l<c.length;l++){var d=c[l];if(134!==d.kind){if(154===n.kind||156===n.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(163===n.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}switch(d.kind){case 78:if(244!==n.kind)return Gb(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(78));break;case 116:case 115:case 114:var u=xa(e.modifierToFlag(d.kind));if(28&s)return Gb(d,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"static");if(64&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"readonly");if(256&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"async");if(246===n.parent.kind||285===n.parent.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,u);if(128&s)return 114===d.kind?Gb(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,u,"abstract"):Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"abstract");s|=e.modifierToFlag(d.kind);break;case 117:if(32&s)return Gb(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(246===n.parent.kind||285===n.parent.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(152===n.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return Gb(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,t=d;break;case 134:if(64&s)return Gb(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(155!==n.kind&&154!==n.kind&&163!==n.kind&&152!==n.kind)return Gb(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,i=d;break;case 86:if(1&s)return Gb(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return Gb(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(241===n.parent.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(152===n.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 81:var m=285===n.parent.kind?n.parent:n.parent.parent;if(245===m.kind&&!e.isAmbientModule(m))return Gb(d,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 126:if(2&s)return Gb(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return Gb(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(241===n.parent.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(152===n.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(4194304&n.parent.flags&&246===n.parent.kind)return Gb(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,r=d;break;case 119:if(128&s)return Gb(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(241!==n.kind){if(157!==n.kind&&155!==n.kind&&159!==n.kind&&160!==n.kind)return Gb(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(241!==n.parent.kind||!e.hasModifier(n.parent,128))return Gb(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return Gb(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return Gb(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 122:if(256&s)return Gb(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||4194304&n.parent.flags)return Gb(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(152===n.kind)return Gb(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,a=d}}return 158===n.kind?32&s?Gb(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?Gb(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?Gb(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&Gb(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):(250===n.kind||249===n.kind)&&2&s?Gb(r,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):152===n.kind&&92&s&&e.isBindingPattern(n.name)?Gb(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):152===n.kind&&92&s&&n.dotDotDotToken?Gb(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&s)&&function(n,t){switch(n.kind){case 157:case 240:case 197:case 198:return!1}return Gb(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(n,a)}(n)}function fb(e,n){return e.modifiers.length>1||e.modifiers[0].kind!==n}function gb(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&Pb(n[0],n.end-",".length,",".length,t)}function _b(n,t){if(n&&0===n.length){var r=n.pos-"<".length;return Pb(t,r,e.skipTrivia(t.text,n.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function yb(n){if(G>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=(i=n.parameters,e.filter(i,function(n){return!!n.initializer||e.isBindingPattern(n.name)||e.isRestParameter(n)}));if(e.length(r)){e.forEach(r,function(n){e.addRelatedInfo(Ht(n,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var a=r.map(function(n,t){return 0===t?e.createDiagnosticForNode(n,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(n,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,o([Ht(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var i;return!1}function vb(n){var t=e.getSourceFileOfNode(n);return pb(n)||_b(n.typeParameters,t)||function(n){for(var t=!1,r=n.length,a=0;a<r;a++){var i=n[a];if(i.dotDotDotToken){if(a!==r-1)return Gb(i.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(4194304&i.flags||gb(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return Gb(i.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return Gb(i.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(i.questionToken){if(t=!0,i.initializer)return Gb(i.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return Gb(i.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(n.parameters)||function(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken,a=e.getLineAndCharacterOfPosition(t,r.pos).line,i=e.getLineAndCharacterOfPosition(t,r.end).line;return a!==i&&Gb(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(n,t)||e.isFunctionLikeDeclaration(n)&&yb(n)}function hb(n,t){return gb(t)||function(n,t){if(t&&0===t.length){var r=e.getSourceFileOfNode(n),a=t.pos-"<".length;return Pb(r,a,e.skipTrivia(r.text,t.end)+">".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(n,t)}function bb(n){return function(n){if(n)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(211===a.kind)return Pb(a,a.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(n)}function Eb(n){var t=n.types;if(gb(t))return!0;if(t&&0===t.length){var r=e.tokenToString(n.token);return Pb(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(t,Tb)}function Tb(e){return hb(e,e.typeArguments)}function Sb(n){if(150!==n.kind)return!1;var t=n;return 205===t.expression.kind&&27===t.expression.operatorToken.kind&&Gb(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function Lb(n){if(n.asteriskToken){if(e.Debug.assert(240===n.kind||197===n.kind||157===n.kind),4194304&n.flags)return Gb(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Gb(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function Ab(e,n){return!!e&&Gb(e,n)}function xb(e,n){return!!e&&Gb(e,n)}function Cb(n){if(Fb(n))return!0;if(228===n.kind&&n.awaitModifier&&0==(16384&n.flags)){if(!Nb(e.getSourceFileOfNode(n))){var t=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),r=e.getContainingFunction(n);if(r&&158!==r.kind){e.Debug.assert(0==(2&e.getFunctionFlags(r)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(t,a)}return It.add(t),!0}return!1}if(239===n.initializer.kind){var i=n.initializer;if(!kb(i)){var o=i.declarations;if(!o.length)return!1;if(o.length>1)return t=227===n.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,wb(i.declarations[1],t);var s=o[0];if(s.initializer){var t=227===n.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gb(s.name,t)}if(s.type)return Gb(s,t=227===n.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function Db(n){if(n.parameters.length===(159===n.kind?1:2))return e.getThisParameter(n)}function Rb(n,t){if(function(n){return e.isDynamicName(n)&&!Zi(n)}(n))return Gb(n,t)}function Mb(n){if(vb(n))return!0;if(157===n.kind){if(189===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||122!==e.first(n.modifiers).kind))return wb(n,e.Diagnostics.Modifiers_cannot_appear_here);if(Ab(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(xb(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return Pb(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Lb(n))return!0}if(e.isClassLike(n.parent)){if(4194304&n.flags)return Rb(n.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(157===n.kind&&!n.body)return Rb(n.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(242===n.parent.kind)return Rb(n.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(169===n.parent.kind)return Rb(n.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Ib(e){return 10===e.kind||8===e.kind||203===e.kind&&39===e.operator&&8===e.operand.kind}function Ob(n){var t,r=n.initializer;if(r){var a=!(Ib(r)||function(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&Ib(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&z_(n).flags)}(r)||103===r.kind||88===r.kind||(t=r,9===t.kind||203===t.kind&&39===t.operator&&9===t.operand.kind)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!i||n.type)return Gb(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(a)return Gb(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!i||a)return Gb(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function kb(n){var t=n.declarations;return!!gb(n.declarations)||!n.declarations.length&&Pb(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function Nb(e){return e.parseDiagnostics.length>0}function wb(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!Nb(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return It.add(e.createFileDiagnostic(o,s.start,s.length,t,r,a,i)),!0}return!1}function Pb(n,t,r,a,i,o,s){var l=e.getSourceFileOfNode(n);return!Nb(l)&&(It.add(e.createFileDiagnostic(l,t,r,a,i,o,s)),!0)}function Gb(n,t,r,a,i){return!Nb(e.getSourceFileOfNode(n))&&(It.add(e.createDiagnosticForNode(n,t,r,a,i)),!0)}function Fb(n){if(4194304&n.flags){if(!rr(n).hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return rr(n).hasReportedStatementInAmbientContext=wb(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(219===n.parent.kind||246===n.parent.kind||285===n.parent.kind){var t=rr(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=wb(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Vb(n){if(32&n.numericLiteralFlags){var t=void 0;if(G>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,183)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,279)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&39===n.parent.operator,a=(r?"-":"")+"0o"+n.text;return Gb(r?n.parent:n,t,a)}}return!1}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(x||(x={}))}(u||(u={})),function(e){function n(n){var t=e.createNode(n,-1,-1);return t.flags|=8,t}function t(n,t){return n!==t&&(nt(n,t),Jn(n,t),e.aggregateTransformFlags(n)),n}function r(n,t){if(n&&n!==e.emptyArray){if(e.isNodeArray(n))return n}else n=[];var r=n;return r.pos=-1,r.end=-1,r.hasTrailingComma=t,r}function a(e){if(void 0===e)return e;var t=n(e.kind);for(var r in t.flags|=e.flags,nt(t,e),e)!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function i(n,t){if("number"==typeof n)return o(n+"");if("object"==typeof n&&"base10Value"in n)return s(e.pseudoBigIntToString(n)+"n");if("boolean"==typeof n)return n?f():g();if(e.isString(n)){var r=l(n);return t&&(r.singleQuote=!0),r}return a=n,(i=l(e.getTextOfIdentifierOrLiteral(a))).textSourceNode=a,i;var a,i}function o(e,t){void 0===t&&(t=0);var r=n(8);return r.text=e,r.numericLiteralFlags=t,r}function s(e){var t=n(9);return t.text=e,t}function l(e){var t=n(10);return t.text=e,t}function c(t,a){var i=n(73);return i.escapedText=e.escapeLeadingUnderscores(t),i.originalKeywordKind=t?e.stringToToken(t):0,i.autoGenerateFlags=0,i.autoGenerateId=0,a&&(i.typeArguments=r(a)),i}e.updateNode=t,e.createNodeArray=r,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createBigIntLiteral=s,e.createStringLiteral=l,e.createRegularExpressionLiteral=function(e){var t=n(13);return t.text=e,t},e.createIdentifier=c,e.updateIdentifier=function(n,r){return n.typeArguments!==r?t(c(e.idText(n),r),n):n};var d,u=0;function m(e){var n=c(e);return n.autoGenerateFlags=19,n.autoGenerateId=u,u++,n}function p(e){return n(e)}function f(){return n(103)}function g(){return n(88)}function _(e){return p(e)}function y(e,t){var r=n(149);return r.left=e,r.right=Wn(t),r}function v(t){var r=n(150);return r.expression=function(n){return e.isCommaSequence(n)?se(n):n}(t),r}function h(e,t,r){var a=n(151);return a.name=Wn(e),a.constraint=t,a.default=r,a}function b(t,r,a,i,o,s,l){var c=n(152);return c.decorators=qn(t),c.modifiers=qn(r),c.dotDotDotToken=a,c.name=Wn(i),c.questionToken=o,c.type=s,c.initializer=l?e.parenthesizeExpressionForList(l):void 0,c}function E(t){var r=n(153);return r.expression=e.parenthesizeForAccess(t),r}function T(e,t,r,a,i){var o=n(154);return o.modifiers=qn(e),o.name=Wn(t),o.questionToken=r,o.type=a,o.initializer=i,o}function S(e,t,r,a,i,o){var s=n(155);return s.decorators=qn(e),s.modifiers=qn(t),s.name=Wn(r),s.questionToken=void 0!==a&&56===a.kind?a:void 0,s.exclamationToken=void 0!==a&&52===a.kind?a:void 0,s.type=i,s.initializer=o,s}function L(e,n,t,r,a){var i=M(156,e,n,t);return i.name=Wn(r),i.questionToken=a,i}function A(e,t,a,i,o,s,l,c,d){var u=n(157);return u.decorators=qn(e),u.modifiers=qn(t),u.asteriskToken=a,u.name=Wn(i),u.questionToken=o,u.typeParameters=qn(s),u.parameters=r(l),u.type=c,u.body=d,u}function x(e,t,a,i){var o=n(158);return o.decorators=qn(e),o.modifiers=qn(t),o.typeParameters=void 0,o.parameters=r(a),o.type=void 0,o.body=i,o}function C(e,t,a,i,o,s){var l=n(159);return l.decorators=qn(e),l.modifiers=qn(t),l.name=Wn(a),l.typeParameters=void 0,l.parameters=r(i),l.type=o,l.body=s,l}function D(e,t,a,i,o){var s=n(160);return s.decorators=qn(e),s.modifiers=qn(t),s.name=Wn(a),s.typeParameters=void 0,s.parameters=r(i),s.body=o,s}function R(e,t,a,i){var o=n(163);return o.decorators=qn(e),o.modifiers=qn(t),o.parameters=r(a),o.type=i,o}function M(e,t,r,a,i){var o=n(e);return o.typeParameters=qn(t),o.parameters=qn(r),o.type=a,o.typeArguments=qn(i),o}function I(e,n,r,a){return e.typeParameters!==n||e.parameters!==r||e.type!==a?t(M(e.kind,n,r,a),e):e}function O(e,t){var r=n(164);return r.parameterName=Wn(e),r.type=t,r}function k(t,r){var a=n(165);return a.typeName=Wn(t),a.typeArguments=r&&e.parenthesizeTypeParameters(r),a}function N(e){var t=n(168);return t.exprName=e,t}function w(e){var t=n(169);return t.members=r(e),t}function P(t){var r=n(170);return r.elementType=e.parenthesizeArrayTypeMember(t),r}function G(e){var t=n(171);return t.elementTypes=r(e),t}function F(t){var r=n(172);return r.type=e.parenthesizeArrayTypeMember(t),r}function V(e){var t=n(173);return t.type=e,t}function B(t,r){var a=n(t);return a.types=e.parenthesizeElementTypeMembers(r),a}function U(e,n){return e.types!==n?t(B(e.kind,n),e):e}function H(t,r,a,i){var o=n(176);return o.checkType=e.parenthesizeConditionalTypeMember(t),o.extendsType=e.parenthesizeConditionalTypeMember(r),o.trueType=a,o.falseType=i,o}function K(e){var t=n(177);return t.typeParameter=e,t}function j(t,r,a,i){var o=n(184);return o.argument=t,o.qualifier=r,o.typeArguments=e.parenthesizeTypeParameters(a),o.isTypeOf=i,o}function W(e){var t=n(178);return t.type=e,t}function q(t,r){var a=n(180);return a.operator="number"==typeof t?t:130,a.type=e.parenthesizeElementTypeMember("number"==typeof t?r:t),a}function z(t,r){var a=n(181);return a.objectType=e.parenthesizeElementTypeMember(t),a.indexType=r,a}function X(e,t,r,a){var i=n(182);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=r,i.type=a,i}function J(e){var t=n(183);return t.literal=e,t}function Y(e){var t=n(185);return t.elements=r(e),t}function Q(e){var t=n(186);return t.elements=r(e),t}function Z(e,t,r,a){var i=n(187);return i.dotDotDotToken=e,i.propertyName=Wn(t),i.name=Wn(r),i.initializer=a,i}function $(t,a){var i=n(188);return i.elements=e.parenthesizeListElements(r(t)),a&&(i.multiLine=!0),i}function ee(e,t){var a=n(189);return a.properties=r(e),t&&(a.multiLine=!0),a}function ne(t,r){var a=n(190);return a.expression=e.parenthesizeForAccess(t),a.name=Wn(r),Yn(a,131072),a}function te(t,r){var a,o=n(191);return o.expression=e.parenthesizeForAccess(t),o.argumentExpression=(a=r,e.isString(a)||"number"==typeof a?i(a):a),o}function re(t,a,i){var o=n(192);return o.expression=e.parenthesizeForAccess(t),o.typeArguments=qn(a),o.arguments=e.parenthesizeListElements(r(i)),o}function ae(t,a,i){var o=n(193);return o.expression=e.parenthesizeForNew(t),o.typeArguments=qn(a),o.arguments=i?e.parenthesizeListElements(r(i)):void 0,o}function ie(t,r,a){var i=n(194);return i.tag=e.parenthesizeForAccess(t),a?(i.typeArguments=qn(r),i.template=a):(i.typeArguments=void 0,i.template=r),i}function oe(t,r){var a=n(195);return a.type=t,a.expression=e.parenthesizePrefixOperand(r),a}function se(e){var t=n(196);return t.expression=e,t}function le(e,t,a,i,o,s,l){var c=n(197);return c.modifiers=qn(e),c.asteriskToken=t,c.name=Wn(a),c.typeParameters=qn(i),c.parameters=r(o),c.type=s,c.body=l,c}function ce(t,a,i,o,s,l){var c=n(198);return c.modifiers=qn(t),c.typeParameters=qn(a),c.parameters=r(i),c.type=o,c.equalsGreaterThanToken=s||p(37),c.body=e.parenthesizeConciseBody(l),c}function de(t){var r=n(199);return r.expression=e.parenthesizePrefixOperand(t),r}function ue(t){var r=n(200);return r.expression=e.parenthesizePrefixOperand(t),r}function me(t){var r=n(201);return r.expression=e.parenthesizePrefixOperand(t),r}function pe(t){var r=n(202);return r.expression=e.parenthesizePrefixOperand(t),r}function fe(t,r){var a=n(203);return a.operator=t,a.operand=e.parenthesizePrefixOperand(r),a}function ge(t,r){var a=n(204);return a.operand=e.parenthesizePostfixOperand(t),a.operator=r,a}function _e(t,r,a){var i,o=n(205),s="number"==typeof(i=r)?p(i):i,l=s.kind;return o.left=e.parenthesizeBinaryOperand(l,t,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(l,a,!1,o.left),o}function ye(t,r,a,i,o){var s=n(206);return s.condition=e.parenthesizeForConditionalHead(t),s.questionToken=o?r:p(56),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?a:r),s.colonToken=o?i:p(57),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||a),s}function ve(e,t){var a=n(207);return a.head=e,a.templateSpans=r(t),a}e.createTempVariable=function(e,n){var t=c("");return t.autoGenerateFlags=1,t.autoGenerateId=u,u++,e&&e(t),n&&(t.autoGenerateFlags|=8),t},e.createLoopVariable=function(){var e=c("");return e.autoGenerateFlags=2,e.autoGenerateId=u,u++,e},e.createUniqueName=function(e){var n=c(e);return n.autoGenerateFlags=3,n.autoGenerateId=u,u++,n},e.createOptimisticUniqueName=m,e.createFileLevelUniqueName=function(e){var n=m(e);return n.autoGenerateFlags|=32,n},e.getGeneratedNameForNode=function(n,t){var r=c(n&&e.isIdentifier(n)?e.idText(n):"");return r.autoGenerateFlags=4|t,r.autoGenerateId=u,r.original=n,u++,r},e.createToken=p,e.createSuper=function(){return n(99)},e.createThis=function(){return n(101)},e.createNull=function(){return n(97)},e.createTrue=f,e.createFalse=g,e.createModifier=_,e.createModifiersFromModifierFlags=function(e){var n=[];return 1&e&&n.push(_(86)),2&e&&n.push(_(126)),512&e&&n.push(_(81)),2048&e&&n.push(_(78)),4&e&&n.push(_(116)),8&e&&n.push(_(114)),16&e&&n.push(_(115)),128&e&&n.push(_(119)),32&e&&n.push(_(117)),64&e&&n.push(_(134)),256&e&&n.push(_(122)),n},e.createQualifiedName=y,e.updateQualifiedName=function(e,n,r){return e.left!==n||e.right!==r?t(y(n,r),e):e},e.createComputedPropertyName=v,e.updateComputedPropertyName=function(e,n){return e.expression!==n?t(v(n),e):e},e.createTypeParameterDeclaration=h,e.updateTypeParameterDeclaration=function(e,n,r,a){return e.name!==n||e.constraint!==r||e.default!==a?t(h(n,r,a),e):e},e.createParameter=b,e.updateParameter=function(e,n,r,a,i,o,s,l){return e.decorators!==n||e.modifiers!==r||e.dotDotDotToken!==a||e.name!==i||e.questionToken!==o||e.type!==s||e.initializer!==l?t(b(n,r,a,i,o,s,l),e):e},e.createDecorator=E,e.updateDecorator=function(e,n){return e.expression!==n?t(E(n),e):e},e.createPropertySignature=T,e.updatePropertySignature=function(e,n,r,a,i,o){return e.modifiers!==n||e.name!==r||e.questionToken!==a||e.type!==i||e.initializer!==o?t(T(n,r,a,i,o),e):e},e.createProperty=S,e.updateProperty=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.questionToken!==(void 0!==i&&56===i.kind?i:void 0)||e.exclamationToken!==(void 0!==i&&52===i.kind?i:void 0)||e.type!==o||e.initializer!==s?t(S(n,r,a,i,o,s),e):e},e.createMethodSignature=L,e.updateMethodSignature=function(e,n,r,a,i,o){return e.typeParameters!==n||e.parameters!==r||e.type!==a||e.name!==i||e.questionToken!==o?t(L(n,r,a,i,o),e):e},e.createMethod=A,e.updateMethod=function(e,n,r,a,i,o,s,l,c,d){return e.decorators!==n||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.questionToken!==o||e.typeParameters!==s||e.parameters!==l||e.type!==c||e.body!==d?t(A(n,r,a,i,o,s,l,c,d),e):e},e.createConstructor=x,e.updateConstructor=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.parameters!==a||e.body!==i?t(x(n,r,a,i),e):e},e.createGetAccessor=C,e.updateGetAccessor=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.parameters!==i||e.type!==o||e.body!==s?t(C(n,r,a,i,o,s),e):e},e.createSetAccessor=D,e.updateSetAccessor=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.parameters!==i||e.body!==o?t(D(n,r,a,i,o),e):e},e.createCallSignature=function(e,n,t){return M(161,e,n,t)},e.updateCallSignature=function(e,n,t,r){return I(e,n,t,r)},e.createConstructSignature=function(e,n,t){return M(162,e,n,t)},e.updateConstructSignature=function(e,n,t,r){return I(e,n,t,r)},e.createIndexSignature=R,e.updateIndexSignature=function(e,n,r,a,i){return e.parameters!==a||e.type!==i||e.decorators!==n||e.modifiers!==r?t(R(n,r,a,i),e):e},e.createSignatureDeclaration=M,e.createKeywordTypeNode=function(e){return n(e)},e.createTypePredicateNode=O,e.updateTypePredicateNode=function(e,n,r){return e.parameterName!==n||e.type!==r?t(O(n,r),e):e},e.createTypeReferenceNode=k,e.updateTypeReferenceNode=function(e,n,r){return e.typeName!==n||e.typeArguments!==r?t(k(n,r),e):e},e.createFunctionTypeNode=function(e,n,t){return M(166,e,n,t)},e.updateFunctionTypeNode=function(e,n,t,r){return I(e,n,t,r)},e.createConstructorTypeNode=function(e,n,t){return M(167,e,n,t)},e.updateConstructorTypeNode=function(e,n,t,r){return I(e,n,t,r)},e.createTypeQueryNode=N,e.updateTypeQueryNode=function(e,n){return e.exprName!==n?t(N(n),e):e},e.createTypeLiteralNode=w,e.updateTypeLiteralNode=function(e,n){return e.members!==n?t(w(n),e):e},e.createArrayTypeNode=P,e.updateArrayTypeNode=function(e,n){return e.elementType!==n?t(P(n),e):e},e.createTupleTypeNode=G,e.updateTupleTypeNode=function(e,n){return e.elementTypes!==n?t(G(n),e):e},e.createOptionalTypeNode=F,e.updateOptionalTypeNode=function(e,n){return e.type!==n?t(F(n),e):e},e.createRestTypeNode=V,e.updateRestTypeNode=function(e,n){return e.type!==n?t(V(n),e):e},e.createUnionTypeNode=function(e){return B(174,e)},e.updateUnionTypeNode=function(e,n){return U(e,n)},e.createIntersectionTypeNode=function(e){return B(175,e)},e.updateIntersectionTypeNode=function(e,n){return U(e,n)},e.createUnionOrIntersectionTypeNode=B,e.createConditionalTypeNode=H,e.updateConditionalTypeNode=function(e,n,r,a,i){return e.checkType!==n||e.extendsType!==r||e.trueType!==a||e.falseType!==i?t(H(n,r,a,i),e):e},e.createInferTypeNode=K,e.updateInferTypeNode=function(e,n){return e.typeParameter!==n?t(K(n),e):e},e.createImportTypeNode=j,e.updateImportTypeNode=function(e,n,r,a,i){return e.argument!==n||e.qualifier!==r||e.typeArguments!==a||e.isTypeOf!==i?t(j(n,r,a,i),e):e},e.createParenthesizedType=W,e.updateParenthesizedType=function(e,n){return e.type!==n?t(W(n),e):e},e.createThisTypeNode=function(){return n(179)},e.createTypeOperatorNode=q,e.updateTypeOperatorNode=function(e,n){return e.type!==n?t(q(e.operator,n),e):e},e.createIndexedAccessTypeNode=z,e.updateIndexedAccessTypeNode=function(e,n,r){return e.objectType!==n||e.indexType!==r?t(z(n,r),e):e},e.createMappedTypeNode=X,e.updateMappedTypeNode=function(e,n,r,a,i){return e.readonlyToken!==n||e.typeParameter!==r||e.questionToken!==a||e.type!==i?t(X(n,r,a,i),e):e},e.createLiteralTypeNode=J,e.updateLiteralTypeNode=function(e,n){return e.literal!==n?t(J(n),e):e},e.createObjectBindingPattern=Y,e.updateObjectBindingPattern=function(e,n){return e.elements!==n?t(Y(n),e):e},e.createArrayBindingPattern=Q,e.updateArrayBindingPattern=function(e,n){return e.elements!==n?t(Q(n),e):e},e.createBindingElement=Z,e.updateBindingElement=function(e,n,r,a,i){return e.propertyName!==r||e.dotDotDotToken!==n||e.name!==a||e.initializer!==i?t(Z(n,r,a,i),e):e},e.createArrayLiteral=$,e.updateArrayLiteral=function(e,n){return e.elements!==n?t($(n,e.multiLine),e):e},e.createObjectLiteral=ee,e.updateObjectLiteral=function(e,n){return e.properties!==n?t(ee(n,e.multiLine),e):e},e.createPropertyAccess=ne,e.updatePropertyAccess=function(n,r,a){return n.expression!==r||n.name!==a?t(Yn(ne(r,a),e.getEmitFlags(n)),n):n},e.createElementAccess=te,e.updateElementAccess=function(e,n,r){return e.expression!==n||e.argumentExpression!==r?t(te(n,r),e):e},e.createCall=re,e.updateCall=function(e,n,r,a){return e.expression!==n||e.typeArguments!==r||e.arguments!==a?t(re(n,r,a),e):e},e.createNew=ae,e.updateNew=function(e,n,r,a){return e.expression!==n||e.typeArguments!==r||e.arguments!==a?t(ae(n,r,a),e):e},e.createTaggedTemplate=ie,e.updateTaggedTemplate=function(e,n,r,a){return e.tag!==n||(a?e.typeArguments!==r||e.template!==a:void 0!==e.typeArguments||e.template!==r)?t(ie(n,r,a),e):e},e.createTypeAssertion=oe,e.updateTypeAssertion=function(e,n,r){return e.type!==n||e.expression!==r?t(oe(n,r),e):e},e.createParen=se,e.updateParen=function(e,n){return e.expression!==n?t(se(n),e):e},e.createFunctionExpression=le,e.updateFunctionExpression=function(e,n,r,a,i,o,s,l){return e.name!==a||e.modifiers!==n||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==l?t(le(n,r,a,i,o,s,l),e):e},e.createArrowFunction=ce,e.updateArrowFunction=function(e,n,r,a,i,o,s){return e.modifiers!==n||e.typeParameters!==r||e.parameters!==a||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==s?t(ce(n,r,a,i,o,s),e):e},e.createDelete=de,e.updateDelete=function(e,n){return e.expression!==n?t(de(n),e):e},e.createTypeOf=ue,e.updateTypeOf=function(e,n){return e.expression!==n?t(ue(n),e):e},e.createVoid=me,e.updateVoid=function(e,n){return e.expression!==n?t(me(n),e):e},e.createAwait=pe,e.updateAwait=function(e,n){return e.expression!==n?t(pe(n),e):e},e.createPrefix=fe,e.updatePrefix=function(e,n){return e.operand!==n?t(fe(e.operator,n),e):e},e.createPostfix=ge,e.updatePostfix=function(e,n){return e.operand!==n?t(ge(n,e.operator),e):e},e.createBinary=_e,e.updateBinary=function(e,n,r,a){return e.left!==n||e.right!==r?t(_e(n,a||e.operatorToken,r),e):e},e.createConditional=ye,e.updateConditional=function(e,n,r,a,i,o){return e.condition!==n||e.questionToken!==r||e.whenTrue!==a||e.colonToken!==i||e.whenFalse!==o?t(ye(n,r,a,i,o),e):e},e.createTemplateExpression=ve,e.updateTemplateExpression=function(e,n,r){return e.head!==n||e.templateSpans!==r?t(ve(n,r),e):e};var he,be,Ee={};function Te(t,r,a){var i=n(t);if(i.text=r,void 0===a||r===a)i.rawText=a;else{var o=function(n,t){switch(d||(d=e.createScanner(99,!1,0)),n){case 14:d.setText("`"+t+"`");break;case 15:d.setText("`"+t+"${");break;case 16:d.setText("}"+t+"${");break;case 17:d.setText("}"+t+"`")}var r,a=d.scan();if(23===a&&(a=d.reScanTemplateToken()),d.isUnterminated())return d.setText(void 0),Ee;switch(a){case 14:case 15:case 16:case 17:r=d.getTokenValue()}return 1!==d.scan()?(d.setText(void 0),Ee):(d.setText(void 0),r)}(t,a);if("object"==typeof o)return e.Debug.fail("Invalid raw text");e.Debug.assert(r===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."),i.rawText=a}return i}function Se(e,t){var r=n(208);return r.asteriskToken=e&&40===e.kind?e:void 0,r.expression=e&&40!==e.kind?e:t,r}function Le(t){var r=n(209);return r.expression=e.parenthesizeExpressionForList(t),r}function Ae(e,t,a,i,o){var s=n(210);return s.decorators=void 0,s.modifiers=qn(e),s.name=Wn(t),s.typeParameters=qn(a),s.heritageClauses=qn(i),s.members=r(o),s}function xe(t,r){var a=n(212);return a.expression=e.parenthesizeForAccess(r),a.typeArguments=qn(t),a}function Ce(e,t){var r=n(213);return r.expression=e,r.type=t,r}function De(t){var r=n(214);return r.expression=e.parenthesizeForAccess(t),r}function Re(e,t){var r=n(215);return r.keywordToken=e,r.name=t,r}function Me(e,t){var r=n(217);return r.expression=e,r.literal=t,r}function Ie(e,t){var a=n(219);return a.statements=r(e),t&&(a.multiLine=t),a}function Oe(t,r){var a=n(220);return a.decorators=void 0,a.modifiers=qn(t),a.declarationList=e.isArray(r)?Qe(r):r,a}function ke(){return n(221)}function Ne(t){var r=n(222);return r.expression=e.parenthesizeExpressionForExpressionStatement(t),r}function we(e,n){return e.expression!==n?t(Ne(n),e):e}function Pe(e,t,r){var a=n(223);return a.expression=e,a.thenStatement=zn(t),a.elseStatement=zn(r),a}function Ge(e,t){var r=n(224);return r.statement=zn(e),r.expression=t,r}function Fe(e,t){var r=n(225);return r.expression=e,r.statement=zn(t),r}function Ve(e,t,r,a){var i=n(226);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=zn(a),i}function Be(e,t,r){var a=n(227);return a.initializer=e,a.expression=t,a.statement=zn(r),a}function Ue(e,t,r,a){var i=n(228);return i.awaitModifier=e,i.initializer=t,i.expression=r,i.statement=zn(a),i}function He(e){var t=n(229);return t.label=Wn(e),t}function Ke(e){var t=n(230);return t.label=Wn(e),t}function je(e){var t=n(231);return t.expression=e,t}function We(e,t){var r=n(232);return r.expression=e,r.statement=zn(t),r}function qe(t,r){var a=n(233);return a.expression=e.parenthesizeExpressionForList(t),a.caseBlock=r,a}function ze(e,t){var r=n(234);return r.label=Wn(e),r.statement=zn(t),r}function Xe(e){var t=n(235);return t.expression=e,t}function Je(e,t,r){var a=n(236);return a.tryBlock=e,a.catchClause=t,a.finallyBlock=r,a}function Ye(t,r,a){var i=n(238);return i.name=Wn(t),i.type=r,i.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,i}function Qe(e,t){void 0===t&&(t=0);var a=n(239);return a.flags|=3&t,a.declarations=r(e),a}function Ze(e,t,a,i,o,s,l,c){var d=n(240);return d.decorators=qn(e),d.modifiers=qn(t),d.asteriskToken=a,d.name=Wn(i),d.typeParameters=qn(o),d.parameters=r(s),d.type=l,d.body=c,d}function $e(e,t,a,i,o,s){var l=n(241);return l.decorators=qn(e),l.modifiers=qn(t),l.name=Wn(a),l.typeParameters=qn(i),l.heritageClauses=qn(o),l.members=r(s),l}function en(e,t,a,i,o,s){var l=n(242);return l.decorators=qn(e),l.modifiers=qn(t),l.name=Wn(a),l.typeParameters=qn(i),l.heritageClauses=qn(o),l.members=r(s),l}function nn(e,t,r,a,i){var o=n(243);return o.decorators=qn(e),o.modifiers=qn(t),o.name=Wn(r),o.typeParameters=qn(a),o.type=i,o}function tn(e,t,a,i){var o=n(244);return o.decorators=qn(e),o.modifiers=qn(t),o.name=Wn(a),o.members=r(i),o}function rn(e,t,r,a,i){void 0===i&&(i=0);var o=n(245);return o.flags|=532&i,o.decorators=qn(e),o.modifiers=qn(t),o.name=r,o.body=a,o}function an(e){var t=n(246);return t.statements=r(e),t}function on(e){var t=n(247);return t.clauses=r(e),t}function sn(e){var t=n(248);return t.name=Wn(e),t}function ln(e,t,r,a){var i=n(249);return i.decorators=qn(e),i.modifiers=qn(t),i.name=Wn(r),i.moduleReference=a,i}function cn(e,t,r,a){var i=n(250);return i.decorators=qn(e),i.modifiers=qn(t),i.importClause=r,i.moduleSpecifier=a,i}function dn(e,t){var r=n(251);return r.name=e,r.namedBindings=t,r}function un(e){var t=n(252);return t.name=e,t}function mn(e){var t=n(253);return t.elements=r(e),t}function pn(e,t){var r=n(254);return r.propertyName=e,r.name=t,r}function fn(t,r,a,i){var o=n(255);return o.decorators=qn(t),o.modifiers=qn(r),o.isExportEquals=a,o.expression=a?e.parenthesizeBinaryOperand(60,i,!1,void 0):e.parenthesizeDefaultExpression(i),o}function gn(e,t,r,a){var i=n(256);return i.decorators=qn(e),i.modifiers=qn(t),i.exportClause=r,i.moduleSpecifier=a,i}function _n(e){var t=n(257);return t.elements=r(e),t}function yn(e,t){var r=n(258);return r.propertyName=Wn(e),r.name=Wn(t),r}function vn(e){var t=n(260);return t.expression=e,t}function hn(e,t){var r=n(e);return r.tagName=c(t),r}function bn(e,t,a){var i=n(261);return i.openingElement=e,i.children=r(t),i.closingElement=a,i}function En(e,t,r){var a=n(262);return a.tagName=e,a.typeArguments=qn(t),a.attributes=r,a}function Tn(e,t,r){var a=n(263);return a.tagName=e,a.typeArguments=qn(t),a.attributes=r,a}function Sn(e){var t=n(264);return t.tagName=e,t}function Ln(e,t,a){var i=n(265);return i.openingFragment=e,i.children=r(t),i.closingFragment=a,i}function An(e,t){var r=n(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r}function xn(e,t){var r=n(268);return r.name=e,r.initializer=t,r}function Cn(e){var t=n(269);return t.properties=r(e),t}function Dn(e){var t=n(270);return t.expression=e,t}function Rn(e,t){var r=n(271);return r.dotDotDotToken=e,r.expression=t,r}function Mn(t,a){var i=n(272);return i.expression=e.parenthesizeExpressionForList(t),i.statements=r(a),i}function In(e){var t=n(273);return t.statements=r(e),t}function On(e,t){var a=n(274);return a.token=e,a.types=r(t),a}function kn(t,r){var a=n(275);return a.variableDeclaration=e.isString(t)?Ye(t):t,a.block=r,a}function Nn(t,r){var a=n(276);return a.name=Wn(t),a.questionToken=void 0,a.initializer=e.parenthesizeExpressionForList(r),a}function wn(t,r){var a=n(277);return a.name=Wn(t),a.objectAssignmentInitializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,a}function Pn(t){var r=n(278);return r.expression=e.parenthesizeExpressionForList(t),r}function Gn(t,r){var a=n(279);return a.name=Wn(t),a.initializer=r&&e.parenthesizeExpressionForList(r),a}function Fn(e,t){var r=n(316);return r.expression=e,r.original=t,Jn(r,t),r}function Vn(n){if(e.nodeIsSynthesized(n)&&!e.isParseTreeNode(n)&&!n.original&&!n.emitNode&&!n.id){if(317===n.kind)return n.elements;if(e.isBinaryExpression(n)&&27===n.operatorToken.kind)return[n.left,n.right]}return n}function Bn(t){var a=n(317);return a.elements=r(e.sameFlatMap(t,Vn)),a}function Un(n,t){void 0===t&&(t=e.emptyArray);var r=e.createNode(286);return r.prepends=t,r.sourceFiles=n,r}function Hn(){return he||(he=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.spreadArraysHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper],function(e){return e.name}))}function Kn(n,t){var r=e.createNode(function(n){switch(n){case"prologue":return 280;case"prepend":return 281;case"internal":return 283;case"text":return 282;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+n+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(n)}}(n.kind),n.pos,n.end);return r.parent=t,r.data=n.data,r}function jn(n,t){var r=e.createNode(284,n.pos,n.end);return r.parent=t,r.data=n.data,r.section=n,r}function Wn(n){return e.isString(n)?c(n):n}function qn(e){return e?r(e):void 0}function zn(n){return n&&e.isNotEmittedStatement(n)?Jn(nt(ke(),n),n):n}function Xn(n){if(!n.emitNode){if(e.isParseTreeNode(n)){if(285===n.kind)return n.emitNode={annotatedNodes:[n]};Xn(e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(n)))).annotatedNodes.push(n)}n.emitNode={}}return n.emitNode}function Jn(e,n){return n&&(e.pos=n.pos,e.end=n.end),e}function Yn(e,n){return Xn(e).flags=n,e}function Qn(e){var n=e.emitNode;return n&&n.leadingComments}function Zn(e,n){return Xn(e).leadingComments=n,e}function $n(e){var n=e.emitNode;return n&&n.trailingComments}function et(e,n){return Xn(e).trailingComments=n,e}function nt(n,t){if(n.original=t,t){var r=t.emitNode;r&&(n.emitNode=function(n,t){var r=n.flags,a=n.leadingComments,i=n.trailingComments,o=n.commentRange,s=n.sourceMapRange,l=n.tokenSourceMapRanges,c=n.constantValue,d=n.helpers,u=n.startsOnNewLine;t||(t={});a&&(t.leadingComments=e.addRange(a.slice(),t.leadingComments));i&&(t.trailingComments=e.addRange(i.slice(),t.trailingComments));r&&(t.flags=r);o&&(t.commentRange=o);s&&(t.sourceMapRange=s);l&&(t.tokenSourceMapRanges=function(e,n){n||(n=[]);for(var t in e)n[t]=e[t];return n}(l,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);d&&(t.helpers=e.addRange(t.helpers,d));void 0!==u&&(t.startsOnNewLine=u);return t}(r,n.emitNode))}return n}e.createTemplateHead=function(e,n){var t=Te(15,e,n);return t.text=e,t},e.createTemplateMiddle=function(e,n){var t=Te(16,e,n);return t.text=e,t},e.createTemplateTail=function(e,n){var t=Te(17,e,n);return t.text=e,t},e.createNoSubstitutionTemplateLiteral=function(e,n){return Te(14,e,n)},e.createYield=Se,e.updateYield=function(e,n,r){return e.expression!==r||e.asteriskToken!==n?t(Se(n,r),e):e},e.createSpread=Le,e.updateSpread=function(e,n){return e.expression!==n?t(Le(n),e):e},e.createClassExpression=Ae,e.updateClassExpression=function(e,n,r,a,i,o){return e.modifiers!==n||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?t(Ae(n,r,a,i,o),e):e},e.createOmittedExpression=function(){return n(211)},e.createExpressionWithTypeArguments=xe,e.updateExpressionWithTypeArguments=function(e,n,r){return e.typeArguments!==n||e.expression!==r?t(xe(n,r),e):e},e.createAsExpression=Ce,e.updateAsExpression=function(e,n,r){return e.expression!==n||e.type!==r?t(Ce(n,r),e):e},e.createNonNullExpression=De,e.updateNonNullExpression=function(e,n){return e.expression!==n?t(De(n),e):e},e.createMetaProperty=Re,e.updateMetaProperty=function(e,n){return e.name!==n?t(Re(e.keywordToken,n),e):e},e.createTemplateSpan=Me,e.updateTemplateSpan=function(e,n,r){return e.expression!==n||e.literal!==r?t(Me(n,r),e):e},e.createSemicolonClassElement=function(){return n(218)},e.createBlock=Ie,e.updateBlock=function(e,n){return e.statements!==n?t(Ie(n,e.multiLine),e):e},e.createVariableStatement=Oe,e.updateVariableStatement=function(e,n,r){return e.modifiers!==n||e.declarationList!==r?t(Oe(n,r),e):e},e.createEmptyStatement=ke,e.createExpressionStatement=Ne,e.updateExpressionStatement=we,e.createStatement=Ne,e.updateStatement=we,e.createIf=Pe,e.updateIf=function(e,n,r,a){return e.expression!==n||e.thenStatement!==r||e.elseStatement!==a?t(Pe(n,r,a),e):e},e.createDo=Ge,e.updateDo=function(e,n,r){return e.statement!==n||e.expression!==r?t(Ge(n,r),e):e},e.createWhile=Fe,e.updateWhile=function(e,n,r){return e.expression!==n||e.statement!==r?t(Fe(n,r),e):e},e.createFor=Ve,e.updateFor=function(e,n,r,a,i){return e.initializer!==n||e.condition!==r||e.incrementor!==a||e.statement!==i?t(Ve(n,r,a,i),e):e},e.createForIn=Be,e.updateForIn=function(e,n,r,a){return e.initializer!==n||e.expression!==r||e.statement!==a?t(Be(n,r,a),e):e},e.createForOf=Ue,e.updateForOf=function(e,n,r,a,i){return e.awaitModifier!==n||e.initializer!==r||e.expression!==a||e.statement!==i?t(Ue(n,r,a,i),e):e},e.createContinue=He,e.updateContinue=function(e,n){return e.label!==n?t(He(n),e):e},e.createBreak=Ke,e.updateBreak=function(e,n){return e.label!==n?t(Ke(n),e):e},e.createReturn=je,e.updateReturn=function(e,n){return e.expression!==n?t(je(n),e):e},e.createWith=We,e.updateWith=function(e,n,r){return e.expression!==n||e.statement!==r?t(We(n,r),e):e},e.createSwitch=qe,e.updateSwitch=function(e,n,r){return e.expression!==n||e.caseBlock!==r?t(qe(n,r),e):e},e.createLabel=ze,e.updateLabel=function(e,n,r){return e.label!==n||e.statement!==r?t(ze(n,r),e):e},e.createThrow=Xe,e.updateThrow=function(e,n){return e.expression!==n?t(Xe(n),e):e},e.createTry=Je,e.updateTry=function(e,n,r,a){return e.tryBlock!==n||e.catchClause!==r||e.finallyBlock!==a?t(Je(n,r,a),e):e},e.createDebuggerStatement=function(){return n(237)},e.createVariableDeclaration=Ye,e.updateVariableDeclaration=function(e,n,r,a){return e.name!==n||e.type!==r||e.initializer!==a?t(Ye(n,r,a),e):e},e.createVariableDeclarationList=Qe,e.updateVariableDeclarationList=function(e,n){return e.declarations!==n?t(Qe(n,e.flags),e):e},e.createFunctionDeclaration=Ze,e.updateFunctionDeclaration=function(e,n,r,a,i,o,s,l,c){return e.decorators!==n||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.typeParameters!==o||e.parameters!==s||e.type!==l||e.body!==c?t(Ze(n,r,a,i,o,s,l,c),e):e},e.createClassDeclaration=$e,e.updateClassDeclaration=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?t($e(n,r,a,i,o,s),e):e},e.createInterfaceDeclaration=en,e.updateInterfaceDeclaration=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?t(en(n,r,a,i,o,s),e):e},e.createTypeAliasDeclaration=nn,e.updateTypeAliasDeclaration=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.type!==o?t(nn(n,r,a,i,o),e):e},e.createEnumDeclaration=tn,e.updateEnumDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.members!==i?t(tn(n,r,a,i),e):e},e.createModuleDeclaration=rn,e.updateModuleDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.body!==i?t(rn(n,r,a,i,e.flags),e):e},e.createModuleBlock=an,e.updateModuleBlock=function(e,n){return e.statements!==n?t(an(n),e):e},e.createCaseBlock=on,e.updateCaseBlock=function(e,n){return e.clauses!==n?t(on(n),e):e},e.createNamespaceExportDeclaration=sn,e.updateNamespaceExportDeclaration=function(e,n){return e.name!==n?t(sn(n),e):e},e.createImportEqualsDeclaration=ln,e.updateImportEqualsDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.moduleReference!==i?t(ln(n,r,a,i),e):e},e.createImportDeclaration=cn,e.updateImportDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.importClause!==a||e.moduleSpecifier!==i?t(cn(n,r,a,i),e):e},e.createImportClause=dn,e.updateImportClause=function(e,n,r){return e.name!==n||e.namedBindings!==r?t(dn(n,r),e):e},e.createNamespaceImport=un,e.updateNamespaceImport=function(e,n){return e.name!==n?t(un(n),e):e},e.createNamedImports=mn,e.updateNamedImports=function(e,n){return e.elements!==n?t(mn(n),e):e},e.createImportSpecifier=pn,e.updateImportSpecifier=function(e,n,r){return e.propertyName!==n||e.name!==r?t(pn(n,r),e):e},e.createExportAssignment=fn,e.updateExportAssignment=function(e,n,r,a){return e.decorators!==n||e.modifiers!==r||e.expression!==a?t(fn(n,r,e.isExportEquals,a),e):e},e.createExportDeclaration=gn,e.updateExportDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.exportClause!==a||e.moduleSpecifier!==i?t(gn(n,r,a,i),e):e},e.createNamedExports=_n,e.updateNamedExports=function(e,n){return e.elements!==n?t(_n(n),e):e},e.createExportSpecifier=yn,e.updateExportSpecifier=function(e,n,r){return e.propertyName!==n||e.name!==r?t(yn(n,r),e):e},e.createExternalModuleReference=vn,e.updateExternalModuleReference=function(e,n){return e.expression!==n?t(vn(n),e):e},e.createJSDocTypeExpression=function(e){var t=n(289);return t.type=e,t},e.createJSDocTypeTag=function(e,n){var t=hn(310,"type");return t.typeExpression=e,t.comment=n,t},e.createJSDocReturnTag=function(e,n){var t=hn(308,"returns");return t.typeExpression=e,t.comment=n,t},e.createJSDocThisTag=function(e){var n=hn(309,"this");return n.typeExpression=e,n},e.createJSDocParamTag=function(e,n,t,r){var a=hn(307,"param");return a.typeExpression=t,a.name=e,a.isBracketed=n,a.comment=r,a},e.createJSDocComment=function(e,t){var r=n(298);return r.comment=e,r.tags=t,r},e.createJsxElement=bn,e.updateJsxElement=function(e,n,r,a){return e.openingElement!==n||e.children!==r||e.closingElement!==a?t(bn(n,r,a),e):e},e.createJsxSelfClosingElement=En,e.updateJsxSelfClosingElement=function(e,n,r,a){return e.tagName!==n||e.typeArguments!==r||e.attributes!==a?t(En(n,r,a),e):e},e.createJsxOpeningElement=Tn,e.updateJsxOpeningElement=function(e,n,r,a){return e.tagName!==n||e.typeArguments!==r||e.attributes!==a?t(Tn(n,r,a),e):e},e.createJsxClosingElement=Sn,e.updateJsxClosingElement=function(e,n){return e.tagName!==n?t(Sn(n),e):e},e.createJsxFragment=Ln,e.createJsxText=An,e.updateJsxText=function(e,n,r){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==r?t(An(n,r),e):e},e.createJsxOpeningFragment=function(){return n(266)},e.createJsxJsxClosingFragment=function(){return n(267)},e.updateJsxFragment=function(e,n,r,a){return e.openingFragment!==n||e.children!==r||e.closingFragment!==a?t(Ln(n,r,a),e):e},e.createJsxAttribute=xn,e.updateJsxAttribute=function(e,n,r){return e.name!==n||e.initializer!==r?t(xn(n,r),e):e},e.createJsxAttributes=Cn,e.updateJsxAttributes=function(e,n){return e.properties!==n?t(Cn(n),e):e},e.createJsxSpreadAttribute=Dn,e.updateJsxSpreadAttribute=function(e,n){return e.expression!==n?t(Dn(n),e):e},e.createJsxExpression=Rn,e.updateJsxExpression=function(e,n){return e.expression!==n?t(Rn(e.dotDotDotToken,n),e):e},e.createCaseClause=Mn,e.updateCaseClause=function(e,n,r){return e.expression!==n||e.statements!==r?t(Mn(n,r),e):e},e.createDefaultClause=In,e.updateDefaultClause=function(e,n){return e.statements!==n?t(In(n),e):e},e.createHeritageClause=On,e.updateHeritageClause=function(e,n){return e.types!==n?t(On(e.token,n),e):e},e.createCatchClause=kn,e.updateCatchClause=function(e,n,r){return e.variableDeclaration!==n||e.block!==r?t(kn(n,r),e):e},e.createPropertyAssignment=Nn,e.updatePropertyAssignment=function(e,n,r){return e.name!==n||e.initializer!==r?t(Nn(n,r),e):e},e.createShorthandPropertyAssignment=wn,e.updateShorthandPropertyAssignment=function(e,n,r){return e.name!==n||e.objectAssignmentInitializer!==r?t(wn(n,r),e):e},e.createSpreadAssignment=Pn,e.updateSpreadAssignment=function(e,n){return e.expression!==n?t(Pn(n),e):e},e.createEnumMember=Gn,e.updateEnumMember=function(e,n,r){return e.name!==n||e.initializer!==r?t(Gn(n,r),e):e},e.updateSourceFileNode=function(e,a,i,o,s,l,c){if(e.statements!==a||void 0!==i&&e.isDeclarationFile!==i||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==c&&e.libReferenceDirectives!==c||void 0!==l&&e.hasNoDefaultLib!==l){var d=n(285);return d.flags|=e.flags,d.statements=r(a),d.endOfFileToken=e.endOfFileToken,d.fileName=e.fileName,d.path=e.path,d.text=e.text,d.isDeclarationFile=void 0===i?e.isDeclarationFile:i,d.referencedFiles=void 0===o?e.referencedFiles:o,d.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,d.hasNoDefaultLib=void 0===l?e.hasNoDefaultLib:l,d.libReferenceDirectives=void 0===c?e.libReferenceDirectives:c,void 0!==e.amdDependencies&&(d.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(d.moduleName=e.moduleName),void 0!==e.languageVariant&&(d.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(d.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(d.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(d.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(d.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(d.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(d.identifiers=e.identifiers),void 0!==e.nodeCount&&(d.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(d.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(d.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(d.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(d.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(d.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(d.lineMap=e.lineMap),void 0!==e.classifiableNames&&(d.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(d.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(d.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(d.imports=e.imports),void 0!==e.moduleAugmentations&&(d.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(d.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(d.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(d.localJsxNamespace=e.localJsxNamespace),t(d,e)}return e},e.getMutableClone=function(e){var n=a(e);return n.pos=e.pos,n.end=e.end,n.parent=e.parent,n},e.createNotEmittedStatement=function(e){var t=n(315);return t.original=e,Jn(t,e),t},e.createEndOfDeclarationMarker=function(e){var t=n(319);return t.emitNode={},t.original=e,t},e.createMergeDeclarationMarker=function(e){var t=n(318);return t.emitNode={},t.original=e,t},e.createPartiallyEmittedExpression=Fn,e.updatePartiallyEmittedExpression=function(e,n){return e.expression!==n?t(Fn(n,e.original),e):e},e.createCommaList=Bn,e.updateCommaList=function(e,n){return e.elements!==n?t(Bn(n),e):e},e.createBundle=Un,e.createUnparsedSourceFile=function(n,t,r){var a,i,o=function(){var n=e.createNode(287);return n.prologues=e.emptyArray,n.referencedFiles=e.emptyArray,n.libReferenceDirectives=e.emptyArray,n.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(n,t)},n}();if(e.isString(n))o.fileName="",o.text=n,o.sourceMapPath=t,o.sourceMapText=r;else if(e.Debug.assert("js"===t||"dts"===t),o.fileName=("js"===t?n.javascriptPath:n.declarationPath)||"",o.sourceMapPath="js"===t?n.javascriptMapPath:n.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===t?n.javascriptText:n.declarationText}},sourceMapText:{get:function(){return"js"===t?n.javascriptMapText:n.declarationMapText}}}),n.buildInfo&&n.buildInfo.bundle&&(o.oldFileOfCurrentEmit=n.oldFileOfCurrentEmit,e.Debug.assert(void 0===r||"boolean"==typeof r),a=r,i="js"===t?n.buildInfo.bundle.js:n.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(n,t){var r,a;e.Debug.assert(!!n.oldFileOfCurrentEmit);for(var i=0,o=t.sections;i<o.length;i++){var s=o[i];switch(s.kind){case"internal":case"text":(r||(r=[])).push(Kn(s,n));break;case"no-default-lib":case"reference":case"type":case"lib":(a||(a=[])).push(jn(s,n));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(s)}}n.texts=r||e.emptyArray,n.helpers=e.map(t.sources&&t.sources.helpers,function(e){return Hn().get(e)}),n.syntheticReferences=a}(o,e.Debug.assertDefined(i)),o;return e.Debug.assert(!o.oldFileOfCurrentEmit),function(n,t,r){for(var a,i,o,s,l,c,d=0,u=t?t.sections:e.emptyArray;d<u.length;d++){var m=u[d];switch(m.kind){case"prologue":(a||(a=[])).push(Kn(m,n));break;case"emitHelpers":(i||(i=[])).push(Hn().get(m.data));break;case"no-default-lib":n.hasNoDefaultLib=!0;break;case"reference":(o||(o=[])).push({pos:-1,end:-1,fileName:m.data});break;case"type":(s||(s=[])).push(m.data);break;case"lib":(l||(l=[])).push({pos:-1,end:-1,fileName:m.data});break;case"prepend":for(var p=Kn(m,n),f=void 0,g=0,_=m.texts;g<_.length;g++){var y=_[g];r&&"internal"===y.kind||(f||(f=[])).push(Kn(y,n))}p.texts=f||e.emptyArray,(c||(c=[])).push(p);break;case"internal":if(r)break;case"text":(c||(c=[])).push(Kn(m,n));break;default:e.Debug.assertNever(m)}}n.prologues=a||e.emptyArray,n.helpers=i,n.referencedFiles=o||e.emptyArray,n.typeReferenceDirectives=s,n.libReferenceDirectives=l||e.emptyArray,n.texts=c||[Kn({kind:"text",pos:0,end:n.text.length},n)]}(o,i,a),o},e.createInputFiles=function(n,t,r,a,i,o,s,l,c,d,u){var m=e.createNode(288);if(e.isString(n))m.javascriptText=n,m.javascriptMapPath=r,m.javascriptMapText=a,m.declarationText=t,m.declarationMapPath=i,m.declarationMapText=o,m.javascriptPath=s,m.declarationPath=l,m.buildInfoPath=c,m.buildInfo=d,m.oldFileOfCurrentEmit=u;else{var p,f=e.createMap(),g=function(e){if(void 0!==e){var t=f.get(e);return void 0===t&&(t=n(e),f.set(e,void 0!==t&&t)),!1!==t?t:void 0}},_=function(e){var n=g(e);return void 0!==n?n:"/* Input file "+e+" was missing */\r\n"};m.javascriptPath=t,m.javascriptMapPath=r,m.declarationPath=e.Debug.assertDefined(a),m.declarationMapPath=i,m.buildInfoPath=o,Object.defineProperties(m,{javascriptText:{get:function(){return _(t)}},javascriptMapText:{get:function(){return g(r)}},declarationText:{get:function(){return _(e.Debug.assertDefined(a))}},declarationMapText:{get:function(){return g(i)}},buildInfo:{get:function(){return function(n){if(void 0===p){var t=n();p=void 0!==t&&e.getBuildInfo(t)}return p||void 0}(function(){return g(o)})}}})}return m},e.updateBundle=function(n,t,r){return void 0===r&&(r=e.emptyArray),n.sourceFiles!==t||n.prepends!==r?Un(t,r):n},e.createImmediatelyInvokedFunctionExpression=function(e,n,t){return re(le(void 0,void 0,void 0,void 0,n?[n]:[],void 0,Ie(e,!0)),void 0,t?[t]:[])},e.createImmediatelyInvokedArrowFunction=function(e,n,t){return re(ce(void 0,void 0,n?[n]:[],void 0,void 0,Ie(e,!0)),void 0,t?[t]:[])},e.createComma=function(e,n){return _e(e,27,n)},e.createLessThan=function(e,n){return _e(e,28,n)},e.createAssignment=function(e,n){return _e(e,60,n)},e.createStrictEquality=function(e,n){return _e(e,35,n)},e.createStrictInequality=function(e,n){return _e(e,36,n)},e.createAdd=function(e,n){return _e(e,38,n)},e.createSubtract=function(e,n){return _e(e,39,n)},e.createPostfixIncrement=function(e){return ge(e,44)},e.createLogicalAnd=function(e,n){return _e(e,54,n)},e.createLogicalOr=function(e,n){return _e(e,55,n)},e.createLogicalNot=function(e){return fe(52,e)},e.createVoidZero=function(){return me(i(0))},e.createExportDefault=function(e){return fn(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return gn(void 0,void 0,_n([yn(void 0,e)]))},e.disposeEmitNodes=function(n){var t=(n=e.getSourceFileOfNode(e.getParseTreeNode(n)))&&n.emitNode,r=t&&t.annotatedNodes;if(r)for(var a=0,i=r;a<i.length;a++)i[a].emitNode=void 0},e.getOrCreateEmitNode=Xn,e.removeAllComments=function(e){var n=Xn(e);return n.flags|=1536,n.leadingComments=void 0,n.trailingComments=void 0,e},e.setTextRange=Jn,e.setEmitFlags=Yn,e.addEmitFlags=function(e,n){var t=Xn(e);return t.flags=t.flags|n,e},e.getSourceMapRange=function(e){var n=e.emitNode;return n&&n.sourceMapRange||e},e.setSourceMapRange=function(e,n){return Xn(e).sourceMapRange=n,e},e.createSourceMapSource=function(n,t,r){return new(be||(be=e.objectAllocator.getSourceMapSourceConstructor()))(n,t,r)},e.getTokenSourceMapRange=function(e,n){var t=e.emitNode,r=t&&t.tokenSourceMapRanges;return r&&r[n]},e.setTokenSourceMapRange=function(e,n,t){var r=Xn(e);return(r.tokenSourceMapRanges||(r.tokenSourceMapRanges=[]))[n]=t,e},e.getStartsOnNewLine=function(e){var n=e.emitNode;return n&&n.startsOnNewLine},e.setStartsOnNewLine=function(e,n){return Xn(e).startsOnNewLine=n,e},e.getCommentRange=function(e){var n=e.emitNode;return n&&n.commentRange||e},e.setCommentRange=function(e,n){return Xn(e).commentRange=n,e},e.getSyntheticLeadingComments=Qn,e.setSyntheticLeadingComments=Zn,e.addSyntheticLeadingComment=function(n,t,r,a){return Zn(n,e.append(Qn(n),{kind:t,pos:-1,end:-1,hasTrailingNewLine:a,text:r}))},e.getSyntheticTrailingComments=$n,e.setSyntheticTrailingComments=et,e.addSyntheticTrailingComment=function(n,t,r,a){return et(n,e.append($n(n),{kind:t,pos:-1,end:-1,hasTrailingNewLine:a,text:r}))},e.moveSyntheticComments=function(e,n){Zn(e,Qn(n)),et(e,$n(n));var t=Xn(n);return t.leadingComments=void 0,t.trailingComments=void 0,e},e.getConstantValue=function(e){var n=e.emitNode;return n&&n.constantValue},e.setConstantValue=function(e,n){return Xn(e).constantValue=n,e},e.addEmitHelper=function(n,t){var r=Xn(n);return r.helpers=e.append(r.helpers,t),n},e.addEmitHelpers=function(n,t){if(e.some(t))for(var r=Xn(n),a=0,i=t;a<i.length;a++){var o=i[a];r.helpers=e.appendIfUnique(r.helpers,o)}return n},e.removeEmitHelper=function(n,t){var r=n.emitNode;if(r){var a=r.helpers;if(a)return e.orderedRemoveItem(a,t)}return!1},e.getEmitHelpers=function(e){var n=e.emitNode;return n&&n.helpers},e.moveEmitHelpers=function(n,t,r){var a=n.emitNode,i=a&&a.helpers;if(e.some(i)){for(var o=Xn(t),s=0,l=0;l<i.length;l++){var c=i[l];r(c)?(s++,o.helpers=e.appendIfUnique(o.helpers,c)):s>0&&(i[l-s]=c)}s>0&&(i.length-=s)}},e.compareEmitHelpers=function(n,t){return n===t?0:n.priority===t.priority?0:void 0===n.priority?1:void 0===t.priority?-1:e.compareValues(n.priority,t.priority)},e.setOriginalNode=nt}(u||(u={})),function(e){function n(n,t,r){if(e.isComputedPropertyName(t))return e.setTextRange(e.createElementAccess(n,t.expression),r);var a=e.setTextRange(e.isIdentifier(t)?e.createPropertyAccess(n,t):e.createElementAccess(n,t),t);return e.getOrCreateEmitNode(a).flags|=64,a}function t(n,t){var r=e.createIdentifier(n||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(t),r}function r(n,r,a){return n?function n(r,a){if(e.isQualifiedName(r)){var i=n(r.left,a),o=e.createIdentifier(e.idText(r.right));return o.escapedText=r.right.escapedText,e.createPropertyAccess(i,o)}return t(e.idText(r),a)}(n,a):e.createPropertyAccess(t(r,a),"createElement")}function a(n){return e.setEmitFlags(e.createIdentifier(n),4098)}function i(n,t){var r=e.skipParentheses(n);switch(r.kind){case 73:return t;case 101:case 8:case 9:case 10:return!1;case 188:return 0!==r.elements.length;case 189:return r.properties.length>0;default:return!0}}function s(n){return e.isIdentifier(n)?e.createLiteral(n):e.isComputedPropertyName(n)?e.getMutableClone(n.expression):e.getMutableClone(n)}function l(e,n,t){return c(e,n,t,8192)}function c(n,t,r,a){void 0===a&&(a=0);var i=e.getNameOfDeclaration(n);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.getMutableClone(i);return a|=e.getEmitFlags(i),r||(a|=48),t||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(n)}function d(n,t,r,a){var i=e.createPropertyAccess(n,e.nodeIsSynthesized(t)?t:e.getSynthesizedClone(t));e.setTextRange(i,t);var o=0;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function u(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function m(n,t,r){e.Debug.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=t.length;i<o;){var s=t[i];if(!e.isPrologueDirective(s))break;u(s)&&(a=!0),n.push(s),i++}return r&&!a&&n.push(x(e.createStatement(e.createLiteral("use strict")))),i}function p(n,t,r,a){for(var i=t.length;void 0!==r&&r<i;){var o=t[r];if(!(1048576&e.getEmitFlags(o)))break;e.append(n,a?e.visitNode(o,a,e.isStatement):o),r++}return r}function f(n){for(var t=0,r=n;t<r.length;t++){var a=r[t];if(!e.isPrologueDirective(a))break;if(u(a))return a}}function g(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isLiteralKind(n.kind))return n.kind;if(205===n.kind&&38===n.operatorToken.kind){if(void 0!==n.cachedLiteralKind)return n.cachedLiteralKind;var t=g(n.left),r=e.isLiteralKind(t)&&t===g(n.right)?t:0;return n.cachedLiteralKind=r,r}return 0}function _(n){var t=e.skipPartiallyEmittedExpressions(n);return e.isLeftHandSideExpression(t)&&(193!==t.kind||t.arguments)?n:e.setTextRange(e.createParen(n),n)}function y(n){var t=e.skipPartiallyEmittedExpressions(n);return e.getExpressionPrecedence(t)>e.getOperatorPrecedence(205,27)?n:e.setTextRange(e.createParen(n),n)}function v(n){return 176===n.kind?e.createParenthesizedType(n):n}function h(n){switch(n.kind){case 174:case 175:case 166:case 167:return e.createParenthesizedType(n)}return v(n)}function b(e,n){for(;;){switch(e.kind){case 204:e=e.operand;continue;case 205:e=e.left;continue;case 206:e=e.condition;continue;case 194:e=e.tag;continue;case 192:if(n)return e;case 213:case 191:case 190:case 214:case 316:e=e.expression;continue}return e}}function E(e){return 205===e.kind&&27===e.operatorToken.kind||317===e.kind}function T(e,n){switch(void 0===n&&(n=7),e.kind){case 196:return 0!=(1&n);case 195:case 213:case 214:return 0!=(2&n);case 316:return 0!=(4&n)}return!1}function S(n,t){var r;void 0===t&&(t=7);do{r=n,1&t&&(n=e.skipParentheses(n)),2&t&&(n=L(n)),4&t&&(n=e.skipPartiallyEmittedExpressions(n))}while(r!==n);return n}function L(n){for(;e.isAssertionExpression(n)||214===n.kind;)n=n.expression;return n}function A(n,t,r){return void 0===r&&(r=7),n&&T(n,r)&&(!(196===(a=n).kind&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(n,t){switch(n.kind){case 196:return e.updateParen(n,t);case 195:return e.updateTypeAssertion(n,n.type,t);case 213:return e.updateAsExpression(n,t,n.type);case 214:return e.updateNonNullExpression(n,t);case 316:return e.updatePartiallyEmittedExpression(n,t)}}(n,A(n.expression,t)):t;var a}function x(n){return e.setStartsOnNewLine(n,!0)}function C(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function D(n,t,r,a){if(t.importHelpers&&e.isEffectiveExternalModule(n,t)){var i=C(n);if(i)return i;var o=e.getEmitModuleKind(t),s=(r||t.esModuleInterop&&a)&&o!==e.ModuleKind.System&&o!==e.ModuleKind.ES2015&&o!==e.ModuleKind.ESNext;if(!s){var l=e.getEmitHelpers(n);if(l)for(var c=0,d=l;c<d.length;c++){if(!d[c].scoped){s=!0;break}}}if(s){var u=e.getOriginalNode(n,e.isSourceFile),m=e.getOrCreateEmitNode(u);return m.externalHelpersModuleName||(m.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}}function R(n,t,r){if(n)return n.moduleName?e.createLiteral(n.moduleName):n.isDeclarationFile||!r.out&&!r.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(t,n.fileName))}function M(n){if(e.isDeclarationBindingElement(n))return n.name;if(!e.isObjectLiteralElementLike(n))return e.isAssignmentExpression(n,!0)?M(n.left):e.isSpreadElement(n)?M(n.expression):n;switch(n.kind){case 276:return M(n.initializer);case 277:return n.name;case 278:return M(n.expression)}}function I(e){var n=e.kind;return 10===n||8===n}function O(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(n.name),n),n);var t=G(n.name);return n.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(t,n.initializer),n),n):t}return e.Debug.assertNode(n,e.isExpression),n}function k(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(n.name),n),n);if(n.propertyName){var t=G(n.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(n.propertyName,n.initializer?e.createAssignment(t,n.initializer):t),n),n)}return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(n.name,n.initializer),n),n)}return e.Debug.assertNode(n,e.isObjectLiteralElementLike),n}function N(e){switch(e.kind){case 186:case 188:return P(e);case 185:case 189:return w(e)}}function w(n){return e.isObjectBindingPattern(n)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(n.elements,k)),n),n):(e.Debug.assertNode(n,e.isObjectLiteralExpression),n)}function P(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(n.elements,O)),n),n):(e.Debug.assertNode(n,e.isArrayLiteralExpression),n)}function G(n){return e.isBindingPattern(n)?N(n):(e.Debug.assertNode(n,e.isExpression),n)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(n,t){return"undefined"===t?e.createStrictEquality(n,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(n),e.createLiteral(t))},e.createMemberAccessForPropertyName=n,e.createFunctionCall=function(n,t,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(n,"call"),void 0,o([t],r)),a)},e.createFunctionApply=function(n,t,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(n,"apply"),void 0,[t,r]),a)},e.createArraySlice=function(n,t){var r=[];return void 0!==t&&r.push("number"==typeof t?e.createLiteral(t):t),e.createCall(e.createPropertyAccess(n,"slice"),void 0,r)},e.createArrayConcat=function(n,t){return e.createCall(e.createPropertyAccess(n,"concat"),void 0,t)},e.createMathPow=function(n,t,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[n,t]),r)},e.createExpressionForJsxElement=function(n,t,a,i,o,s,l){var c=[a];if(i&&c.push(i),o&&o.length>0)if(i||c.push(e.createNull()),o.length>1)for(var d=0,u=o;d<u.length;d++){var m=u[d];x(m),c.push(m)}else c.push(o[0]);return e.setTextRange(e.createCall(r(n,t,s),void 0,c),l)},e.createExpressionForJsxFragment=function(n,a,i,o,s){var l=[e.createPropertyAccess(t(a,o),"Fragment")];if(l.push(e.createNull()),i&&i.length>0)if(i.length>1)for(var c=0,d=i;c<d.length;c++){var u=d[c];x(u),l.push(u)}else l.push(i[0]);return e.setTextRange(e.createCall(r(n,a,o),void 0,l),s)},e.getUnscopedHelperName=a,e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n            var __values = (this && this.__values) || function(o) {\n                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n                if (m) return m.call(o);\n                if (o && typeof o.length === "number") return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n            };'},e.createValuesHelper=function(n,t,r){return n.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(a("__values"),void 0,[t]),r)},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i["return"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };'},e.createReadHelper=function(n,t,r,i){return n.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(a("__read"),void 0,void 0!==r?[t,e.createLiteral(r)]:[t]),i)},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,text:"\n            var __spread = (this && this.__spread) || function () {\n                for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n                return ar;\n            };"},e.createSpreadHelper=function(n,t,r){return n.requestEmitHelper(e.readHelper),n.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(a("__spread"),void 0,t),r)},e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n            var __spreadArrays = (this && this.__spreadArrays) || function () {\n                for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n                for (var r = Array(s), k = 0, i = 0; i < il; i++)\n                    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n                        r[k] = a[j];\n                return r;\n            };"},e.createSpreadArraysHelper=function(n,t,r){return n.requestEmitHelper(e.spreadArraysHelper),e.setTextRange(e.createCall(a("__spreadArrays"),void 0,t),r)},e.createForOfBindingStatement=function(n,t){if(e.isVariableDeclarationList(n)){var r=e.first(n.declarations),a=e.updateVariableDeclaration(r,r.name,void 0,t);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[a])),n)}var i=e.setTextRange(e.createAssignment(n,t),n);return e.setTextRange(e.createStatement(i),n)},e.insertLeadingStatement=function(n,t){return e.isBlock(n)?e.updateBlock(n,e.setTextRange(e.createNodeArray(o([t],n.statements)),n.statements)):e.createBlock(e.createNodeArray([n,t]),!0)},e.restoreEnclosingLabel=function n(t,r,a){if(!r)return t;var i=e.updateLabel(r,r.label,234===r.statement.kind?n(t,r.statement):t);return a&&a(r),i},e.createCallBinding=function(n,t,r,a){void 0===a&&(a=!1);var o,s,l=S(n,7);if(e.isSuperProperty(l))o=e.createThis(),s=l;else if(99===l.kind)o=e.createThis(),s=r<2?e.setTextRange(e.createIdentifier("_super"),l):l;else if(4096&e.getEmitFlags(l))o=e.createVoidZero(),s=_(l);else switch(l.kind){case 190:i(l.expression,a)?(o=e.createTempVariable(t),s=e.createPropertyAccess(e.setTextRange(e.createAssignment(o,l.expression),l.expression),l.name),e.setTextRange(s,l)):(o=l.expression,s=l);break;case 191:i(l.expression,a)?(o=e.createTempVariable(t),s=e.createElementAccess(e.setTextRange(e.createAssignment(o,l.expression),l.expression),l.argumentExpression),e.setTextRange(s,l)):(o=l.expression,s=l);break;default:o=e.createVoidZero(),s=_(n)}return{target:s,thisArg:o}},e.inlineExpressions=function(n){return n.length>10?e.createCommaList(n):e.reduceLeft(n,e.createComma)},e.createExpressionFromEntityName=function n(t){if(e.isQualifiedName(t)){var r=n(t.left),a=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,a),t)}return e.getMutableClone(t)},e.createExpressionForPropertyName=s,e.createExpressionForObjectLiteralElementLike=function(t,r,a){switch(r.kind){case 159:case 160:return function(n,t,r,a){var i=e.getAllAccessorDeclarations(n,t),o=i.firstAccessor,l=i.getAccessor,c=i.setAccessor;if(t===o){var d=[];if(l){var u=e.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body);e.setTextRange(u,l),e.setOriginalNode(u,l);var m=e.createPropertyAssignment("get",u);d.push(m)}if(c){var p=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(p,c),e.setOriginalNode(p,c);var f=e.createPropertyAssignment("set",p);d.push(f)}d.push(e.createPropertyAssignment("enumerable",e.createTrue())),d.push(e.createPropertyAssignment("configurable",e.createTrue()));var g=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,s(t.name),e.createObjectLiteral(d,a)]),o);return e.aggregateTransformFlags(g)}}(t.properties,r,a,!!t.multiLine);case 276:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}(r,a);case 277:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}(r,a);case 157:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}(r,a)}},e.getInternalName=function(e,n,t){return c(e,n,t,49152)},e.isInternalName=function(n){return 0!=(32768&e.getEmitFlags(n))},e.getLocalName=function(e,n,t){return c(e,n,t,16384)},e.isLocalName=function(n){return 0!=(16384&e.getEmitFlags(n))},e.getExportName=l,e.isExportName=function(n){return 0!=(8192&e.getEmitFlags(n))},e.getDeclarationName=function(e,n,t){return c(e,n,t)},e.getExternalModuleOrNamespaceExportName=function(n,t,r,a){return n&&e.hasModifier(t,1)?d(n,c(t),r,a):l(t,r,a)},e.getNamespaceMemberName=d,e.convertToFunctionBody=function(n,t){return e.isBlock(n)?n:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(n),n)],t),n)},e.convertFunctionDeclarationToExpression=function(n){if(!n.body)return e.Debug.fail();var t=e.createFunctionExpression(n.modifiers,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);return e.setOriginalNode(t,n),e.setTextRange(t,n),e.getStartsOnNewLine(n)&&e.setStartsOnNewLine(t,!0),e.aggregateTransformFlags(t),t},e.addPrologue=function(e,n,t,r){return p(e,n,m(e,n,t),r)},e.addStandardPrologue=m,e.addCustomPrologue=p,e.findUseStrictPrologue=f,e.startsWithUseStrict=function(n){var t=e.firstOrUndefined(n);return void 0!==t&&e.isPrologueDirective(t)&&u(t)},e.ensureUseStrict=function(n){return f(n)?n:e.setTextRange(e.createNodeArray(o([x(e.createStatement(e.createLiteral("use strict")))],n)),n)},e.parenthesizeBinaryOperand=function(n,t,r,a){return 196===e.skipPartiallyEmittedExpressions(t).kind?t:function(n,t,r,a){var i=e.getOperatorPrecedence(205,n),o=e.getOperatorAssociativity(205,n),s=e.skipPartiallyEmittedExpressions(t);if(!r&&198===t.kind&&i>4)return!0;var l=e.getExpressionPrecedence(s);switch(e.compareValues(l,i)){case-1:return!(!r&&1===o&&208===t.kind);case 1:return!1;case 0:if(r)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===n){if(function(e){return 40===e||50===e||49===e||51===e}(n))return!1;if(38===n){var c=a?g(a):0;if(e.isLiteralKind(c)&&c===g(s))return!1}}var d=e.getExpressionAssociativity(s);return 0===d}}(n,t,r,a)?e.createParen(t):t},e.parenthesizeForConditionalHead=function(n){var t=e.getOperatorPrecedence(206,56),r=e.skipPartiallyEmittedExpressions(n),a=e.getExpressionPrecedence(r);return-1===e.compareValues(a,t)?e.createParen(n):n},e.parenthesizeSubexpressionOfConditionalExpression=function(n){return E(e.skipPartiallyEmittedExpressions(n))?e.createParen(n):n},e.parenthesizeDefaultExpression=function(n){var t=e.skipPartiallyEmittedExpressions(n),r=E(t);if(!r)switch(b(t,!1).kind){case 210:case 197:r=!0}return r?e.createParen(n):n},e.parenthesizeForNew=function(n){var t=b(n,!0);switch(t.kind){case 192:return e.createParen(n);case 193:return t.arguments?n:e.createParen(n)}return _(n)},e.parenthesizeForAccess=_,e.parenthesizePostfixOperand=function(n){return e.isLeftHandSideExpression(n)?n:e.setTextRange(e.createParen(n),n)},e.parenthesizePrefixOperand=function(n){return e.isUnaryExpression(n)?n:e.setTextRange(e.createParen(n),n)},e.parenthesizeListElements=function(n){for(var t,r=0;r<n.length;r++){var a=y(n[r]);void 0===t&&a===n[r]||(void 0===t&&(t=n.slice(0,r)),t.push(a))}return void 0!==t?e.setTextRange(e.createNodeArray(t,n.hasTrailingComma),n):n},e.parenthesizeExpressionForList=y,e.parenthesizeExpressionForExpressionStatement=function(n){var t=e.skipPartiallyEmittedExpressions(n);if(e.isCallExpression(t)){var r=t.expression,a=e.skipPartiallyEmittedExpressions(r).kind;if(197===a||198===a){var i=e.getMutableClone(t);return i.expression=e.setTextRange(e.createParen(r),r),A(n,i,4)}}var o=b(t,!1).kind;return 189===o||197===o?e.setTextRange(e.createParen(n),n):n},e.parenthesizeConditionalTypeMember=v,e.parenthesizeElementTypeMember=h,e.parenthesizeArrayTypeMember=function(n){switch(n.kind){case 168:case 180:case 177:return e.createParenthesizedType(n)}return h(n)},e.parenthesizeElementTypeMembers=function(n){return e.createNodeArray(e.sameMap(n,h))},e.parenthesizeTypeParameters=function(n){if(e.some(n)){for(var t=[],r=0;r<n.length;++r){var a=n[r];t.push(0===r&&e.isFunctionOrConstructorTypeNode(a)&&a.typeParameters?e.createParenthesizedType(a):a)}return e.createNodeArray(t)}},e.getLeftmostExpression=b,e.parenthesizeConciseBody=function(n){return e.isBlock(n)||!E(n)&&189!==b(n,!1).kind?n:e.setTextRange(e.createParen(n),n)},e.isCommaSequence=E,function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=T,e.skipOuterExpressions=S,e.skipAssertions=L,e.recreateOuterExpressions=A,e.startOnNewLine=x,e.getExternalHelpersModuleName=C,e.hasRecordedExternalHelpers=function(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return!(!r||!r.externalHelpersModuleName&&!r.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(n,t,r,i,o){if(t.importHelpers&&e.isEffectiveExternalModule(n,t)){var s=void 0,l=e.getEmitModuleKind(t);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var c=e.getEmitHelpers(n);if(c){for(var d=[],u=0,m=c;u<m.length;u++){var p=m[u];if(!p.scoped){var f=p.importName;f&&e.pushIfUnique(d,f)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),s=e.createNamedImports(e.map(d,function(t){return e.isFileLevelUniqueName(n,t)?e.createImportSpecifier(void 0,e.createIdentifier(t)):e.createImportSpecifier(e.createIdentifier(t),a(t))}));var g=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(g).externalHelpers=!0}}}else{var _=D(n,t,r,i||o);_&&(s=e.createNamespaceImport(_))}if(s){var y=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,s),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(y,67108864),y}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=D,e.getLocalNameForExternalImport=function(n,t){var r=e.getNamespaceDeclarationNode(n);if(r&&!e.isDefaultImport(n)){var a=r.name;return e.isGeneratedIdentifier(a)?a:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(t,a)||e.idText(a))}return 250===n.kind&&n.importClause?e.getGeneratedNameForNode(n):256===n.kind&&n.moduleSpecifier?e.getGeneratedNameForNode(n):void 0},e.getExternalModuleNameLiteral=function(n,t,r,a,i){var o=e.getExternalModuleName(n);if(10===o.kind)return function(e,n,t,r){return R(t.getExternalModuleFileFromDeclaration(e),n,r)}(n,r,a,i)||function(n,t){var r=t.renamedDependencies&&t.renamedDependencies.get(n.text);return r&&e.createLiteral(r)}(o,t)||e.getSynthesizedClone(o)},e.tryGetModuleNameFromFile=R,e.getInitializerOfBindingOrAssignmentElement=function n(t){if(e.isDeclarationBindingElement(t))return t.initializer;if(e.isPropertyAssignment(t)){var r=t.initializer;return e.isAssignmentExpression(r,!0)?r.right:void 0}return e.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:e.isAssignmentExpression(t,!0)?t.right:e.isSpreadElement(t)?n(t.expression):void 0},e.getTargetOfBindingOrAssignmentElement=M,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 152:case 187:return e.dotDotDotToken;case 209:case 278:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(n){switch(n.kind){case 187:if(n.propertyName){var t=n.propertyName;return e.isComputedPropertyName(t)&&I(t.expression)?t.expression:t}break;case 276:if(n.name)return t=n.name,e.isComputedPropertyName(t)&&I(t.expression)?t.expression:t;break;case 278:return n.name}var r=M(n);if(r&&e.isPropertyName(r))return e.isComputedPropertyName(r)&&I(r.expression)?r.expression:r;e.Debug.fail("Invalid property name for binding element.")},e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 185:case 186:case 188:return e.elements;case 189:return e.properties}},e.convertToArrayAssignmentElement=O,e.convertToObjectAssignmentElement=k,e.convertToAssignmentPattern=N,e.convertToObjectAssignmentPattern=w,e.convertToArrayAssignmentPattern=P,e.convertToAssignmentElementTarget=G}(u||(u={})),function(e){var n=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function t(n,t,r,a){if(void 0===n||void 0===t)return n;e.aggregateTransformFlags(n);var i,o=t(n);return o===n?n:void 0!==o?(i=e.isArray(o)?(a||function(n){return e.Debug.assert(n.length<=1,"Too many nodes written to output."),e.singleOrUndefined(n)})(o):o,e.Debug.assertNode(i,r),e.aggregateTransformFlags(i),i):void 0}function r(n,t,r,a,i){if(void 0===n||void 0===t)return n;var o,s=n.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>s-a)&&(i=s-a),(a>0||i<s)&&(o=e.createNodeArray([],n.hasTrailingComma&&a+i===s));for(var l=0;l<i;l++){var c=n[l+a];e.aggregateTransformFlags(c);var d=void 0!==c?t(c):void 0;if((void 0!==o||void 0===d||d!==c)&&(void 0===o&&(o=e.createNodeArray(n.slice(0,l),n.hasTrailingComma),e.setTextRange(o,n)),d))if(e.isArray(d))for(var u=0,m=d;u<m.length;u++){var p=m[u];e.Debug.assertNode(p,r),e.aggregateTransformFlags(p),o.push(p)}else e.Debug.assertNode(d,r),e.aggregateTransformFlags(d),o.push(d)}return o||n}function a(n,t,a,i,s){a.startLexicalEnvironment(),n=r(n,t,e.isStatement,i),s&&!e.startsWithUseStrict(n)&&(n=e.setTextRange(e.createNodeArray(o([e.createExpressionStatement(e.createLiteral("use strict"))],n)),n));var l=a.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(l,n)),n)}function i(n,t,a,i){void 0===i&&(i=r),a.startLexicalEnvironment();var o=i(n,t,e.isParameterDeclaration);return a.suspendLexicalEnvironment(),o}function s(n,r,a){a.resumeLexicalEnvironment();var i=t(n,r,e.isConciseBody),o=a.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(i),l=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,l)}return i}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=a,e.visitParameterList=i,e.visitFunctionBody=s,e.visitEachChild=function(o,l,c,d,u){if(void 0===d&&(d=r),void 0!==o){var m=o.kind;if(m>0&&m<=148||179===m)return o;switch(m){case 73:return e.updateIdentifier(o,d(o.typeArguments,l,n));case 149:return e.updateQualifiedName(o,t(o.left,l,e.isEntityName),t(o.right,l,e.isIdentifier));case 150:return e.updateComputedPropertyName(o,t(o.expression,l,e.isExpression));case 151:return e.updateTypeParameterDeclaration(o,t(o.name,l,e.isIdentifier),t(o.constraint,l,e.isTypeNode),t(o.default,l,e.isTypeNode));case 152:return e.updateParameter(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.dotDotDotToken,u,e.isToken),t(o.name,l,e.isBindingName),t(o.questionToken,u,e.isToken),t(o.type,l,e.isTypeNode),t(o.initializer,l,e.isExpression));case 153:return e.updateDecorator(o,t(o.expression,l,e.isExpression));case 154:return e.updatePropertySignature(o,d(o.modifiers,l,e.isToken),t(o.name,l,e.isPropertyName),t(o.questionToken,u,e.isToken),t(o.type,l,e.isTypeNode),t(o.initializer,l,e.isExpression));case 155:return e.updateProperty(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isPropertyName),t(o.questionToken||o.exclamationToken,u,e.isToken),t(o.type,l,e.isTypeNode),t(o.initializer,l,e.isExpression));case 156:return e.updateMethodSignature(o,d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.parameters,l,e.isParameterDeclaration),t(o.type,l,e.isTypeNode),t(o.name,l,e.isPropertyName),t(o.questionToken,u,e.isToken));case 157:return e.updateMethod(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.asteriskToken,u,e.isToken),t(o.name,l,e.isPropertyName),t(o.questionToken,u,e.isToken),d(o.typeParameters,l,e.isTypeParameterDeclaration),i(o.parameters,l,c,d),t(o.type,l,e.isTypeNode),s(o.body,l,c));case 158:return e.updateConstructor(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),i(o.parameters,l,c,d),s(o.body,l,c));case 159:return e.updateGetAccessor(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isPropertyName),i(o.parameters,l,c,d),t(o.type,l,e.isTypeNode),s(o.body,l,c));case 160:return e.updateSetAccessor(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isPropertyName),i(o.parameters,l,c,d),s(o.body,l,c));case 161:return e.updateCallSignature(o,d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.parameters,l,e.isParameterDeclaration),t(o.type,l,e.isTypeNode));case 162:return e.updateConstructSignature(o,d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.parameters,l,e.isParameterDeclaration),t(o.type,l,e.isTypeNode));case 163:return e.updateIndexSignature(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),d(o.parameters,l,e.isParameterDeclaration),t(o.type,l,e.isTypeNode));case 164:return e.updateTypePredicateNode(o,t(o.parameterName,l),t(o.type,l,e.isTypeNode));case 165:return e.updateTypeReferenceNode(o,t(o.typeName,l,e.isEntityName),d(o.typeArguments,l,e.isTypeNode));case 166:return e.updateFunctionTypeNode(o,d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.parameters,l,e.isParameterDeclaration),t(o.type,l,e.isTypeNode));case 167:return e.updateConstructorTypeNode(o,d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.parameters,l,e.isParameterDeclaration),t(o.type,l,e.isTypeNode));case 168:return e.updateTypeQueryNode(o,t(o.exprName,l,e.isEntityName));case 169:return e.updateTypeLiteralNode(o,d(o.members,l,e.isTypeElement));case 170:return e.updateArrayTypeNode(o,t(o.elementType,l,e.isTypeNode));case 171:return e.updateTupleTypeNode(o,d(o.elementTypes,l,e.isTypeNode));case 172:return e.updateOptionalTypeNode(o,t(o.type,l,e.isTypeNode));case 173:return e.updateRestTypeNode(o,t(o.type,l,e.isTypeNode));case 174:return e.updateUnionTypeNode(o,d(o.types,l,e.isTypeNode));case 175:return e.updateIntersectionTypeNode(o,d(o.types,l,e.isTypeNode));case 176:return e.updateConditionalTypeNode(o,t(o.checkType,l,e.isTypeNode),t(o.extendsType,l,e.isTypeNode),t(o.trueType,l,e.isTypeNode),t(o.falseType,l,e.isTypeNode));case 177:return e.updateInferTypeNode(o,t(o.typeParameter,l,e.isTypeParameterDeclaration));case 184:return e.updateImportTypeNode(o,t(o.argument,l,e.isTypeNode),t(o.qualifier,l,e.isEntityName),r(o.typeArguments,l,e.isTypeNode),o.isTypeOf);case 178:return e.updateParenthesizedType(o,t(o.type,l,e.isTypeNode));case 180:return e.updateTypeOperatorNode(o,t(o.type,l,e.isTypeNode));case 181:return e.updateIndexedAccessTypeNode(o,t(o.objectType,l,e.isTypeNode),t(o.indexType,l,e.isTypeNode));case 182:return e.updateMappedTypeNode(o,t(o.readonlyToken,u,e.isToken),t(o.typeParameter,l,e.isTypeParameterDeclaration),t(o.questionToken,u,e.isToken),t(o.type,l,e.isTypeNode));case 183:return e.updateLiteralTypeNode(o,t(o.literal,l,e.isExpression));case 185:return e.updateObjectBindingPattern(o,d(o.elements,l,e.isBindingElement));case 186:return e.updateArrayBindingPattern(o,d(o.elements,l,e.isArrayBindingElement));case 187:return e.updateBindingElement(o,t(o.dotDotDotToken,u,e.isToken),t(o.propertyName,l,e.isPropertyName),t(o.name,l,e.isBindingName),t(o.initializer,l,e.isExpression));case 188:return e.updateArrayLiteral(o,d(o.elements,l,e.isExpression));case 189:return e.updateObjectLiteral(o,d(o.properties,l,e.isObjectLiteralElementLike));case 190:return e.updatePropertyAccess(o,t(o.expression,l,e.isExpression),t(o.name,l,e.isIdentifier));case 191:return e.updateElementAccess(o,t(o.expression,l,e.isExpression),t(o.argumentExpression,l,e.isExpression));case 192:return e.updateCall(o,t(o.expression,l,e.isExpression),d(o.typeArguments,l,e.isTypeNode),d(o.arguments,l,e.isExpression));case 193:return e.updateNew(o,t(o.expression,l,e.isExpression),d(o.typeArguments,l,e.isTypeNode),d(o.arguments,l,e.isExpression));case 194:return e.updateTaggedTemplate(o,t(o.tag,l,e.isExpression),r(o.typeArguments,l,e.isExpression),t(o.template,l,e.isTemplateLiteral));case 195:return e.updateTypeAssertion(o,t(o.type,l,e.isTypeNode),t(o.expression,l,e.isExpression));case 196:return e.updateParen(o,t(o.expression,l,e.isExpression));case 197:return e.updateFunctionExpression(o,d(o.modifiers,l,e.isModifier),t(o.asteriskToken,u,e.isToken),t(o.name,l,e.isIdentifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),i(o.parameters,l,c,d),t(o.type,l,e.isTypeNode),s(o.body,l,c));case 198:return e.updateArrowFunction(o,d(o.modifiers,l,e.isModifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),i(o.parameters,l,c,d),t(o.type,l,e.isTypeNode),t(o.equalsGreaterThanToken,l,e.isToken),s(o.body,l,c));case 199:return e.updateDelete(o,t(o.expression,l,e.isExpression));case 200:return e.updateTypeOf(o,t(o.expression,l,e.isExpression));case 201:return e.updateVoid(o,t(o.expression,l,e.isExpression));case 202:return e.updateAwait(o,t(o.expression,l,e.isExpression));case 203:return e.updatePrefix(o,t(o.operand,l,e.isExpression));case 204:return e.updatePostfix(o,t(o.operand,l,e.isExpression));case 205:return e.updateBinary(o,t(o.left,l,e.isExpression),t(o.right,l,e.isExpression),t(o.operatorToken,l,e.isToken));case 206:return e.updateConditional(o,t(o.condition,l,e.isExpression),t(o.questionToken,l,e.isToken),t(o.whenTrue,l,e.isExpression),t(o.colonToken,l,e.isToken),t(o.whenFalse,l,e.isExpression));case 207:return e.updateTemplateExpression(o,t(o.head,l,e.isTemplateHead),d(o.templateSpans,l,e.isTemplateSpan));case 208:return e.updateYield(o,t(o.asteriskToken,u,e.isToken),t(o.expression,l,e.isExpression));case 209:return e.updateSpread(o,t(o.expression,l,e.isExpression));case 210:return e.updateClassExpression(o,d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.heritageClauses,l,e.isHeritageClause),d(o.members,l,e.isClassElement));case 212:return e.updateExpressionWithTypeArguments(o,d(o.typeArguments,l,e.isTypeNode),t(o.expression,l,e.isExpression));case 213:return e.updateAsExpression(o,t(o.expression,l,e.isExpression),t(o.type,l,e.isTypeNode));case 214:return e.updateNonNullExpression(o,t(o.expression,l,e.isExpression));case 215:return e.updateMetaProperty(o,t(o.name,l,e.isIdentifier));case 217:return e.updateTemplateSpan(o,t(o.expression,l,e.isExpression),t(o.literal,l,e.isTemplateMiddleOrTemplateTail));case 219:return e.updateBlock(o,d(o.statements,l,e.isStatement));case 220:return e.updateVariableStatement(o,d(o.modifiers,l,e.isModifier),t(o.declarationList,l,e.isVariableDeclarationList));case 222:return e.updateExpressionStatement(o,t(o.expression,l,e.isExpression));case 223:return e.updateIf(o,t(o.expression,l,e.isExpression),t(o.thenStatement,l,e.isStatement,e.liftToBlock),t(o.elseStatement,l,e.isStatement,e.liftToBlock));case 224:return e.updateDo(o,t(o.statement,l,e.isStatement,e.liftToBlock),t(o.expression,l,e.isExpression));case 225:return e.updateWhile(o,t(o.expression,l,e.isExpression),t(o.statement,l,e.isStatement,e.liftToBlock));case 226:return e.updateFor(o,t(o.initializer,l,e.isForInitializer),t(o.condition,l,e.isExpression),t(o.incrementor,l,e.isExpression),t(o.statement,l,e.isStatement,e.liftToBlock));case 227:return e.updateForIn(o,t(o.initializer,l,e.isForInitializer),t(o.expression,l,e.isExpression),t(o.statement,l,e.isStatement,e.liftToBlock));case 228:return e.updateForOf(o,t(o.awaitModifier,l,e.isToken),t(o.initializer,l,e.isForInitializer),t(o.expression,l,e.isExpression),t(o.statement,l,e.isStatement,e.liftToBlock));case 229:return e.updateContinue(o,t(o.label,l,e.isIdentifier));case 230:return e.updateBreak(o,t(o.label,l,e.isIdentifier));case 231:return e.updateReturn(o,t(o.expression,l,e.isExpression));case 232:return e.updateWith(o,t(o.expression,l,e.isExpression),t(o.statement,l,e.isStatement,e.liftToBlock));case 233:return e.updateSwitch(o,t(o.expression,l,e.isExpression),t(o.caseBlock,l,e.isCaseBlock));case 234:return e.updateLabel(o,t(o.label,l,e.isIdentifier),t(o.statement,l,e.isStatement,e.liftToBlock));case 235:return e.updateThrow(o,t(o.expression,l,e.isExpression));case 236:return e.updateTry(o,t(o.tryBlock,l,e.isBlock),t(o.catchClause,l,e.isCatchClause),t(o.finallyBlock,l,e.isBlock));case 238:return e.updateVariableDeclaration(o,t(o.name,l,e.isBindingName),t(o.type,l,e.isTypeNode),t(o.initializer,l,e.isExpression));case 239:return e.updateVariableDeclarationList(o,d(o.declarations,l,e.isVariableDeclaration));case 240:return e.updateFunctionDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.asteriskToken,u,e.isToken),t(o.name,l,e.isIdentifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),i(o.parameters,l,c,d),t(o.type,l,e.isTypeNode),s(o.body,l,c));case 241:return e.updateClassDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.heritageClauses,l,e.isHeritageClause),d(o.members,l,e.isClassElement));case 242:return e.updateInterfaceDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),d(o.heritageClauses,l,e.isHeritageClause),d(o.members,l,e.isTypeElement));case 243:return e.updateTypeAliasDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),d(o.typeParameters,l,e.isTypeParameterDeclaration),t(o.type,l,e.isTypeNode));case 244:return e.updateEnumDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),d(o.members,l,e.isEnumMember));case 245:return e.updateModuleDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),t(o.body,l,e.isModuleBody));case 246:return e.updateModuleBlock(o,d(o.statements,l,e.isStatement));case 247:return e.updateCaseBlock(o,d(o.clauses,l,e.isCaseOrDefaultClause));case 248:return e.updateNamespaceExportDeclaration(o,t(o.name,l,e.isIdentifier));case 249:return e.updateImportEqualsDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.name,l,e.isIdentifier),t(o.moduleReference,l,e.isModuleReference));case 250:return e.updateImportDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.importClause,l,e.isImportClause),t(o.moduleSpecifier,l,e.isExpression));case 251:return e.updateImportClause(o,t(o.name,l,e.isIdentifier),t(o.namedBindings,l,e.isNamedImportBindings));case 252:return e.updateNamespaceImport(o,t(o.name,l,e.isIdentifier));case 253:return e.updateNamedImports(o,d(o.elements,l,e.isImportSpecifier));case 254:return e.updateImportSpecifier(o,t(o.propertyName,l,e.isIdentifier),t(o.name,l,e.isIdentifier));case 255:return e.updateExportAssignment(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.expression,l,e.isExpression));case 256:return e.updateExportDeclaration(o,d(o.decorators,l,e.isDecorator),d(o.modifiers,l,e.isModifier),t(o.exportClause,l,e.isNamedExports),t(o.moduleSpecifier,l,e.isExpression));case 257:return e.updateNamedExports(o,d(o.elements,l,e.isExportSpecifier));case 258:return e.updateExportSpecifier(o,t(o.propertyName,l,e.isIdentifier),t(o.name,l,e.isIdentifier));case 260:return e.updateExternalModuleReference(o,t(o.expression,l,e.isExpression));case 261:return e.updateJsxElement(o,t(o.openingElement,l,e.isJsxOpeningElement),d(o.children,l,e.isJsxChild),t(o.closingElement,l,e.isJsxClosingElement));case 262:return e.updateJsxSelfClosingElement(o,t(o.tagName,l,e.isJsxTagNameExpression),d(o.typeArguments,l,e.isTypeNode),t(o.attributes,l,e.isJsxAttributes));case 263:return e.updateJsxOpeningElement(o,t(o.tagName,l,e.isJsxTagNameExpression),d(o.typeArguments,l,e.isTypeNode),t(o.attributes,l,e.isJsxAttributes));case 264:return e.updateJsxClosingElement(o,t(o.tagName,l,e.isJsxTagNameExpression));case 265:return e.updateJsxFragment(o,t(o.openingFragment,l,e.isJsxOpeningFragment),d(o.children,l,e.isJsxChild),t(o.closingFragment,l,e.isJsxClosingFragment));case 268:return e.updateJsxAttribute(o,t(o.name,l,e.isIdentifier),t(o.initializer,l,e.isStringLiteralOrJsxExpression));case 269:return e.updateJsxAttributes(o,d(o.properties,l,e.isJsxAttributeLike));case 270:return e.updateJsxSpreadAttribute(o,t(o.expression,l,e.isExpression));case 271:return e.updateJsxExpression(o,t(o.expression,l,e.isExpression));case 272:return e.updateCaseClause(o,t(o.expression,l,e.isExpression),d(o.statements,l,e.isStatement));case 273:return e.updateDefaultClause(o,d(o.statements,l,e.isStatement));case 274:return e.updateHeritageClause(o,d(o.types,l,e.isExpressionWithTypeArguments));case 275:return e.updateCatchClause(o,t(o.variableDeclaration,l,e.isVariableDeclaration),t(o.block,l,e.isBlock));case 276:return e.updatePropertyAssignment(o,t(o.name,l,e.isPropertyName),t(o.initializer,l,e.isExpression));case 277:return e.updateShorthandPropertyAssignment(o,t(o.name,l,e.isIdentifier),t(o.objectAssignmentInitializer,l,e.isExpression));case 278:return e.updateSpreadAssignment(o,t(o.expression,l,e.isExpression));case 279:return e.updateEnumMember(o,t(o.name,l,e.isPropertyName),t(o.initializer,l,e.isExpression));case 285:return e.updateSourceFileNode(o,a(o.statements,l,c));case 316:return e.updatePartiallyEmittedExpression(o,t(o.expression,l,e.isExpression));case 317:return e.updateCommaList(o,d(o.elements,l,e.isExpression));default:return o}}}}(u||(u={})),function(e){function n(e,n,t){return e?n(t,e):t}function t(e,n,t){return e?n(t,e):t}function r(r,a,i,o){if(void 0===r)return a;var s=o?t:e.reduceLeft,l=o||i,c=r.kind;if(c>0&&c<=148)return a;if(c>=164&&c<=183)return a;var d=a;switch(r.kind){case 218:case 221:case 211:case 237:case 315:break;case 149:d=n(r.left,i,d),d=n(r.right,i,d);break;case 150:d=n(r.expression,i,d);break;case 152:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=n(r.type,i,d),d=n(r.initializer,i,d);break;case 153:d=n(r.expression,i,d);break;case 154:d=s(r.modifiers,l,d),d=n(r.name,i,d),d=n(r.questionToken,i,d),d=n(r.type,i,d),d=n(r.initializer,i,d);break;case 155:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=n(r.type,i,d),d=n(r.initializer,i,d);break;case 157:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.typeParameters,l,d),d=s(r.parameters,l,d),d=n(r.type,i,d),d=n(r.body,i,d);break;case 158:d=s(r.modifiers,l,d),d=s(r.parameters,l,d),d=n(r.body,i,d);break;case 159:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.parameters,l,d),d=n(r.type,i,d),d=n(r.body,i,d);break;case 160:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.parameters,l,d),d=n(r.body,i,d);break;case 185:case 186:d=s(r.elements,l,d);break;case 187:d=n(r.propertyName,i,d),d=n(r.name,i,d),d=n(r.initializer,i,d);break;case 188:d=s(r.elements,l,d);break;case 189:d=s(r.properties,l,d);break;case 190:d=n(r.expression,i,d),d=n(r.name,i,d);break;case 191:d=n(r.expression,i,d),d=n(r.argumentExpression,i,d);break;case 192:case 193:d=n(r.expression,i,d),d=s(r.typeArguments,l,d),d=s(r.arguments,l,d);break;case 194:d=n(r.tag,i,d),d=s(r.typeArguments,l,d),d=n(r.template,i,d);break;case 195:d=n(r.type,i,d),d=n(r.expression,i,d);break;case 197:d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.typeParameters,l,d),d=s(r.parameters,l,d),d=n(r.type,i,d),d=n(r.body,i,d);break;case 198:d=s(r.modifiers,l,d),d=s(r.typeParameters,l,d),d=s(r.parameters,l,d),d=n(r.type,i,d),d=n(r.body,i,d);break;case 196:case 199:case 200:case 201:case 202:case 208:case 209:case 214:d=n(r.expression,i,d);break;case 203:case 204:d=n(r.operand,i,d);break;case 205:d=n(r.left,i,d),d=n(r.right,i,d);break;case 206:d=n(r.condition,i,d),d=n(r.whenTrue,i,d),d=n(r.whenFalse,i,d);break;case 207:d=n(r.head,i,d),d=s(r.templateSpans,l,d);break;case 210:d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.typeParameters,l,d),d=s(r.heritageClauses,l,d),d=s(r.members,l,d);break;case 212:d=n(r.expression,i,d),d=s(r.typeArguments,l,d);break;case 213:d=n(r.expression,i,d),d=n(r.type,i,d);break;case 217:d=n(r.expression,i,d),d=n(r.literal,i,d);break;case 219:d=s(r.statements,l,d);break;case 220:d=s(r.modifiers,l,d),d=n(r.declarationList,i,d);break;case 222:d=n(r.expression,i,d);break;case 223:d=n(r.expression,i,d),d=n(r.thenStatement,i,d),d=n(r.elseStatement,i,d);break;case 224:d=n(r.statement,i,d),d=n(r.expression,i,d);break;case 225:case 232:d=n(r.expression,i,d),d=n(r.statement,i,d);break;case 226:d=n(r.initializer,i,d),d=n(r.condition,i,d),d=n(r.incrementor,i,d),d=n(r.statement,i,d);break;case 227:case 228:d=n(r.initializer,i,d),d=n(r.expression,i,d),d=n(r.statement,i,d);break;case 231:case 235:d=n(r.expression,i,d);break;case 233:d=n(r.expression,i,d),d=n(r.caseBlock,i,d);break;case 234:d=n(r.label,i,d),d=n(r.statement,i,d);break;case 236:d=n(r.tryBlock,i,d),d=n(r.catchClause,i,d),d=n(r.finallyBlock,i,d);break;case 238:d=n(r.name,i,d),d=n(r.type,i,d),d=n(r.initializer,i,d);break;case 239:d=s(r.declarations,l,d);break;case 240:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.typeParameters,l,d),d=s(r.parameters,l,d),d=n(r.type,i,d),d=n(r.body,i,d);break;case 241:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.typeParameters,l,d),d=s(r.heritageClauses,l,d),d=s(r.members,l,d);break;case 244:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=s(r.members,l,d);break;case 245:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=n(r.body,i,d);break;case 246:d=s(r.statements,l,d);break;case 247:d=s(r.clauses,l,d);break;case 249:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.name,i,d),d=n(r.moduleReference,i,d);break;case 250:d=s(r.decorators,l,d),d=s(r.modifiers,l,d),d=n(r.importClause,i,d),d=n(r.moduleSpecifier,i,d);break;case 251:d=n(r.name,i,d),d=n(r.namedBindings,i,d);break;case 252:d=n(r.name,i,d);break;case 253:case 257:d=s(r.elements,l,d);break;case 254:case 258:d=n(r.propertyName,i,d),d=n(r.name,i,d);break;case 255:d=e.reduceLeft(r.decorators,i,d),d=e.reduceLeft(r.modifiers,i,d),d=n(r.expression,i,d);break;case 256:d=e.reduceLeft(r.decorators,i,d),d=e.reduceLeft(r.modifiers,i,d),d=n(r.exportClause,i,d),d=n(r.moduleSpecifier,i,d);break;case 260:d=n(r.expression,i,d);break;case 261:d=n(r.openingElement,i,d),d=e.reduceLeft(r.children,i,d),d=n(r.closingElement,i,d);break;case 265:d=n(r.openingFragment,i,d),d=e.reduceLeft(r.children,i,d),d=n(r.closingFragment,i,d);break;case 262:case 263:d=n(r.tagName,i,d),d=s(r.typeArguments,i,d),d=n(r.attributes,i,d);break;case 269:d=s(r.properties,l,d);break;case 264:d=n(r.tagName,i,d);break;case 268:d=n(r.name,i,d),d=n(r.initializer,i,d);break;case 270:case 271:d=n(r.expression,i,d);break;case 272:d=n(r.expression,i,d);case 273:d=s(r.statements,l,d);break;case 274:d=s(r.types,l,d);break;case 275:d=n(r.variableDeclaration,i,d),d=n(r.block,i,d);break;case 276:d=n(r.name,i,d),d=n(r.initializer,i,d);break;case 277:d=n(r.name,i,d),d=n(r.objectAssignmentInitializer,i,d);break;case 278:d=n(r.expression,i,d);break;case 279:d=n(r.name,i,d),d=n(r.initializer,i,d);break;case 285:d=s(r.statements,l,d);break;case 316:d=n(r.expression,i,d);break;case 317:d=s(r.elements,l,d)}return d}function a(n){if(void 0===n)return 0;if(536870912&n.transformFlags)return n.transformFlags&~e.getTransformFlagsSubtreeExclusions(n.kind);var t=function(n){if(e.hasModifier(n,2)||e.isTypeNode(n)&&212!==n.kind)return 0;return r(n,0,i,o)}(n);return e.computeTransformFlagsForNode(n,t)}function i(e,n){return e|a(n)}function o(e,n){return e|function(e){if(void 0===e)return 0;for(var n=0,t=0,r=0,i=e;r<i.length;r++){var o=i[r];n|=a(o),t|=-536870913&o.transformFlags}return e.transformFlags=536870912|t,n}(n)}e.reduceEachChild=r,e.mergeLexicalEnvironment=function(n,t){return e.some(t)?e.isNodeArray(n)?e.setTextRange(e.createNodeArray(e.insertStatementsAfterStandardPrologue(n.slice(),t)),n):e.insertStatementsAfterStandardPrologue(n,t):n},e.liftToBlock=function(n){return e.Debug.assert(e.every(n,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(n)||e.createBlock(n)},e.aggregateTransformFlags=function(e){return a(e),e}}(u||(u={})),function(e){e.createSourceMapGenerator=function(n,t,r,a,o){var l,c,d=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=d.enter,m=d.exit,p=[],f=[],g=e.createMap(),_=[],y="",v=0,h=0,b=0,E=0,T=0,S=0,L=!1,A=0,x=0,C=0,D=0,R=0,M=0,I=!1,O=!1,k=!1;return{getSources:function(){return p},addSource:N,setSourceContent:w,addName:P,addMapping:G,appendSourceMap:function(n,t,r,a,o,s){e.Debug.assert(n>=A,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),u();for(var l,c=[],d=i(r.mappings),p=d.next();!p.done;p=d.next()){var f=p.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var g=void 0,_=void 0,y=void 0,v=void 0;if(void 0!==f.sourceIndex){if(void 0===(g=c[f.sourceIndex])){var h=r.sources[f.sourceIndex],b=r.sourceRoot?e.combinePaths(r.sourceRoot,h):h,E=e.combinePaths(e.getDirectoryPath(a),b);c[f.sourceIndex]=g=N(E),r.sourcesContent&&"string"==typeof r.sourcesContent[f.sourceIndex]&&w(g,r.sourcesContent[f.sourceIndex])}_=f.sourceLine,y=f.sourceCharacter,r.names&&void 0!==f.nameIndex&&(l||(l=[]),void 0===(v=l[f.nameIndex])&&(l[f.nameIndex]=v=P(r.names[f.nameIndex])))}var T=f.generatedLine-(o?o.line:0),S=T+n,L=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter,x=0===T?L+t:L;G(S,x,g,_,y,v)}}m()},toJSON:V,toString:function(){return JSON.stringify(V())}};function N(t){u();var r=e.getRelativePathToDirectoryOrUrl(a,t,n.getCurrentDirectory(),n.getCanonicalFileName,!0),i=g.get(r);return void 0===i&&(i=f.length,f.push(r),p.push(t),g.set(r,i)),m(),i}function w(e,n){if(u(),null!==n){for(l||(l=[]);l.length<e;)l.push(null);l[e]=n}m()}function P(n){u(),c||(c=e.createMap());var t=c.get(n);return void 0===t&&(t=_.length,_.push(n),c.set(n,t)),m(),t}function G(n,t,r,a,i,o){e.Debug.assert(n>=A,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),u(),(function(e,n){return!I||A!==e||x!==n}(n,t)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&C===e&&(D>n||D===n&&R>t)}(r,a,i))&&(F(),A=n,x=t,O=!1,k=!1,I=!0),void 0!==r&&void 0!==a&&void 0!==i&&(C=r,D=a,R=i,O=!0,void 0!==o&&(M=o,k=!0)),m()}function F(){if(I&&(!L||v!==A||h!==x||b!==C||E!==D||T!==R||S!==M)){if(u(),v<A)do{y+=";",v++,h=0}while(v<A);else e.Debug.assertEqual(v,A,"generatedLine cannot backtrack"),L&&(y+=",");y+=s(x-h),h=x,O&&(y+=s(C-b),b=C,y+=s(D-E),E=D,y+=s(R-T),T=R,k&&(y+=s(M-S),S=M)),L=!0,m()}}function V(){return F(),{version:3,file:t,sourceRoot:r,sources:f,names:_,mappings:y,sourcesContent:l}}};var n=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,t=/^\s*(\/\/[@#] .*)?$/;function r(e){return"string"==typeof e||null===e}function a(n){return null!==n&&"object"==typeof n&&3===n.version&&"string"==typeof n.file&&"string"==typeof n.mappings&&e.isArray(n.sources)&&e.every(n.sources,e.isString)&&(void 0===n.sourceRoot||null===n.sourceRoot||"string"==typeof n.sourceRoot)&&(void 0===n.sourcesContent||null===n.sourcesContent||e.isArray(n.sourcesContent)&&e.every(n.sourcesContent,r))&&(void 0===n.names||null===n.names||e.isArray(n.names)&&e.every(n.names,e.isString))}function i(e){var n,t=!1,r=0,a=0,i=0,o=0,s=0,l=0,c=0;return{get pos(){return r},get error(){return n},get state(){return d(!0,!0)},next:function(){for(;!t&&r<e.length;){var n=e.charCodeAt(r);if(59!==n){if(44!==n){var m=!1,y=!1;if(i+=_(),f())return u();if(i<0)return p("Invalid generatedCharacter found");if(!g()){if(m=!0,o+=_(),f())return u();if(o<0)return p("Invalid sourceIndex found");if(g())return p("Unsupported Format: No entries after sourceIndex");if(s+=_(),f())return u();if(s<0)return p("Invalid sourceLine found");if(g())return p("Unsupported Format: No entries after sourceLine");if(l+=_(),f())return u();if(l<0)return p("Invalid sourceCharacter found");if(!g()){if(y=!0,c+=_(),f())return u();if(c<0)return p("Invalid nameIndex found");if(!g())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:d(m,y),done:t}}r++}else a++,i=0,r++}return u()}};function d(e,n){return{generatedLine:a,generatedCharacter:i,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?l:void 0,nameIndex:n?c:void 0}}function u(){return t=!0,{value:void 0,done:!0}}function m(e){void 0===n&&(n=e)}function p(e){return m(e),u()}function f(){return void 0!==n}function g(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function _(){for(var n,t=!0,a=0,i=0;t;r++){if(r>=e.length)return m("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(n=e.charCodeAt(r))>=65&&n<=90?n-65:n>=97&&n<=122?n-97+26:n>=48&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1===o)return m("Invalid character in VLQ"),-1;t=0!=(32&o),i|=(31&o)<<a,a+=5}return 0==(1&i)?i>>=1:i=-(i>>=1),i}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(n){n<0?n=1+(-n<<1):n<<=1;var t,r="";do{var a=31&n;(n>>=5)>0&&(a|=32),r+=String.fromCharCode((t=a)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:e.Debug.fail(t+": not a base64 value"))}while(n>0);return r}function l(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function d(n,t){return e.Debug.assert(n.sourceIndex===t.sourceIndex),e.compareValues(n.sourcePosition,t.sourcePosition)}function u(n,t){return e.compareValues(n.generatedPosition,t.generatedPosition)}function m(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,n){return{getLineCount:function(){return n.length},getLineText:function(t){return e.substring(n[t],n[t+1])}}},e.tryGetSourceMappingURL=function(e){for(var r=e.getLineCount()-1;r>=0;r--){var a=e.getLineText(r),i=n.exec(a);if(i)return i[1];if(!a.match(t))break}},e.isRawSourceMap=a,e.tryParseRawSourceMap=function(e){try{var n=JSON.parse(e);if(a(n))return n}catch(e){}},e.decodeMappings=i,e.sameMapping=function(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(n,t,r){var a,s,f,g=e.getDirectoryPath(r),_=t.sourceRoot?e.getNormalizedAbsolutePath(t.sourceRoot,g):g,y=e.getNormalizedAbsolutePath(t.file,g),v=n.getSourceFileLike(y),h=t.sources.map(function(n){return e.getNormalizedAbsolutePath(n,_)}),b=e.createMapFromEntries(h.map(function(e,t){return[n.getCanonicalFileName(e),t]}));return{getSourcePosition:function(n){var t=L();if(!e.some(t))return n;var r=e.binarySearchKey(t,n.pos,p,e.compareValues);r<0&&(r=~r);var a=t[r];return void 0!==a&&l(a)?{fileName:h[a.sourceIndex],pos:a.sourcePosition}:n},getGeneratedPosition:function(t){var r=b.get(n.getCanonicalFileName(t.fileName));if(void 0===r)return t;var a=S(r);if(!e.some(a))return t;var i=e.binarySearchKey(a,t.pos,m,e.compareValues);i<0&&(i=~i);var o=a[i];return void 0===o||o.sourceIndex!==r?t:{fileName:y,pos:o.generatedPosition}}};function E(r){var a,i,s=void 0!==v?e.getPositionOfLineAndCharacter(v,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var l=n.getSourceFileLike(h[r.sourceIndex]);a=t.sources[r.sourceIndex],i=void 0!==l?e.getPositionOfLineAndCharacter(l,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:a,sourceIndex:r.sourceIndex,sourcePosition:i,nameIndex:r.nameIndex}}function T(){if(void 0===a){var r=i(t.mappings),o=e.arrayFrom(r,E);void 0!==r.error?(n.log&&n.log("Encountered error while decoding sourcemap: "+r.error),a=e.emptyArray):a=o}return a}function S(n){if(void 0===f){for(var t=[],r=0,a=T();r<a.length;r++){var i=a[r];if(l(i)){var o=t[i.sourceIndex];o||(t[i.sourceIndex]=o=[]),o.push(i)}}f=t.map(function(n){return e.sortAndDeduplicate(n,d,c)})}return f[n]}function L(){if(void 0===s){for(var n=[],t=0,r=T();t<r.length;t++){var a=r[t];n.push(a)}s=e.sortAndDeduplicate(n,u,c)}return s}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(u||(u={})),function(e){function n(n){return(n=e.getOriginalNode(n))?e.getNodeId(n):0}function t(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function r(n){if(e.getNamespaceDeclarationNode(n))return!0;var r=n.importClause&&n.importClause.namedBindings;if(!r)return!1;if(!e.isNamedImports(r))return!1;for(var a=0,i=0,o=r.elements;i<o.length;i++){t(o[i])&&a++}return a>0&&a!==r.elements.length||!!(r.elements.length-a)&&e.isDefaultImport(n)}function a(n){return!r(n)&&(e.isDefaultImport(n)||!!n.importClause&&e.isNamedImports(n.importClause.namedBindings)&&function(n){return!!n&&!!e.isNamedImports(n)&&e.some(n.elements,t)}(n.importClause.namedBindings))}function i(n,t,r){if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(r=i(s,t,r))}else if(!e.isGeneratedIdentifier(n.name)){var l=e.idText(n.name);t.get(l)||(t.set(l,!0),r=e.append(r,n.name))}return r}function o(e,n,t){var r=e[n];return r?r.push(t):e[n]=r=[t],r}function s(n){return e.isStringLiteralLike(n)||8===n.kind||e.isKeyword(n.kind)||e.isIdentifier(n)}function l(n){return d(n)&&e.hasStaticModifier(n)}function c(n){return d(n)&&!e.hasStaticModifier(n)}function d(e){return 155===e.kind&&void 0!==e.initializer}e.getOriginalNodeId=n,e.chainBundle=function(n){return function(t){return 285===t.kind?n(t):function(t){return e.createBundle(e.map(t.sourceFiles,n),t.prepends)}(t)}},e.getImportNeedsImportStarHelper=r,e.getImportNeedsImportDefaultHelper=a,e.collectExternalModuleInfo=function(t,s,l){for(var c,d,u=[],m=e.createMultiMap(),p=[],f=e.createMap(),g=!1,_=!1,y=!1,v=!1,h=0,b=t.statements;h<b.length;h++){var E=b[h];switch(E.kind){case 250:u.push(E),!y&&r(E)&&(y=!0),!v&&a(E)&&(v=!0);break;case 249:260===E.moduleReference.kind&&u.push(E);break;case 256:if(E.moduleSpecifier)E.exportClause?u.push(E):(u.push(E),_=!0);else for(var T=0,S=E.exportClause.elements;T<S.length;T++){var L=S[T];if(!f.get(e.idText(L.name))){var A=L.propertyName||L.name;m.add(e.idText(A),L),(D=s.getReferencedImportDeclaration(A)||s.getReferencedValueDeclaration(A))&&o(p,n(D),L.name),f.set(e.idText(L.name),!0),c=e.append(c,L.name)}}break;case 255:E.isExportEquals&&!d&&(d=E);break;case 220:if(e.hasModifier(E,1))for(var x=0,C=E.declarationList.declarations;x<C.length;x++){var D;c=i(D=C[x],f,c)}break;case 240:e.hasModifier(E,1)&&(e.hasModifier(E,512)?g||(o(p,n(E),e.getDeclarationName(E)),g=!0):(A=E.name,f.get(e.idText(A))||(o(p,n(E),A),f.set(e.idText(A),!0),c=e.append(c,A))));break;case 241:e.hasModifier(E,1)&&(e.hasModifier(E,512)?g||(o(p,n(E),e.getDeclarationName(E)),g=!0):(A=E.name)&&!f.get(e.idText(A))&&(o(p,n(E),A),f.set(e.idText(A),!0),c=e.append(c,A)))}}var R=e.createExternalHelpersImportDeclarationIfNeeded(t,l,_,y,v);return R&&u.unshift(R),{externalImports:u,exportSpecifiers:m,exportEquals:d,hasExportStarsToExportValues:_,exportedBindings:p,exportedNames:c,externalHelpersImportDeclaration:R}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(n){return!e.isIdentifier(n)&&s(n)||e.isWellKnownSymbolSyntactically(n)},e.addPrologueDirectivesAndInitialSuperCall=function(n,t,r){if(n.body){var a=n.body.statements,i=e.addPrologue(t,a,!1,r);if(i===a.length)return i;var o=a[i];return 222===o.kind&&e.isSuperCall(o.expression)?(t.push(e.visitNode(o,r,e.isStatement)),i+1):i}return 0},e.helperString=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return function(t){for(var r="",a=0;a<n.length;a++)r+=e[a],r+=t(n[a]);return r+=e[e.length-1]}},e.getInitializedProperties=function(n,t){return e.filter(n.members,t?l:c)},e.isStaticInitializedProperty=l,e.isInstanceInitializedProperty=c,e.isInitializedProperty=d}(u||(u={})),function(e){function n(t,r){var a=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(a)?function(t,r){for(var a=0,i=e.getElementsOfBindingOrAssignmentPattern(t);a<i.length;a++){var o=i[a];if(n(o,r))return!0}return!1}(a,r):!!e.isIdentifier(a)&&a.escapedText===r}function t(n,i,o,s,l){if(!l){var c=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(i),n.visitor,e.isExpression);c?o=o?function(n,t,r,i){return t=a(n,t,!0,i),e.createConditional(e.createTypeCheck(t,"undefined"),r,t)}(n,o,c,s):c:o||(o=e.createVoidZero())}var d=e.getTargetOfBindingOrAssignmentElement(i);e.isObjectBindingOrAssignmentPattern(d)?function(n,i,o,s,l){var c,d,m=e.getElementsOfBindingOrAssignmentPattern(o),p=m.length;if(1!==p){var f=!e.isDeclarationBindingElement(i)||0!==p;s=a(n,s,f,l)}for(var g=0;g<p;g++){var _=m[g];if(e.getRestIndicatorOfBindingOrAssignmentElement(_)){if(g===p-1){c&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(c),s,l,o),c=void 0);var y=u(n.context,s,m,d,o);t(n,_,y,_)}}else{var v=e.getPropertyNameOfBindingOrAssignmentElement(_);if(!(n.level>=1)||12288&_.transformFlags||12288&e.getTargetOfBindingOrAssignmentElement(_).transformFlags||e.isComputedPropertyName(v)){c&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(c),s,l,o),c=void 0);var y=r(n,s,v);e.isComputedPropertyName(v)&&(d=e.append(d,y.argumentExpression)),t(n,_,y,_)}else c=e.append(c,_)}}c&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(c),s,l,o)}(n,i,d,o,s):e.isArrayBindingOrAssignmentPattern(d)?function(n,r,i,o,s){var l,c,d=e.getElementsOfBindingOrAssignmentPattern(i),u=d.length;if(n.level<1&&n.downlevelIteration)o=a(n,e.createReadHelper(n.context,o,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[u-1])?void 0:u,s),!1,s);else if(1!==u&&(n.level<1||0===u)||e.every(d,e.isOmittedExpression)){var m=!e.isDeclarationBindingElement(r)||0!==u;o=a(n,o,m,s)}for(var p=0;p<u;p++){var f=d[p];if(n.level>=1)if(8192&f.transformFlags){var g=e.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(g),c=e.append(c,[g,f]),l=e.append(l,n.createArrayBindingOrAssignmentElement(g))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===u-1){var _=e.createArraySlice(o,p);t(n,f,_,f)}}else{var _=e.createElementAccess(o,p);t(n,f,_,f)}}}l&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(l),o,s,i);if(c)for(var y=0,v=c;y<v.length;y++){var h=v[y],b=h[0],f=h[1];t(n,f,b,f)}}(n,i,d,o,s):n.emitBindingOrAssignment(d,o,s,i)}function r(n,t,r){if(e.isComputedPropertyName(r)){var i=a(n,e.visitNode(r.expression,n.visitor),!1,r);return e.createElementAccess(t,i)}if(e.isStringOrNumericLiteralLike(r))return(i=e.getSynthesizedClone(r)).text=i.text,e.createElementAccess(t,i);var o=e.createIdentifier(e.idText(r));return e.createPropertyAccess(t,o)}function a(n,t,r,a){if(e.isIdentifier(t)&&r)return t;var i=e.createTempVariable(void 0);return n.hoistTempVariables?(n.context.hoistVariableDeclaration(i),n.emitExpression(e.setTextRange(e.createAssignment(i,t),a))):n.emitBindingOrAssignment(i,t,a,void 0),i}function i(n){return e.Debug.assertEachNode(n,e.isArrayBindingElement),e.createArrayBindingPattern(n)}function o(n){return e.createArrayLiteral(e.map(n,e.convertToArrayAssignmentElement))}function s(n){return e.Debug.assertEachNode(n,e.isBindingElement),e.createObjectBindingPattern(n)}function l(n){return e.createObjectLiteral(e.map(n,e.convertToObjectAssignmentElement))}function c(n){return e.createBindingElement(void 0,void 0,n)}function d(e){return e}function u(n,t,r,a,i){n.requestEmitHelper(e.restHelper);for(var o=[],s=0,l=0;l<r.length-1;l++){var c=e.getPropertyNameOfBindingOrAssignmentElement(r[l]);if(c)if(e.isComputedPropertyName(c)){var d=a[s];s++,o.push(e.createConditional(e.createTypeCheck(d,"symbol"),d,e.createAdd(d,e.createLiteral(""))))}else o.push(e.createLiteral(c))}return e.createCall(e.getUnscopedHelperName("__rest"),void 0,[t,e.setTextRange(e.createArrayLiteral(o),i)])}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(r,i,s,c,u,m){var p,f,g=r;if(e.isDestructuringAssignment(r))for(p=r.right;e.isEmptyArrayLiteral(r.left)||e.isEmptyObjectLiteral(r.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,i,e.isExpression);g=r=p,p=r.right}var _={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:y,emitBindingOrAssignment:function(n,t,r,a){e.Debug.assertNode(n,m?e.isIdentifier:e.isExpression);var o=m?m(n,t,r):e.setTextRange(e.createAssignment(e.visitNode(n,i,e.isExpression),t),r);o.original=a,y(o)},createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:l,createArrayBindingOrAssignmentElement:d,visitor:i};if(p&&(p=e.visitNode(p,i,e.isExpression),e.isIdentifier(p)&&n(r,p.escapedText)?p=a(_,p,!1,g):u?p=a(_,p,!0,g):e.nodeIsSynthesized(r)&&(g=p)),t(_,r,p,g,e.isDestructuringAssignment(r)),p&&u){if(!e.some(f))return p;f.push(p)}return e.aggregateTransformFlags(e.inlineExpressions(f))||e.createOmittedExpression();function y(n){e.setEmitFlags(n,64),e.aggregateTransformFlags(n),f=e.append(f,n)}},e.flattenDestructuringBinding=function(r,o,l,d,u,m,p){var f;void 0===m&&(m=!1);var g=[],_=[],y={context:l,level:d,downlevelIteration:!!l.getCompilerOptions().downlevelIteration,hoistTempVariables:m,emitExpression:function(n){f=e.append(f,n)},emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:i,createObjectBindingOrAssignmentPattern:s,createArrayBindingOrAssignmentElement:c,visitor:o};if(e.isVariableDeclaration(r)){var v=e.getInitializerOfBindingOrAssignmentElement(r);v&&e.isIdentifier(v)&&n(r,v.escapedText)&&(v=a(y,v,!1,v),r=e.updateVariableDeclaration(r,r.name,r.type,v))}if(t(y,r,u,r,p),f){var h=e.createTempVariable(void 0);if(m){var b=e.inlineExpressions(f);f=void 0,M(h,b,void 0,void 0)}else{l.hoistVariableDeclaration(h);var E=e.last(g);E.pendingExpressions=e.append(E.pendingExpressions,e.createAssignment(h,E.value)),e.addRange(E.pendingExpressions,f),E.value=h}}for(var T=0,S=g;T<S.length;T++){var L=S[T],A=L.pendingExpressions,x=L.name,C=(b=L.value,L.location),D=L.original,R=e.createVariableDeclaration(x,void 0,A?e.inlineExpressions(e.append(A,b)):b);R.original=D,e.setTextRange(R,C),e.isIdentifier(x)&&e.setEmitFlags(R,64),e.aggregateTransformFlags(R),_.push(R)}return _;function M(n,t,r,a){e.Debug.assertNode(n,e.isBindingName),f&&(t=e.inlineExpressions(e.append(f,t)),f=void 0),g.push({pendingExpressions:f,name:n,value:t,location:r,original:a})}},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                            t[p[i]] = s[p[i]];\n                    }\n                return t;\n            };'}}(u||(u={})),function(e){var n,t,r=!1;function a(n,t,r,a,i,o){var s=[];return s.push(e.createArrayLiteral(t,!0)),s.push(r),a&&(s.push(a),i&&s.push(i)),n.requestEmitHelper(e.decorateHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__decorate"),void 0,s),o)}function i(n,t,r){return n.requestEmitHelper(e.metadataHelper),e.createCall(e.getUnscopedHelperName("__metadata"),void 0,[e.createLiteral(t),r])}function o(n,t,r,a){return n.requestEmitHelper(e.paramHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__param"),void 0,[e.createLiteral(r),t]),a)}!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(n||(n={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(t||(t={})),e.transformTypeScript=function(n){var t,s,l,c,d,u,m,p,f,g,_=n.startLexicalEnvironment,y=n.resumeLexicalEnvironment,v=n.endLexicalEnvironment,h=n.hoistVariableDeclaration,b=n.getEmitResolver(),E=n.getCompilerOptions(),T=e.getStrictOptionValue(E,"strictNullChecks"),S=e.getEmitScriptTarget(E),L=e.getEmitModuleKind(E),A=n.onEmitNode,x=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){var i=g,o=t;e.isSourceFile(r)&&(t=r),2&p&&function(n){return 245===e.getOriginalNode(n).kind}(r)&&(g|=2),8&p&&function(n){return 244===e.getOriginalNode(n).kind}(r)&&(g|=8),A(n,r,a),g=i,t=o},n.onSubstituteNode=function(n,t){return t=x(n,t),1===n?function(n){switch(n.kind){case 73:return function(n){return function(n){if(1&p&&33554432&b.getNodeCheckFlags(n)){var t=b.getReferencedValueDeclaration(n);if(t){var r=f[t.id];if(r){var a=e.getSynthesizedClone(r);return e.setSourceMapRange(a,n),e.setCommentRange(a,n),a}}}}(n)||Be(n)||n}(n);case 190:case 191:return function(e){return Ue(e)}(n)}return n}(t):e.isShorthandPropertyAssignment(t)?function(n){if(2&p){var t=n.name,r=Be(t);if(r){if(n.objectAssignmentInitializer){var a=e.createAssignment(r,n.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(t,a),n)}return e.setTextRange(e.createPropertyAssignment(t,r),n)}}return n}(t):t},n.enableSubstitution(190),n.enableSubstitution(191),function(n){return 286===n.kind?function(n){return e.createBundle(n.sourceFiles.map(C),e.mapDefined(n.prepends,function(n){return 288===n.kind?e.createUnparsedSourceFile(n,"js"):n}))}(n):C(n)};function C(r){if(r.isDeclarationFile)return r;t=r;var a=D(r,V);return e.addEmitHelpers(a,n.readEmitHelpers()),t=void 0,a}function D(n,t){var r=c,a=d,i=u,o=m;!function(n){switch(n.kind){case 285:case 247:case 246:case 219:c=n,d=void 0,u=void 0;break;case 241:case 240:if(e.hasModifier(n,2))break;n.name?Ee(n):e.Debug.assert(241===n.kind||e.hasModifier(n,512)),e.isClassDeclaration(n)&&(d=n)}}(n);var s=t(n);return c!==r&&(u=i),c=r,d=a,m=o,s}function R(e){return D(e,M)}function M(e){return 1&e.transformFlags?F(e):e}function I(e){return D(e,O)}function O(t){switch(t.kind){case 250:case 249:case 255:case 256:return function(t){if(e.getParseTreeNode(t)!==t)return 1&t.transformFlags?e.visitEachChild(t,R,n):t;switch(t.kind){case 250:return function(n){if(!n.importClause)return n;var t=e.visitNode(n.importClause,Ae,e.isImportClause);return t?e.updateImportDeclaration(n,void 0,void 0,t,n.moduleSpecifier):void 0}(t);case 249:return Me(t);case 255:return function(t){return b.isValueAliasDeclaration(t)?e.visitEachChild(t,R,n):void 0}(t);case 256:return function(n){if(!n.exportClause)return E.isolatedModules||b.moduleExportsSomeValue(n.moduleSpecifier)?n:void 0;if(b.isValueAliasDeclaration(n)){var t=e.visitNode(n.exportClause,De,e.isNamedExports);return t?e.updateExportDeclaration(n,void 0,void 0,t,n.moduleSpecifier):void 0}}(t);default:e.Debug.fail("Unhandled ellided statement")}}(t);default:return M(t)}}function k(e){return D(e,N)}function N(n){if(256!==n.kind&&250!==n.kind&&251!==n.kind&&(249!==n.kind||260!==n.moduleReference.kind))return 1&n.transformFlags||e.hasModifier(n,1)?F(n):n}function w(e){return D(e,P)}function P(n){switch(n.kind){case 158:return ge(n);case 155:return fe(n);case 163:case 159:case 160:case 157:return M(n);case 218:return n;default:return e.Debug.failBadSyntaxKind(n)}}function G(n){if(!(2270&e.modifierToFlag(n.kind)||s&&86===n.kind))return n}function F(r){if(e.isStatement(r)&&e.hasModifier(r,2))return e.createNotEmittedStatement(r);switch(r.kind){case 86:case 81:return s?void 0:r;case 116:case 114:case 115:case 119:case 78:case 126:case 134:case 170:case 171:case 172:case 173:case 169:case 164:case 151:case 121:case 144:case 124:case 139:case 136:case 133:case 107:case 140:case 167:case 166:case 168:case 165:case 174:case 175:case 176:case 178:case 179:case 180:case 181:case 182:case 183:case 163:case 153:case 243:return;case 155:return fe(r);case 248:return;case 158:return ge(r);case 242:return e.createNotEmittedStatement(r);case 241:return function(r){if(!(H(r)||s&&e.hasModifier(r,1)))return e.visitEachChild(r,R,n);var i=e.getInitializedProperties(r,!0),o=function(n,t){var r=0;e.some(t)&&(r|=1);var a=e.getEffectiveBaseTypeNode(n);return a&&97!==e.skipOuterExpressions(a.expression).kind&&(r|=64),function(n){if(n.decorators&&n.decorators.length>0)return!0;var t=e.getFirstConstructorWithBody(n);return!!t&&e.forEach(t.parameters,B)}(n)&&(r|=2),e.childIsDecorated(n)&&(r|=4),Ie(n)?r|=8:function(n){return Oe(n)&&e.hasModifier(n,512)}(n)?r|=32:ke(n)&&(r|=16),S<=1&&7&r&&(r|=128),r}(r,i);128&o&&n.startLexicalEnvironment();var l=r.name||(5&o?e.getGeneratedNameForNode(r):void 0),c=2&o?function(t,r){var a=e.moveRangePastDecorators(t),i=function(t){if(16777216&b.getNodeCheckFlags(t)){0==(1&p)&&(p|=1,n.enableSubstitution(73),f=[]);var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return f[e.getOriginalNodeId(t)]=r,h(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,R,e.isHeritageClause),l=K(t),c=e.createClassExpression(void 0,r,void 0,s,l);e.aggregateTransformFlags(c),e.setOriginalNode(c,t),e.setTextRange(c,a);var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,c):c)],1));return e.setOriginalNode(d,t),e.setTextRange(d,a),e.setCommentRange(d,t),d}(r,l):function(n,t,r){var a=128&r?void 0:e.visitNodes(n.modifiers,G,e.isModifier),i=e.createClassDeclaration(void 0,a,t,void 0,e.visitNodes(n.heritageClauses,R,e.isHeritageClause),K(n)),o=e.getEmitFlags(n);return 1&r&&(o|=32),e.aggregateTransformFlags(i),e.setTextRange(i,n),e.setOriginalNode(i,n),e.setEmitFlags(i,o),i}(r,l,o),d=[c];if(J(d,r,!1),J(d,r,!0),function(t,r){var i=function(t){var r=function(n){var t=n.decorators,r=q(e.getFirstConstructorWithBody(n));if(t||r)return{decorators:t,parameters:r}}(t),i=X(t,t,r);if(i){var o=f&&f[e.getOriginalNodeId(t)],s=e.getLocalName(t,!1,!0),l=a(n,i,s),c=e.createAssignment(s,o?e.createAssignment(o,l):l);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(t)),c}}(r);i&&t.push(e.setOriginalNode(e.createExpressionStatement(i),r))}(d,r),128&o){var u=e.createTokenRange(e.skipTrivia(t.text,r.members.end),19),m=e.getInternalName(r),g=e.createPartiallyEmittedExpression(m);g.end=u.end,e.setEmitFlags(g,1536);var _=e.createReturn(g);_.pos=u.pos,e.setEmitFlags(_,1920),d.push(_),e.insertStatementsAfterStandardPrologue(d,n.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(d);e.setEmitFlags(y,33554432);var v=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,y)]));e.setOriginalNode(v,r),e.setCommentRange(v,r),e.setSourceMapRange(v,e.moveRangePastDecorators(r)),e.startOnNewLine(v),d=[v]}return 8&o?we(d,r):(128&o||2&o)&&(32&o?d.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&o&&d.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),d.length>1&&(d.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(c,4194304|e.getEmitFlags(c))),e.singleOrMany(d)}(r);case 210:return function(t){if(!H(t))return e.visitEachChild(t,R,n);var r=e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,R,e.isHeritageClause),K(t));return e.aggregateTransformFlags(r),e.setOriginalNode(r,t),e.setTextRange(r,t),r}(r);case 274:return function(t){if(110!==t.token)return e.visitEachChild(t,R,n)}(r);case 212:return function(n){return e.updateExpressionWithTypeArguments(n,void 0,e.visitNode(n.expression,R,e.isLeftHandSideExpression))}(r);case 157:return function(t){if(pe(t)){var r=e.updateMethod(t,void 0,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,me(t),void 0,void 0,e.visitParameterList(t.parameters,R,n),void 0,e.visitFunctionBody(t.body,R,n));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(r);case 159:return function(t){if(ye(t)){var r=e.updateGetAccessor(t,void 0,e.visitNodes(t.modifiers,G,e.isModifier),me(t),e.visitParameterList(t.parameters,R,n),void 0,e.visitFunctionBody(t.body,R,n)||e.createBlock([]));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(r);case 160:return function(t){if(ye(t)){var r=e.updateSetAccessor(t,void 0,e.visitNodes(t.modifiers,G,e.isModifier),me(t),e.visitParameterList(t.parameters,R,n),e.visitFunctionBody(t.body,R,n)||e.createBlock([]));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(r);case 240:return function(t){if(!pe(t))return e.createNotEmittedStatement(t);var r=e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,R,n),void 0,e.visitFunctionBody(t.body,R,n)||e.createBlock([]));if(Ie(t)){var a=[r];return we(a,t),a}return r}(r);case 197:return function(t){return pe(t)?e.updateFunctionExpression(t,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,R,n),void 0,e.visitFunctionBody(t.body,R,n)||e.createBlock([])):e.createOmittedExpression()}(r);case 198:return function(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,G,e.isModifier),void 0,e.visitParameterList(t.parameters,R,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,R,n))}(r);case 152:return function(n){if(!e.parameterIsThisKeyword(n)){var t=e.updateParameter(n,void 0,void 0,n.dotDotDotToken,e.visitNode(n.name,R,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,R,e.isExpression));return t!==n&&(e.setCommentRange(t,n),e.setTextRange(t,e.moveRangePastModifiers(n)),e.setSourceMapRange(t,e.moveRangePastModifiers(n)),e.setEmitFlags(t.name,32)),t}}(r);case 196:return function(r){var a=e.skipOuterExpressions(r.expression,-3);if(e.isAssertionExpression(a)){var i=e.visitNode(r.expression,R,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(i,t))?e.updateParen(r,i):e.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,R,n)}(r);case 195:case 213:return function(n){var t=e.visitNode(n.expression,R,e.isExpression);return e.createPartiallyEmittedExpression(t,n)}(r);case 192:return function(n){return e.updateCall(n,e.visitNode(n.expression,R,e.isExpression),void 0,e.visitNodes(n.arguments,R,e.isExpression))}(r);case 193:return function(n){return e.updateNew(n,e.visitNode(n.expression,R,e.isExpression),void 0,e.visitNodes(n.arguments,R,e.isExpression))}(r);case 194:return function(n){return e.updateTaggedTemplate(n,e.visitNode(n.tag,R,e.isExpression),void 0,e.visitNode(n.template,R,e.isExpression))}(r);case 214:return function(n){var t=e.visitNode(n.expression,R,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(t,n)}(r);case 244:return function(n){if(!function(n){return!e.isEnumConst(n)||E.preserveConstEnums||E.isolatedModules}(n))return e.createNotEmittedStatement(n);var r=[],a=2,i=Se(r,n);i&&(L===e.ModuleKind.System&&c===t||(a|=512));var o=Fe(n),s=Ve(n),d=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(l,n,!1,!0):e.getLocalName(n,!1,!0),u=e.createLogicalOr(d,e.createAssignment(d,e.createObjectLiteral()));if(be(n)){var m=e.getLocalName(n,!1,!0);u=e.createAssignment(m,u)}var p=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,o)],void 0,function(n,t){var r=l;l=t;var a=[];_();var i=e.map(n.members,he);return e.insertStatementsAfterStandardPrologue(a,v()),e.addRange(a,i),l=r,e.createBlock(e.setTextRange(e.createNodeArray(a),n.members),!0)}(n,s)),void 0,[u]));return e.setOriginalNode(p,n),i&&(e.setSyntheticLeadingComments(p,void 0),e.setSyntheticTrailingComments(p,void 0)),e.setTextRange(p,n),e.addEmitFlags(p,a),r.push(p),r.push(e.createEndOfDeclarationMarker(n)),r}(r);case 220:return function(t){if(Ie(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(r,ve))),t)}return e.visitEachChild(t,R,n)}(r);case 238:return function(n){return e.updateVariableDeclaration(n,e.visitNode(n.name,R,e.isBindingName),void 0,e.visitNode(n.initializer,R,e.isExpression))}(r);case 245:return Le(r);case 249:return Me(r);default:return e.visitEachChild(r,R,n)}}function V(t){var r=e.getStrictOptionValue(E,"alwaysStrict")&&!(e.isExternalModule(t)&&L>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return e.updateSourceFileNode(t,e.visitLexicalEnvironment(t.statements,I,n,0,r))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function U(e){return!!(1024&e.transformFlags)}function H(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,U)||e.some(n.members,U)}function K(n){var t=[],r=e.getFirstConstructorWithBody(n),a=r&&e.filter(r.parameters,e.isParameterPropertyDeclaration);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];e.isIdentifier(s.name)&&t.push(e.aggregateTransformFlags(e.createProperty(void 0,void 0,s.name,void 0,void 0,void 0)))}return e.addRange(t,e.visitNodes(n.members,w,e.isClassElement)),e.setTextRange(e.createNodeArray(t),n.members)}function j(n,t){return e.filter(n.members,t?function(e){return W(e,!0,n)}:function(e){return W(e,!1,n)})}function W(n,t,r){return e.nodeOrChildIsDecorated(n,r)&&t===e.hasModifier(n,32)}function q(n){var t;if(n)for(var r=n.parameters,a=r.length>0&&e.parameterIsThisKeyword(r[0]),i=a?1:0,o=a?r.length-1:r.length,s=0;s<o;s++){var l=r[s+i];(t||l.decorators)&&(t||(t=new Array(o)),t[s]=l.decorators)}return t}function z(n,t){switch(t.kind){case 159:case 160:return function(n,t){if(t.body){var r=e.getAllAccessorDeclarations(n.members,t),a=r.firstAccessor,i=r.secondAccessor,o=r.setAccessor,s=a.decorators?a:i&&i.decorators?i:void 0;if(s&&t===s){var l=s.decorators,c=q(o);if(l||c)return{decorators:l,parameters:c}}}}(n,t);case 157:return function(e){if(e.body){var n=e.decorators,t=q(e);if(n||t)return{decorators:n,parameters:t}}}(t);case 155:return function(e){var n=e.decorators;if(n)return{decorators:n}}(t);default:return}}function X(t,a,o){if(o){var s=[];return e.addRange(s,e.map(o.decorators,Q)),e.addRange(s,e.flatMap(o.parameters,Z)),function(t,a,o){r?function(t,r,a){if(E.emitDecoratorMetadata){var o=void 0;$(t)&&(o||(o=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(37),te(t)))),ne(t)&&(o||(o=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(37),re(t,r)))),ee(t)&&(o||(o=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(37),ae(t)))),o&&a.push(i(n,"design:typeinfo",e.createObjectLiteral(o,!0)))}}(t,a,o):function(e,t,r){E.emitDecoratorMetadata&&($(e)&&r.push(i(n,"design:type",te(e))),ne(e)&&r.push(i(n,"design:paramtypes",re(e,t))),ee(e)&&r.push(i(n,"design:returntype",ae(e))))}(t,a,o)}(t,a,s),s}}function J(n,t,r){e.addRange(n,e.map(function(e,n){for(var t,r=0,a=j(e,n);r<a.length;r++){var i=a[r],o=Y(e,i);o&&(t?t.push(o):t=[o])}return t}(t,r),Ne))}function Y(t,r){var i=X(r,t,z(t,r));if(i){var o=function(n,t){return e.hasModifier(t,32)?e.getDeclarationName(n):function(n){return e.createPropertyAccess(e.getDeclarationName(n),"prototype")}(n)}(t,r),s=ue(r,!0),l=S>0?155===r.kind?e.createVoidZero():e.createNull():void 0,c=a(n,i,o,s,l,e.moveRangePastDecorators(r));return e.setEmitFlags(c,1536),c}}function Q(n){return e.visitNode(n.expression,R,e.isExpression)}function Z(t,r){var a;if(t){a=[];for(var i=0,s=t;i<s.length;i++){var l=s[i],c=o(n,Q(l),r,l.expression);e.setEmitFlags(c,1536),a.push(c)}}return a}function $(e){var n=e.kind;return 157===n||159===n||160===n||155===n}function ee(e){return 157===e.kind}function ne(n){switch(n.kind){case 241:case 210:return void 0!==e.getFirstConstructorWithBody(n);case 157:case 159:case 160:return!0}return!1}function te(n){switch(n.kind){case 155:case 152:return ie(n.type);case 160:case 159:return ie(function(n){var t=b.getAllAccessorDeclarations(n);return t.setAccessor&&e.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&e.getEffectiveReturnTypeNode(t.getAccessor)}(n));case 241:case 210:case 157:return e.createIdentifier("Function");default:return e.createVoidZero()}}function re(n,t){var r=e.isClassLike(n)?e.getFirstConstructorWithBody(n):e.isFunctionLike(n)&&e.nodeIsPresent(n.body)?n:void 0,a=[];if(r)for(var i=function(n,t){if(t&&159===n.kind){var r=e.getAllAccessorDeclarations(t.members,n).setAccessor;if(r)return r.parameters}return n.parameters}(r,t),o=i.length,s=0;s<o;s++){var l=i[s];0===s&&e.isIdentifier(l.name)&&"this"===l.name.escapedText||(l.dotDotDotToken?a.push(ie(e.getRestParameterElementType(l.type))):a.push(te(l)))}return e.createArrayLiteral(a)}function ae(n){return e.isFunctionLike(n)&&n.type?ie(n.type):e.isAsyncFunction(n)?e.createIdentifier("Promise"):e.createVoidZero()}function ie(n){if(void 0===n)return e.createIdentifier("Object");switch(n.kind){case 107:case 142:case 97:case 133:return e.createVoidZero();case 178:return ie(n.type);case 166:case 167:return e.createIdentifier("Function");case 170:case 171:return e.createIdentifier("Array");case 164:case 124:return e.createIdentifier("Boolean");case 139:return e.createIdentifier("String");case 137:return e.createIdentifier("Object");case 183:switch(n.literal.kind){case 10:return e.createIdentifier("String");case 203:case 8:return e.createIdentifier("Number");case 9:return de();case 103:case 88:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(n.literal)}case 136:return e.createIdentifier("Number");case 147:return de();case 140:return S<2?ce():e.createIdentifier("Symbol");case 165:return function(n){var t=b.getTypeReferenceSerializationKind(n.typeName,d||c);switch(t){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(n,function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&(n.parent.trueType===n||n.parent.falseType===n)}))return e.createIdentifier("Object");var r=function n(t){if(73===t.kind){var r=le(t);return se(r,r)}if(73===t.left.kind)return se(le(t.left),le(t));var a=n(t.left),i=e.createTempVariable(h);return e.createLogicalAnd(e.createLogicalAnd(a.left,e.createStrictInequality(e.createAssignment(i,a.right),e.createVoidZero())),e.createPropertyAccess(i,t.right))}(n.typeName),a=e.createTempVariable(h);return e.createConditional(e.createTypeCheck(e.createAssignment(a,r),"function"),a,e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return le(n.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return de();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return S<2?ce():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.createIdentifier("Object");default:return e.Debug.assertNever(t)}}(n);case 175:case 174:return oe(n.types);case 176:return oe([n.trueType,n.falseType]);case 180:if(134===n.operator)return ie(n.type);break;case 168:case 181:case 182:case 169:case 121:case 144:case 179:case 184:break;default:return e.Debug.failBadSyntaxKind(n)}return e.createIdentifier("Object")}function oe(n){for(var t,r=0,a=n;r<a.length;r++){for(var i=a[r];178===i.kind;)i=i.type;if(133!==i.kind&&(T||97!==i.kind&&142!==i.kind)){var o=ie(i);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return e.createIdentifier("Object")}else t=o}}return t||e.createVoidZero()}function se(n,t){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(n),e.createLiteral("undefined")),t)}function le(n){switch(n.kind){case 73:var t=e.getMutableClone(n);return t.flags&=-9,t.original=void 0,t.parent=e.getParseTreeNode(c),t;case 149:return function(n){return e.createPropertyAccess(le(n.left),n.right)}(n)}}function ce(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function de(){return S<99?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function ue(n,t){var r=n.name;return e.isComputedPropertyName(r)?t&&!e.isSimpleInlineableExpression(r.expression)?e.getGeneratedNameForNode(r):r.expression:e.isIdentifier(r)?e.createLiteral(e.idText(r)):e.getSynthesizedClone(r)}function me(n){var t=n.name;if(e.isComputedPropertyName(t)&&(!e.hasStaticModifier(n)&&m||e.some(n.decorators))){var r=e.visitNode(t.expression,R,e.isExpression),a=e.skipPartiallyEmittedExpressions(r);if(!e.isSimpleInlineableExpression(a)){var i=e.getGeneratedNameForNode(t);return h(i),e.updateComputedPropertyName(t,e.createAssignment(i,r))}}return e.visitNode(t,R,e.isPropertyName)}function pe(n){return!e.nodeIsMissing(n.body)}function fe(n){var t=e.updateProperty(n,void 0,e.visitNodes(n.modifiers,R,e.isModifier),me(n),void 0,void 0,e.visitNode(n.initializer,R));return t!==n&&(e.setCommentRange(t,n),e.setSourceMapRange(t,e.moveRangePastDecorators(n))),t}function ge(t){if(pe(t))return e.updateConstructor(t,void 0,void 0,e.visitParameterList(t.parameters,R,n),function(t,r){var a=r&&e.filter(r.parameters,e.isParameterPropertyDeclaration);if(!e.some(a))return e.visitFunctionBody(t,R,n);var i=[],o=0;y(),o=e.addPrologueDirectivesAndInitialSuperCall(r,i,R),e.addRange(i,e.map(a,_e)),e.addRange(i,e.visitNodes(t.statements,R,e.isStatement,o)),i=e.mergeLexicalEnvironment(i,v());var s=e.createBlock(e.setTextRange(e.createNodeArray(i),t.statements),!0);return e.setTextRange(s,t),e.setOriginalNode(s,t),s}(t.body,t))}function _e(n){var t=n.name;if(e.isIdentifier(t)){var r=e.getMutableClone(t);e.setEmitFlags(r,1584);var a=e.getMutableClone(t);return e.setEmitFlags(a,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),n.name),a)),n),e.moveRangePos(n,-1))))}}function ye(n){return!(e.nodeIsMissing(n.body)&&e.hasModifier(n,128))}function ve(t){var r=t.name;return e.isBindingPattern(r)?e.flattenDestructuringAssignment(t,R,n,0,!1,Pe):e.setTextRange(e.createAssignment(Ge(r),e.visitNode(t.initializer,R,e.isExpression)),t)}function he(t){var r=ue(t,!1),a=function(t){var r=b.getConstantValue(t);return void 0!==r?e.createLiteral(r):(0==(8&p)&&(p|=8,n.enableSubstitution(73)),t.initializer?e.visitNode(t.initializer,R,e.isExpression):e.createVoidZero())}(t),i=e.createAssignment(e.createElementAccess(l,r),a),o=10===a.kind?i:e.createAssignment(e.createElementAccess(l,i),r);return e.setTextRange(e.createExpressionStatement(e.setTextRange(o,t)),t)}function be(n){return Ie(n)||Oe(n)&&L!==e.ModuleKind.ES2015&&L!==e.ModuleKind.ESNext&&L!==e.ModuleKind.System}function Ee(n){u||(u=e.createUnderscoreEscapedMap());var t=Te(n);u.has(t)||u.set(t,n)}function Te(n){return e.Debug.assertNode(n.name,e.isIdentifier),n.name.escapedText}function Se(n,t){var r=e.createVariableStatement(e.visitNodes(t.modifiers,G,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(t,!1,!0))],285===c.kind?0:1));if(e.setOriginalNode(r,t),Ee(t),function(e){if(u){var n=Te(e);return u.get(n)===e}return!0}(t))return 244===t.kind?e.setSourceMapRange(r.declarationList,t):e.setSourceMapRange(r,t),e.setCommentRange(r,t),e.addEmitFlags(r,4195328),n.push(r),!0;var a=e.createMergeDeclarationMarker(r);return e.setEmitFlags(a,4195840),n.push(a),!1}function Le(r){if(!function(n){return e.isInstantiatedModule(n,!!E.preserveConstEnums||!!E.isolatedModules)}(r))return e.createNotEmittedStatement(r);e.Debug.assertNode(r.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&p)&&(p|=2,n.enableSubstitution(73),n.enableSubstitution(277),n.enableEmitNotification(245));var a=[],i=2,o=Se(a,r);o&&(L===e.ModuleKind.System&&c===t||(i|=512));var d=Fe(r),m=Ve(r),f=e.hasModifier(r,1)?e.getExternalModuleOrNamespaceExportName(l,r,!1,!0):e.getLocalName(r,!1,!0),g=e.createLogicalOr(f,e.createAssignment(f,e.createObjectLiteral()));if(be(r)){var y=e.getLocalName(r,!1,!0);g=e.createAssignment(y,g)}var h=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,d)],void 0,function(n,t){var r=l,a=s,i=u;l=t,s=n,u=void 0;var o,c,d=[];_();var m=n.body;if(246===m.kind)D(m,function(n){return e.addRange(d,e.visitNodes(n.statements,k,e.isStatement))}),o=m.statements,c=m;else{var p=Le(m);p&&(e.isArray(p)?e.addRange(d,p):d.push(p));var f=function e(n){if(245===n.body.kind){var t=e(n.body);return t||n.body}}(n).body;o=e.moveRangePos(f.statements,-1)}e.insertStatementsAfterStandardPrologue(d,v()),l=r,s=a,u=i;var g=e.createBlock(e.setTextRange(e.createNodeArray(d),o),!0);return e.setTextRange(g,c),246!==m.kind&&e.setEmitFlags(g,1536|e.getEmitFlags(g)),g}(r,m)),void 0,[g]));return e.setOriginalNode(h,r),o&&(e.setSyntheticLeadingComments(h,void 0),e.setSyntheticTrailingComments(h,void 0)),e.setTextRange(h,r),e.addEmitFlags(h,i),a.push(h),a.push(e.createEndOfDeclarationMarker(r)),a}function Ae(n){var t=b.isReferencedAliasDeclaration(n)?n.name:void 0,r=e.visitNode(n.namedBindings,xe,e.isNamedImportBindings);return t||r?e.updateImportClause(n,t,r):void 0}function xe(n){if(252===n.kind)return b.isReferencedAliasDeclaration(n)?n:void 0;var t=e.visitNodes(n.elements,Ce,e.isImportSpecifier);return e.some(t)?e.updateNamedImports(n,t):void 0}function Ce(e){return b.isReferencedAliasDeclaration(e)?e:void 0}function De(n){var t=e.visitNodes(n.elements,Re,e.isExportSpecifier);return e.some(t)?e.updateNamedExports(n,t):void 0}function Re(e){return b.isValueAliasDeclaration(e)?e:void 0}function Me(r){if(e.isExternalModuleImportEqualsDeclaration(r))return b.isReferencedAliasDeclaration(r)?e.visitEachChild(r,R,n):void 0;if(function(n){return b.isReferencedAliasDeclaration(n)||!e.isExternalModule(t)&&b.isTopLevelValueImportEqualsWithEntityName(n)}(r)){var a,i,o,s=e.createExpressionFromEntityName(r.moduleReference);return e.setEmitFlags(s,3584),ke(r)||!Ie(r)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(r.modifiers,G,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(r.name,void 0,s),r)])),r),r):e.setOriginalNode((a=r.name,i=s,o=r,e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName(l,a,!1,!0),i)),o)),r)}}function Ie(n){return void 0!==s&&e.hasModifier(n,1)}function Oe(n){return void 0===s&&e.hasModifier(n,1)}function ke(n){return Oe(n)&&!e.hasModifier(n,512)}function Ne(n){return e.createExpressionStatement(n)}function we(n,t){var r=e.createAssignment(e.getExternalModuleOrNamespaceExportName(l,t,!1,!0),e.getLocalName(t));e.setSourceMapRange(r,e.createRange(t.name?t.name.pos:t.pos,t.end));var a=e.createExpressionStatement(r);e.setSourceMapRange(a,e.createRange(-1,t.end)),n.push(a)}function Pe(n,t,r){return e.setTextRange(e.createAssignment(Ge(n),t),r)}function Ge(n){return e.getNamespaceMemberName(l,n,!1,!0)}function Fe(n){var t=e.getGeneratedNameForNode(n);return e.setSourceMapRange(t,n.name),t}function Ve(n){return e.getGeneratedNameForNode(n)}function Be(n){if(p&g&&!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var t=b.getReferencedExportContainer(n,!1);if(t&&285!==t.kind&&(2&g&&245===t.kind||8&g&&244===t.kind))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(t),n),n)}}function Ue(n){var t=function(n){if(!E.isolatedModules)return e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)?b.getConstantValue(n):void 0}(n);if(void 0!==t){e.setConstantValue(n,t);var r=e.createLiteral(t);if(!E.removeComments){var a=e.isPropertyAccessExpression(n)?e.declarationNameToString(n.name):e.getTextOfNode(n.argumentExpression);e.addSyntheticTrailingComment(r,3," "+a+" ")}return r}return n}},e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n            };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };"}}(u||(u={})),function(e){var n;!function(e){e[e.ClassAliases=1]="ClassAliases"}(n||(n={})),e.transformClassFields=function(n){var t,r,a,i,s=n.hoistVariableDeclaration,l=n.endLexicalEnvironment,c=n.resumeLexicalEnvironment,d=n.getEmitResolver(),u=n.onSubstituteNode;return n.onSubstituteNode=function(n,a){return a=u(n,a),1===n?function(n){switch(n.kind){case 73:return function(n){return function(n){if(1&t&&33554432&d.getNodeCheckFlags(n)){var a=d.getReferencedValueDeclaration(n);if(a){var i=r[a.id];if(i){var o=e.getSynthesizedClone(i);return e.setSourceMapRange(o,n),e.setCommentRange(o,n),o}}}}(n)||n}(n)}return n}(a):a},e.chainBundle(function(t){if(t.isDeclarationFile)return t;var r=e.visitEachChild(t,m,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r});function m(l){if(!(1048576&l.transformFlags))return l;switch(l.kind){case 210:return function(o){if(!e.forEach(o.members,e.isPropertyDeclaration))return e.visitEachChild(o,m,n);var l=a;a=void 0;var c=e.isClassDeclaration(e.getOriginalNode(o)),u=e.getInitializedProperties(o,!0),p=e.getEffectiveBaseTypeNode(o),y=!(!p||97===e.skipOuterExpressions(p.expression).kind),v=e.updateClassExpression(o,o.modifiers,o.name,void 0,e.visitNodes(o.heritageClauses,m,e.isHeritageClause),f(o,y));if(e.some(u)||e.some(a)){if(c)return e.Debug.assertDefined(i,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),i&&a&&e.some(a)&&i.push(e.createExpressionStatement(e.inlineExpressions(a))),a=l,i&&e.some(u)&&g(i,u,e.getInternalName(o)),v;var h=[],b=16777216&d.getNodeCheckFlags(o),E=e.createTempVariable(s,!!b);if(b){0==(1&t)&&(t|=1,n.enableSubstitution(73),r=[]);var T=e.getSynthesizedClone(E);T.autoGenerateFlags&=-9,r[e.getOriginalNodeId(o)]=T}return e.setEmitFlags(v,65536|e.getEmitFlags(v)),h.push(e.startOnNewLine(e.createAssignment(E,v))),e.addRange(h,e.map(a,e.startOnNewLine)),e.addRange(h,function(n,t){for(var r=[],a=0,i=n;a<i.length;a++){var o=i[a],s=_(o,t);e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),r.push(s)}return r}(u,E)),h.push(e.startOnNewLine(E)),a=l,e.inlineExpressions(h)}return a=l,v}(l);case 241:return function(t){if(!e.forEach(t.members,e.isPropertyDeclaration))return e.visitEachChild(t,m,n);var r=a;a=void 0;var i=e.getEffectiveBaseTypeNode(t),o=!(!i||97===e.skipOuterExpressions(i.expression).kind),s=[e.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,m,e.isHeritageClause),f(t,o))];e.some(a)&&s.push(e.createExpressionStatement(e.inlineExpressions(a))),a=r;var l=e.getInitializedProperties(t,!0);return e.some(l)&&g(s,l,e.getInternalName(t)),s}(l);case 220:return function(t){var r=i;i=[];var a=e.visitEachChild(t,m,n),s=e.some(i)?o([a],i):a;return i=r,s}(l)}return e.visitEachChild(l,m,n)}function p(t){switch(t.kind){case 158:return;case 159:case 160:case 157:return e.visitEachChild(t,p,n);case 155:return function(n){e.Debug.assert(!e.some(n.decorators));var t=function(n,t){if(e.isComputedPropertyName(n)){var r=e.visitNode(n.expression,m,e.isExpression),a=e.skipPartiallyEmittedExpressions(r),i=e.isSimpleInlineableExpression(a),o=e.isAssignmentExpression(a)&&e.isGeneratedIdentifier(a.left);if(!o&&!i&&t){var l=e.getGeneratedNameForNode(n);return s(l),e.createAssignment(l,r)}return i||e.isIdentifier(a)?void 0:r}}(n.name,!!n.initializer);t&&!e.isSimpleInlineableExpression(t)&&(a||(a=[])).push(t)}(t);case 150:return function(t){var r=e.visitEachChild(t,m,n);if(e.some(a)){var i=a;i.push(t.expression),a=[],r=e.updateComputedPropertyName(r,e.inlineExpressions(i))}return r}(t);case 218:return t;default:return m(t)}}function f(t,r){var a=[],i=function(t,r){var a=e.visitNode(e.getFirstConstructorWithBody(t),m,e.isConstructorDeclaration);if(!e.forEach(t.members,e.isInitializedProperty))return a;var i=e.visitParameterList(a?a.parameters:void 0,m,n),o=function(t,r,a){var i=e.getInitializedProperties(t,!1);if(!r&&!e.some(i))return e.visitFunctionBody(void 0,m,n);c();var o=0,s=[];if(!r&&a&&s.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))]))),r&&(o=e.addPrologueDirectivesAndInitialSuperCall(r,s,m)),r&&r.body){for(var d=0,u=o;u<r.body.statements.length&&e.isParameterPropertyDeclaration(e.getOriginalNode(r.body.statements[u]));u++)d++;d>0&&(e.addRange(s,e.visitNodes(r.body.statements,m,e.isStatement,o,d)),o+=d)}return g(s,i,e.createThis()),r&&e.addRange(s,e.visitNodes(r.body.statements,m,e.isStatement,o)),s=e.mergeLexicalEnvironment(s,l()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(s),r?r.body.statements:t.members),!0),r?r.body:void 0)}(t,a,r);return o?e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,i,o),a||t),a)):void 0}(t,r);return i&&a.push(i),e.addRange(a,e.visitNodes(t.members,p,e.isClassElement)),e.setTextRange(e.createNodeArray(a),t.members)}function g(n,t,r){for(var a=0,i=t;a<i.length;a++){var o=i[a],s=e.createExpressionStatement(_(o,r));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s)}}function _(n,t){var r=e.isComputedPropertyName(n.name)&&!e.isSimpleInlineableExpression(n.name.expression)?e.updateComputedPropertyName(n.name,e.getGeneratedNameForNode(n.name)):n.name,a=e.visitNode(n.initializer,m,e.isExpression),i=e.createMemberAccessForPropertyName(t,r,r);return e.createAssignment(i,a)}}}(u||(u={})),function(e){var n;function t(n,t,r){var a=0!=(4096&n.getNodeCheckFlags(t)),i=[];return r.forEach(function(n,t){var r=e.unescapeLeadingUnderscores(t),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),r),4)))),a&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),r),4),e.createIdentifier("v"))))),i.push(e.createPropertyAssignment(r,e.createObjectLiteral(o)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(i,!0)]))],2))}function r(n,t,r,a,i){n.requestEmitHelper(e.awaiterHelper);var o=e.createFunctionExpression(void 0,e.createToken(40),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getUnscopedHelperName("__awaiter"),void 0,[t?e.createThis():e.createVoidZero(),r?e.createIdentifier("arguments"):e.createVoidZero(),a?e.createExpressionFromEntityName(a):e.createVoidZero(),o])}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=function(n){var a,i,s,l,c,d=n.resumeLexicalEnvironment,u=n.endLexicalEnvironment,m=n.hoistVariableDeclaration,p=n.getEmitResolver(),f=n.getCompilerOptions(),g=e.getEmitScriptTarget(f),_=0,y=[],v=n.onEmitNode,h=n.onSubstituteNode;return n.onEmitNode=function(n,t,r){if(1&a&&function(e){var n=e.kind;return 241===n||158===n||157===n||159===n||160===n}(t)){var i=6144&p.getNodeCheckFlags(t);if(i!==_){var o=_;return _=i,v(n,t,r),void(_=o)}}else if(a&&y[e.getNodeId(t)]){var o=_;return _=0,v(n,t,r),void(_=o)}v(n,t,r)},n.onSubstituteNode=function(n,t){return t=h(n,t),1===n&&_?function(n){switch(n.kind){case 190:return w(n);case 191:return P(n);case 192:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?w(t):P(t);return e.createCall(e.createPropertyAccess(r,"call"),void 0,o([e.createThis()],n.arguments))}return n}(n)}return n}(t):t},e.chainBundle(function(t){if(t.isDeclarationFile)return t;c=e.isEffectiveStrictModeSourceFile(t,f);var r=e.visitEachChild(t,T,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r});function b(e,n){if(c){c=!1;var t=e(n);return c=!0,t}return e(n)}function E(t){return e.visitEachChild(t,T,n)}function T(t){if(0==(32&t.transformFlags))return t;switch(t.kind){case 122:return;case 202:return function(n){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(n.expression,T,e.isExpression)),n),n)}(t);case 157:return b(L,t);case 240:return b(A,t);case 197:return b(x,t);case 198:return function(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,T,e.isModifier),void 0,e.visitParameterList(t.parameters,T,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?k(t):e.visitFunctionBody(t.body,T,n))}(t);case 190:return s&&e.isPropertyAccessExpression(t)&&99===t.expression.kind&&s.set(t.name.escapedText,!0),e.visitEachChild(t,T,n);case 191:return s&&99===t.expression.kind&&(l=!0),e.visitEachChild(t,T,n);case 159:case 160:case 158:case 241:case 210:return b(E,t);default:return e.visitEachChild(t,T,n)}}function S(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 220:return function(t){if(D(t.declarationList)){var r=R(t.declarationList,!1);return r?e.createExpressionStatement(r):void 0}return e.visitEachChild(t,T,n)}(t);case 226:return function(n){var t=n.initializer;return e.updateFor(n,D(t)?R(t,!1):e.visitNode(n.initializer,T,e.isForInitializer),e.visitNode(n.condition,T,e.isExpression),e.visitNode(n.incrementor,T,e.isExpression),e.visitNode(n.statement,S,e.isStatement,e.liftToBlock))}(t);case 227:return function(n){return e.updateForIn(n,D(n.initializer)?R(n.initializer,!0):e.visitNode(n.initializer,T,e.isForInitializer),e.visitNode(n.expression,T,e.isExpression),e.visitNode(n.statement,S,e.isStatement,e.liftToBlock))}(t);case 228:return function(n){return e.updateForOf(n,e.visitNode(n.awaitModifier,T,e.isToken),D(n.initializer)?R(n.initializer,!0):e.visitNode(n.initializer,T,e.isForInitializer),e.visitNode(n.expression,T,e.isExpression),e.visitNode(n.statement,S,e.isStatement,e.liftToBlock))}(t);case 275:return function(t){var r,a=e.createUnderscoreEscapedMap();if(C(t.variableDeclaration,a),a.forEach(function(n,t){i.has(t)&&(r||(r=e.cloneMap(i)),r.delete(t))}),r){var o=i;i=r;var s=e.visitEachChild(t,S,n);return i=o,s}return e.visitEachChild(t,S,n)}(t);case 219:case 233:case 247:case 272:case 273:case 236:case 224:case 225:case 223:case 232:case 234:return e.visitEachChild(t,S,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return T(t)}function L(t){return e.updateMethod(t,void 0,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,T,n),void 0,2&e.getFunctionFlags(t)?k(t):e.visitFunctionBody(t.body,T,n))}function A(t){return e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,T,n),void 0,2&e.getFunctionFlags(t)?k(t):e.visitFunctionBody(t.body,T,n))}function x(t){return e.updateFunctionExpression(t,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,T,n),void 0,2&e.getFunctionFlags(t)?k(t):e.visitFunctionBody(t.body,T,n))}function C(n,t){var r=n.name;if(e.isIdentifier(r))t.set(r.escapedText,!0);else for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||C(o,t)}}function D(n){return!!n&&e.isVariableDeclarationList(n)&&!(3&n.flags)&&n.declarations.some(O)}function R(n,t){!function(n){e.forEach(n.declarations,M)}(n);var r=e.getInitializedVariables(n);return 0===r.length?t?e.visitNode(e.convertToAssignmentElementTarget(n.declarations[0].name),T,e.isExpression):void 0:e.inlineExpressions(e.map(r,I))}function M(n){var t=n.name;if(e.isIdentifier(t))m(t);else for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||M(i)}}function I(n){var t=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(n.name),n.initializer),n);return e.visitNode(t,T,e.isExpression)}function O(n){var t=n.name;if(e.isIdentifier(t))return i.has(t.escapedText);for(var r=0,a=t.elements;r<a.length;r++){var o=a[r];if(!e.isOmittedExpression(o)&&O(o))return!0}return!1}function k(o){d();var m=e.getOriginalNode(o,e.isFunctionLike).type,f=g<2?function(n){var t=n&&e.getEntityNameFromTypeNode(n);if(t&&e.isEntityName(t)){var r=p.getTypeReferenceSerializationKind(t);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return t}}(m):void 0,_=198===o.kind,v=0!=(8192&p.getNodeCheckFlags(o)),h=i;i=e.createUnderscoreEscapedMap();for(var b=0,E=o.parameters;b<E.length;b++)C(E[b],i);var S,L=s,A=l;if(_||(s=e.createUnderscoreEscapedMap(),l=!1),_){var x=r(n,!c,v,f,N(o.body)),D=u();e.some(D)?(k=e.convertToFunctionBody(x),S=e.updateBlock(k,e.setTextRange(e.createNodeArray(e.concatenate(D,k.statements)),k.statements))):S=x}else{var R=[],M=e.addPrologue(R,o.body.statements,!1,T);R.push(e.createReturn(r(n,!c,v,f,N(o.body,M)))),e.insertStatementsAfterStandardPrologue(R,u());var I=g>=2&&6144&p.getNodeCheckFlags(o);if(I&&(0==(1&a)&&(a|=1,n.enableSubstitution(192),n.enableSubstitution(190),n.enableSubstitution(191),n.enableEmitNotification(241),n.enableEmitNotification(157),n.enableEmitNotification(159),n.enableEmitNotification(160),n.enableEmitNotification(158),n.enableEmitNotification(220)),e.hasEntries(s))){var O=t(p,o,s);y[e.getNodeId(O)]=!0,e.insertStatementsAfterStandardPrologue(R,[O])}var k=e.createBlock(R,!0);e.setTextRange(k,o.body),I&&l&&(4096&p.getNodeCheckFlags(o)?e.addEmitHelper(k,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(o)&&e.addEmitHelper(k,e.asyncSuperHelper)),S=k}return i=h,_||(s=L,l=A),S}function N(n,t){return e.isBlock(n)?e.updateBlock(n,e.visitNodes(n.statements,S,e.isStatement,t)):e.convertToFunctionBody(e.visitNode(n,S,e.isConciseBody))}function w(n){return 99===n.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),n.name),n):n}function P(n){return 99===n.expression.kind?(t=n.argumentExpression,r=n,4096&_?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[t]),r)):n;var t,r}},e.createSuperAccessVariableStatement=t,e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n                return new (P || (P = Promise))(function (resolve, reject) {\n                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(c(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(c(["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"],["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(u||(u={})),function(e){var n;function t(n,t){return n.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,t):(n.requestEmitHelper(e.assignHelper),e.createCall(e.getUnscopedHelperName("__assign"),void 0,t))}function r(n,t){return n.requestEmitHelper(e.awaitHelper),e.createCall(e.getUnscopedHelperName("__await"),void 0,[t])}function a(n,t,r){return n.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncValues"),void 0,[t]),r)}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2018=function(n){var i=n.resumeLexicalEnvironment,s=n.endLexicalEnvironment,l=n.hoistVariableDeclaration,c=n.getEmitResolver(),d=n.getCompilerOptions(),u=e.getEmitScriptTarget(d),m=n.onEmitNode;n.onEmitNode=function(n,t,r){if(1&f&&function(e){var n=e.kind;return 241===n||158===n||157===n||159===n||160===n}(t)){var a=6144&c.getNodeCheckFlags(t);if(a!==b){var i=b;return b=a,m(n,t,r),void(b=i)}}else if(f&&E[e.getNodeId(t)]){var i=b;return b=0,m(n,t,r),void(b=i)}m(n,t,r)};var p=n.onSubstituteNode;n.onSubstituteNode=function(n,t){return t=p(n,t),1===n&&b?function(n){switch(n.kind){case 190:return B(n);case 191:return U(n);case 192:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?B(t):U(t);return e.createCall(e.createPropertyAccess(r,"call"),void 0,o([e.createThis()],n.arguments))}return n}(n)}return n}(t):t};var f,g,_,y,v,h=!1,b=0,E=[];return e.chainBundle(function(t){if(t.isDeclarationFile)return t;h=!1,_=e.isEffectiveStrictModeSourceFile(t,d);var r=e.visitEachChild(t,T,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r});function T(e){return C(e,!1)}function S(e){return C(e,!0)}function L(e){if(122!==e.kind)return e}function A(e,n){if(_){_=!1;var t=e(n);return _=!0,t}return e(n)}function x(t){return e.visitEachChild(t,T,n)}function C(i,s){if(0==(16&i.transformFlags))return i;switch(i.kind){case 202:return function(t){return 2&g&&1&g?e.setOriginalNode(e.setTextRange(e.createYield(r(n,e.visitNode(t.expression,T,e.isExpression))),t),t):e.visitEachChild(t,T,n)}(i);case 208:return function(t){if(2&g&&1&g){if(t.asteriskToken){var i=e.visitNode(t.expression,T,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(n,e.updateYield(t,t.asteriskToken,function(n,t,r){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncDelegator"),void 0,[t]),r)}(n,a(n,i,i),i)))),t),t)}return e.setOriginalNode(e.setTextRange(e.createYield(M(t.expression?e.visitNode(t.expression,T,e.isExpression):e.createVoidZero())),t),t)}return e.visitEachChild(t,T,n)}(i);case 231:return function(t){return 2&g&&1&g?e.updateReturn(t,M(t.expression?e.visitNode(t.expression,T,e.isExpression):e.createVoidZero())):e.visitEachChild(t,T,n)}(i);case 234:return function(t){if(2&g){var r=e.unwrapInnermostStatementOfLabel(t);return 228===r.kind&&r.awaitModifier?R(r,t):e.restoreEnclosingLabel(e.visitEachChild(r,T,n),t)}return e.visitEachChild(t,T,n)}(i);case 189:return function(r){if(8192&r.transformFlags){var a=function(n){for(var t,r=[],a=0,i=n;a<i.length;a++){var o=i[a];if(278===o.kind){t&&(r.push(e.createObjectLiteral(t)),t=void 0);var s=o.expression;r.push(e.visitNode(s,T,e.isExpression))}else t=e.append(t,276===o.kind?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,T,e.isExpression)):e.visitNode(o,T,e.isObjectLiteralElementLike))}return t&&r.push(e.createObjectLiteral(t)),r}(r.properties);a.length&&189!==a[0].kind&&a.unshift(e.createObjectLiteral());var i=a[0];if(a.length>1){for(var o=1;o<a.length;o++)i=t(n,[i,a[o]]);return i}return t(n,a)}return e.visitEachChild(r,T,n)}(i);case 205:return function(t,r){return e.isDestructuringAssignment(t)&&8192&t.left.transformFlags?e.flattenDestructuringAssignment(t,T,n,1,!r):27===t.operatorToken.kind?e.updateBinary(t,e.visitNode(t.left,S,e.isExpression),e.visitNode(t.right,r?S:T,e.isExpression)):e.visitEachChild(t,T,n)}(i,s);case 275:return function(t){if(t.variableDeclaration&&e.isBindingPattern(t.variableDeclaration.name)&&8192&t.variableDeclaration.name.transformFlags){var r=e.getGeneratedNameForNode(t.variableDeclaration.name),a=e.updateVariableDeclaration(t.variableDeclaration,t.variableDeclaration.name,void 0,r),i=e.flattenDestructuringBinding(a,T,n,1),s=e.visitNode(t.block,T,e.isBlock);return e.some(i)&&(s=e.updateBlock(s,o([e.createVariableStatement(void 0,i)],s.statements))),e.updateCatchClause(t,e.updateVariableDeclaration(t.variableDeclaration,r,void 0,void 0),s)}return e.visitEachChild(t,T,n)}(i);case 220:return function(t){if(e.hasModifier(t,1)){var r=h;h=!0;var a=e.visitEachChild(t,T,n);return h=r,a}return e.visitEachChild(t,T,n)}(i);case 238:return function(e){if(h){var n=h;h=!1;var t=D(e,!0);return h=n,t}return D(e,!1)}(i);case 228:return R(i,void 0);case 226:return function(n){return e.updateFor(n,e.visitNode(n.initializer,S,e.isForInitializer),e.visitNode(n.condition,T,e.isExpression),e.visitNode(n.incrementor,T,e.isExpression),e.visitNode(n.statement,T,e.isStatement))}(i);case 201:return function(t){return e.visitEachChild(t,S,n)}(i);case 158:return A(I,i);case 157:return A(N,i);case 159:return A(O,i);case 160:return A(k,i);case 240:return A(w,i);case 197:return A(P,i);case 198:return function(t){var r=g;g=e.getFunctionFlags(t);var a=e.updateArrowFunction(t,t.modifiers,void 0,e.visitParameterList(t.parameters,T,n),void 0,t.equalsGreaterThanToken,F(t));return g=r,a}(i);case 152:return function(t){return 8192&t.transformFlags?e.updateParameter(t,void 0,void 0,t.dotDotDotToken,e.getGeneratedNameForNode(t),void 0,void 0,e.visitNode(t.initializer,T,e.isExpression)):e.visitEachChild(t,T,n)}(i);case 222:return function(t){return e.visitEachChild(t,S,n)}(i);case 196:return function(t,r){return e.visitEachChild(t,r?S:T,n)}(i,s);case 190:return y&&e.isPropertyAccessExpression(i)&&99===i.expression.kind&&y.set(i.name.escapedText,!0),e.visitEachChild(i,T,n);case 191:return y&&99===i.expression.kind&&(v=!0),e.visitEachChild(i,T,n);case 241:case 210:return A(x,i);default:return e.visitEachChild(i,T,n)}}function D(t,r){return e.isBindingPattern(t.name)&&8192&t.name.transformFlags?e.flattenDestructuringBinding(t,T,n,1,void 0,r):e.visitEachChild(t,T,n)}function R(t,r){return 8192&t.initializer.transformFlags&&(t=function(n){var t=e.skipParentheses(n.initializer);if(e.isVariableDeclarationList(t)||e.isAssignmentPattern(t)){var r=void 0,a=void 0,i=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(t,i)];return e.isBlock(n.statement)?(e.addRange(o,n.statement.statements),r=n.statement,a=n.statement.statements):n.statement&&(e.append(o,n.statement),r=n.statement,a=n.statement),e.updateForOf(n,n.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i),n.initializer)],1),n.initializer),n.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),!0),r))}return n}(t)),t.awaitModifier?function(t,r){var i=e.visitNode(t.expression,T,e.isExpression),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),s=e.isIdentifier(i)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),c=e.createUniqueName("e"),d=e.getGeneratedNameForNode(c),u=e.createTempVariable(void 0),m=a(n,i,t.expression),p=e.createCall(e.createPropertyAccess(o,"next"),void 0,[]),f=e.createPropertyAccess(s,"done"),g=e.createPropertyAccess(s,"value"),_=e.createFunctionCall(u,o,[]);l(c),l(u);var y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,void 0,m),t.expression),e.createVariableDeclaration(s)]),t.expression),2097152),e.createComma(e.createAssignment(s,M(p)),e.createLogicalNot(f)),void 0,function(n,t){var r,a,i=e.createForOfBindingStatement(n.initializer,t),o=[e.visitNode(i,T,e.isStatement)],s=e.visitNode(n.statement,T,e.isStatement);return e.isBlock(s)?(e.addRange(o,s.statements),r=s,a=s.statements):o.push(s),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),!0),r),432)}(t,g)),t),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,r)]),e.createCatchClause(e.createVariableDeclaration(d),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(c,e.createObjectLiteral([e.createPropertyAssignment("error",d)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(f)),e.createAssignment(u,e.createPropertyAccess(o,"return"))),e.createExpressionStatement(M(_))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(c,e.createThrow(e.createPropertyAccess(c,"error"))),1)]),1))]))}(t,r):e.restoreEnclosingLabel(e.visitEachChild(t,T,n),r)}function M(t){return 1&g?e.createYield(void 0,r(n,t)):e.createAwait(t)}function I(t){var r=g;g=0;var a=e.updateConstructor(t,void 0,t.modifiers,e.visitParameterList(t.parameters,T,n),F(t));return g=r,a}function O(t){var r=g;g=0;var a=e.updateGetAccessor(t,void 0,t.modifiers,e.visitNode(t.name,T,e.isPropertyName),e.visitParameterList(t.parameters,T,n),void 0,F(t));return g=r,a}function k(t){var r=g;g=0;var a=e.updateSetAccessor(t,void 0,t.modifiers,e.visitNode(t.name,T,e.isPropertyName),e.visitParameterList(t.parameters,T,n),F(t));return g=r,a}function N(t){var r=g;g=e.getFunctionFlags(t);var a=e.updateMethod(t,void 0,1&g?e.visitNodes(t.modifiers,L,e.isModifier):t.modifiers,2&g?void 0:t.asteriskToken,e.visitNode(t.name,T,e.isPropertyName),e.visitNode(void 0,T,e.isToken),void 0,e.visitParameterList(t.parameters,T,n),void 0,2&g&&1&g?G(t):F(t));return g=r,a}function w(t){var r=g;g=e.getFunctionFlags(t);var a=e.updateFunctionDeclaration(t,void 0,1&g?e.visitNodes(t.modifiers,L,e.isModifier):t.modifiers,2&g?void 0:t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,T,n),void 0,2&g&&1&g?G(t):F(t));return g=r,a}function P(t){var r=g;g=e.getFunctionFlags(t);var a=e.updateFunctionExpression(t,1&g?e.visitNodes(t.modifiers,L,e.isModifier):t.modifiers,2&g?void 0:t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,T,n),void 0,2&g&&1&g?G(t):F(t));return g=r,a}function G(t){i();var r=[],a=e.addPrologue(r,t.body.statements,!1,T);V(r,t);var o=y,l=v;y=e.createUnderscoreEscapedMap(),v=!1;var d=e.createReturn(function(n,t,r){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncGeneratorHelper),(t.emitNode||(t.emitNode={})).flags|=262144,e.createCall(e.getUnscopedHelperName("__asyncGenerator"),void 0,[r?e.createThis():e.createVoidZero(),e.createIdentifier("arguments"),t])}(n,e.createFunctionExpression(void 0,e.createToken(40),t.name&&e.getGeneratedNameForNode(t.name),void 0,[],void 0,e.updateBlock(t.body,e.visitLexicalEnvironment(t.body.statements,T,n,a))),!_)),m=u>=2&&6144&c.getNodeCheckFlags(t);if(m){0==(1&f)&&(f|=1,n.enableSubstitution(192),n.enableSubstitution(190),n.enableSubstitution(191),n.enableEmitNotification(241),n.enableEmitNotification(157),n.enableEmitNotification(159),n.enableEmitNotification(160),n.enableEmitNotification(158),n.enableEmitNotification(220));var p=e.createSuperAccessVariableStatement(c,t,y);E[e.getNodeId(p)]=!0,e.insertStatementsAfterStandardPrologue(r,[p])}r.push(d),e.insertStatementsAfterStandardPrologue(r,s());var g=e.updateBlock(t.body,r);return m&&v&&(4096&c.getNodeCheckFlags(t)?e.addEmitHelper(g,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(t)&&e.addEmitHelper(g,e.asyncSuperHelper)),y=o,v=l,g}function F(n){i();var t=0,r=[],a=e.visitNode(n.body,T,e.isConciseBody);e.isBlock(a)&&(t=e.addPrologue(r,a.statements,!1,T)),e.addRange(r,V(void 0,n));var o=s();if(t>0||e.some(r)||e.some(o)){var l=e.convertToFunctionBody(a,!0);return e.insertStatementsAfterStandardPrologue(r,o),e.addRange(r,l.statements.slice(t)),e.updateBlock(l,e.setTextRange(e.createNodeArray(r),l.statements))}return a}function V(t,r){for(var a=0,i=r.parameters;a<i.length;a++){var o=i[a];if(8192&o.transformFlags){var s=e.getGeneratedNameForNode(o),l=e.flattenDestructuringBinding(o,T,n,1,s,!1,!0);if(e.some(l)){var c=e.createVariableStatement(void 0,e.createVariableDeclarationList(l));e.setEmitFlags(c,1048576),t=e.append(t,c)}}}return t}function B(n){return 99===n.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),n.name),n):n}function U(n){return 99===n.expression.kind?(t=n.argumentExpression,r=n,4096&b?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_superIndex"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createIdentifier("_superIndex"),void 0,[t]),r)):n;var t,r}},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || function () {\n                __assign = Object.assign || function(t) {\n                    for (var s, i = 1, n = arguments.length; i < n; i++) {\n                        s = arguments[i];\n                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                            t[p] = s[p];\n                    }\n                    return t;\n                };\n                return __assign.apply(this, arguments);\n            };"},e.createAssignHelper=t,e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,text:'\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var g = generator.apply(thisArg, _arguments || []), i, q = [];\n                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n                function fulfill(value) { resume("next", value); }\n                function reject(value) { resume("throw", value); }\n                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n            };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,text:'\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i, p;\n                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n            };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncValues) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator], i;\n                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n            };'}}(u||(u={})),function(e){e.transformES2019=function(n){return e.chainBundle(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,t,n)});function t(r){if(0==(8&r.transformFlags))return r;switch(r.kind){case 275:return function(r){return r.variableDeclaration?e.visitEachChild(r,t,n):e.updateCatchClause(r,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(r.block,t,e.isBlock))}(r);default:return e.visitEachChild(r,t,n)}}}}(u||(u={})),function(e){e.transformESNext=function(n){return e.chainBundle(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,t,n)});function t(r){return 0==(4&r.transformFlags)?r:(r.kind,e.visitEachChild(r,t,n))}}}(u||(u={})),function(e){e.transformJsx=function(t){var r,a=t.getCompilerOptions();return e.chainBundle(function(n){if(n.isDeclarationFile)return n;r=n;var a=e.visitEachChild(n,i,t);return e.addEmitHelpers(a,t.readEmitHelpers()),a});function i(n){return 2&n.transformFlags?function(n){switch(n.kind){case 261:return s(n,!1);case 262:return l(n,!1);case 265:return c(n,!1);case 271:return g(n);default:return e.visitEachChild(n,i,t)}}(n):n}function o(n){switch(n.kind){case 11:return function(n){var t=function(n){for(var t,r=0,a=-1,i=0;i<n.length;i++){var o=n.charCodeAt(i);e.isLineBreak(o)?(-1!==r&&-1!==a&&(t=p(t,n.substr(r,a-r+1))),r=-1):e.isWhiteSpaceSingleLine(o)||(a=i,-1===r&&(r=i))}return-1!==r?p(t,n.substr(r)):t}(n.text);return void 0===t?void 0:e.createLiteral(t)}(n);case 271:return g(n);case 261:return s(n,!0);case 262:return l(n,!0);case 265:return c(n,!0);default:return e.Debug.failBadSyntaxKind(n)}}function s(e,n){return d(e.openingElement,e.children,n,e)}function l(e,n){return d(e,void 0,n,e)}function c(n,i){return function(n,i,s,l){var c=e.createExpressionForJsxFragment(t.getEmitResolver().getJsxFactoryEntity(r),a.reactNamespace,e.mapDefined(i,o),n,l);return s&&e.startOnNewLine(c),c}(n.openingFragment,n.children,i,n)}function d(n,i,s,l){var c,d=function n(t){if(261===t.kind)return n(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?e.createLiteral(e.idText(r)):e.createExpressionFromEntityName(r)}(n),p=n.attributes.properties;if(0===p.length)c=e.createNull();else{var f=e.flatten(e.spanMap(p,e.isJsxSpreadAttribute,function(n,t){return t?e.map(n,u):e.createObjectLiteral(e.map(n,m))}));e.isJsxSpreadAttribute(p[0])&&f.unshift(e.createObjectLiteral()),(c=e.singleOrUndefined(f))||(c=e.createAssignHelper(t,f))}var g=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(r),a.reactNamespace,d,c,e.mapDefined(i,o),n,l);return s&&e.startOnNewLine(g),g}function u(n){return e.visitNode(n.expression,i,e.isExpression)}function m(n){var t=function(n){var t=n.name,r=e.idText(t);return/^[A-Za-z_]\w*$/.test(r)?t:e.createLiteral(r)}(n),a=function(n){if(void 0===n)return e.createTrue();if(10===n.kind){var t=e.createLiteral((a=n.text,((i=f(a))===a?void 0:i)||n.text));return t.singleQuote=void 0!==n.singleQuote?n.singleQuote:!e.isStringDoubleQuoted(n,r),e.setTextRange(t,n)}return 271===n.kind?void 0===n.expression?e.createTrue():g(n):e.Debug.failBadSyntaxKind(n);var a,i}(n.initializer);return e.createPropertyAssignment(t,a)}function p(e,n){var t=f(n);return void 0===e?t:e+" "+t}function f(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,r,a,i,o,s){if(i)return String.fromCharCode(parseInt(i,10));if(o)return String.fromCharCode(parseInt(o,16));var l=n.get(s);return l?String.fromCharCode(l):e})}function g(n){return e.visitNode(n.expression,i,e.isExpression)}};var n=e.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})}(u||(u={})),function(e){e.transformES2016=function(n){var t=n.hoistVariableDeclaration;return e.chainBundle(function(t){return t.isDeclarationFile?t:e.visitEachChild(t,r,n)});function r(a){if(0==(64&a.transformFlags))return a;switch(a.kind){case 205:return function(a){switch(a.operatorToken.kind){case 64:return function(n){var a,i,o=e.visitNode(n.left,r,e.isExpression),s=e.visitNode(n.right,r,e.isExpression);if(e.isElementAccessExpression(o)){var l=e.createTempVariable(t),c=e.createTempVariable(t);a=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(l,o.expression),o.expression),e.setTextRange(e.createAssignment(c,o.argumentExpression),o.argumentExpression)),o),i=e.setTextRange(e.createElementAccess(l,c),o)}else if(e.isPropertyAccessExpression(o)){var l=e.createTempVariable(t);a=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(l,o.expression),o.expression),o.name),o),i=e.setTextRange(e.createPropertyAccess(l,o.name),o)}else a=o,i=o;return e.setTextRange(e.createAssignment(a,e.createMathPow(i,s,n)),n)}(a);case 41:return function(n){var t=e.visitNode(n.left,r,e.isExpression),a=e.visitNode(n.right,r,e.isExpression);return e.createMathPow(t,a,n)}(a);default:return e.visitEachChild(a,r,n)}}(a);default:return e.visitEachChild(a,r,n)}}}}(u||(u={})),function(e){var n,t,r,a,i;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(n||(n={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(t||(t={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(r||(r={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.NewTarget=16384]="NewTarget",e[e.CapturedLexicalThis=32768]="CapturedLexicalThis",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes"}(i||(i={})),e.transformES2015=function(n){var t,r,a,i,s,l,c=n.startLexicalEnvironment,d=n.resumeLexicalEnvironment,u=n.endLexicalEnvironment,m=n.hoistVariableDeclaration,p=n.getCompilerOptions(),f=n.getEmitResolver(),g=n.onSubstituteNode,_=n.onEmitNode;return n.onEmitNode=function(n,t,r){if(1&l&&e.isFunctionLike(t)){var a=y(16286,8&e.getEmitFlags(t)?81:65);return _(n,t,r),void v(a,0,0)}_(n,t,r)},n.onSubstituteNode=function(n,t){return t=g(n,t),1===n?function(n){switch(n.kind){case 73:return function(n){if(2&l&&!e.isInternalName(n)){var t=f.getReferencedDeclarationWithCollidingName(n);if(t&&(!e.isClassLike(t)||!function(n,t){var r=e.getParseTreeNode(t);if(!r||r===n||r.end<=n.pos||r.pos>=n.end)return!1;for(var a=e.getEnclosingBlockScopeContainer(n);r;){if(r===a||r===n)return!1;if(e.isClassElement(r)&&r.parent===n)return!0;r=r.parent}return!1}(t,n)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 101:return function(n){return 1&l&&16&a?e.setTextRange(e.createFileLevelUniqueName("_this"),n):n}(n)}return n}(t):e.isIdentifier(t)?function(n){if(2&l&&!e.isInternalName(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 187:case 241:case 244:case 238:return e.parent.name===e&&f.isDeclarationWithCollidingName(e.parent)}return!1}(t))return e.setTextRange(e.getGeneratedNameForNode(t),n)}return n}(t):t},e.chainBundle(function(o){if(o.isDeclarationFile)return o;t=o,r=o.text;var s=function(n){var t=y(8064,64),r=[],a=[];c();var o=e.addStandardPrologue(r,n.statements,!1);return o=e.addCustomPrologue(r,n.statements,o,b),e.addRange(a,e.visitNodes(n.statements,b,e.isStatement,o)),i&&a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(i))),e.mergeLexicalEnvironment(r,u()),I(r,n),v(t,0,0),e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(e.concatenate(r,a)),n.statements))}(o);return e.addEmitHelpers(s,n.readEmitHelpers()),t=void 0,r=void 0,i=void 0,a=0,s});function y(e,n){var t=a;return a=16383&(a&~e|n),t}function v(e,n,t){a=-16384&(a&~n|t)|e}function h(e){return 0!=(8192&a)&&231===e.kind&&!e.expression}function b(r){return function(n){return 0!=(128&n.transformFlags)||void 0!==s||8192&a&&(e.isStatement(n)||219===n.kind)||e.isIterationStatement(n,!1)&&ae(n)||0!=(33554432&e.getEmitFlags(n))}(r)?function(r){switch(r.kind){case 117:return;case 241:return function(n){var t=e.createVariableDeclaration(e.getLocalName(n,!0),void 0,S(n));e.setOriginalNode(t,n);var r=[],a=e.createVariableStatement(void 0,e.createVariableDeclarationList([t]));if(e.setOriginalNode(a,n),e.setTextRange(a,n),e.startOnNewLine(a),r.push(a),e.hasModifier(n,1)){var i=e.hasModifier(n,512)?e.createExportDefault(e.getLocalName(n)):e.createExternalModuleExport(e.getLocalName(n));e.setOriginalNode(i,a),r.push(i)}var o=e.getEmitFlags(n);return 0==(4194304&o)&&(r.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(a,4194304|o)),e.singleOrMany(r)}(r);case 210:return function(e){return S(e)}(r);case 152:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 240:return function(t){var r=s;s=void 0;var i=y(16286,65),o=e.visitParameterList(t.parameters,b,n),l=V(t),c=16384&a?e.getLocalName(t):t.name;return v(i,49152,0),s=r,e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,b,e.isModifier),t.asteriskToken,c,void 0,o,void 0,l)}(r);case 198:return function(t){2048&t.transformFlags&&(a|=32768);var r=s;s=void 0;var i=y(15232,66),o=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,b,n),void 0,V(t));return e.setTextRange(o,t),e.setOriginalNode(o,t),e.setEmitFlags(o,8),32768&a&&De(),v(i,0,0),s=r,o}(r);case 197:return function(t){var r=262144&e.getEmitFlags(t)?y(16278,69):y(16286,65),i=s;s=void 0;var o=e.visitParameterList(t.parameters,b,n),l=V(t),c=16384&a?e.getLocalName(t):t.name;return v(r,49152,0),s=i,e.updateFunctionExpression(t,void 0,t.asteriskToken,c,void 0,o,void 0,l)}(r);case 238:return K(r);case 73:return function(n){return s?e.isGeneratedIdentifier(n)?n:"arguments"===n.escapedText&&f.isArgumentsLocalBinding(n)?s.argumentsName||(s.argumentsName=e.createUniqueName("arguments")):n:n}(r);case 239:return function(t){if(3&t.flags||65536&t.transformFlags){3&t.flags&&Ce();var r=e.flatMap(t.declarations,1&t.flags?H:K),a=e.createVariableDeclarationList(r);return e.setOriginalNode(a,t),e.setTextRange(a,t),e.setCommentRange(a,t),65536&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.declarations).name))&&e.setSourceMapRange(a,function(n){for(var t=-1,r=-1,a=0,i=n;a<i.length;a++){var o=i[a];t=-1===t?o.pos:-1===o.pos?t:Math.min(t,o.pos),r=Math.max(r,o.end)}return e.createRange(t,r)}(r)),a}return e.visitEachChild(t,b,n)}(r);case 233:return function(t){if(void 0!==s){var r=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var a=e.visitEachChild(t,b,n);return s.allowedNonLabeledJumps=r,a}return e.visitEachChild(t,b,n)}(r);case 247:return function(t){var r=y(7104,0),a=e.visitEachChild(t,b,n);return v(r,0,0),a}(r);case 219:return function(t,r){if(r)return e.visitEachChild(t,b,n);var i=256&a?y(7104,512):y(6976,128),o=e.visitEachChild(t,b,n);return v(i,0,0),o}(r,!1);case 230:case 229:return function(t){if(s){var r=230===t.kind?2:4,a=t.label&&s.labels&&s.labels.get(e.idText(t.label))||!t.label&&s.allowedNonLabeledJumps&r;if(!a){var i=void 0,o=t.label;o?230===t.kind?(i="break-"+o.escapedText,ue(s,!0,e.idText(o),i)):(i="continue-"+o.escapedText,ue(s,!1,e.idText(o),i)):230===t.kind?(s.nonLocalJumps|=2,i="break"):(s.nonLocalJumps|=4,i="continue");var l=e.createLiteral(i);if(s.loopOutParameters.length){for(var c=s.loopOutParameters,d=void 0,u=0;u<c.length;u++){var m=ce(c[u],1);d=0===u?m:e.createBinary(d,27,m)}l=e.createBinary(d,27,l)}return e.createReturn(l)}}return e.visitEachChild(t,b,n)}(r);case 234:return function(n){s&&!s.labels&&(s.labels=e.createMap());var t=e.unwrapInnermostStatementOfLabel(n,s&&j);return e.isIterationStatement(t,!1)?function(e,n){switch(e.kind){case 224:case 225:return z(e,n);case 226:return X(e,n);case 227:return J(e,n);case 228:return Y(e,n)}}(t,n):e.restoreEnclosingLabel(e.visitNode(t,b,e.isStatement,e.liftToBlock),n,s&&W)}(r);case 224:case 225:return z(r,void 0);case 226:return X(r,void 0);case 227:return J(r,void 0);case 228:return Y(r,void 0);case 222:return function(t){switch(t.expression.kind){case 196:return e.updateExpressionStatement(t,B(t.expression,!1));case 205:return e.updateExpressionStatement(t,U(t.expression,!1))}return e.visitEachChild(t,b,n)}(r);case 189:return function(t){for(var r=t.properties,i=r.length,o=i,s=i,l=0;l<i;l++){var c=r[l];if(131072&c.transformFlags&&4&a&&l<s&&(s=l),150===c.name.kind){o=l;break}}if(o!==i){s<o&&(o=s);var d=e.createTempVariable(m),u=[],p=e.createAssignment(d,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(r,b,e.isObjectLiteralElementLike,0,o),t.multiLine),65536));return t.multiLine&&e.startOnNewLine(p),u.push(p),function(n,t,r,a){for(var i=t.properties,o=i.length,s=a;s<o;s++){var l=i[s];switch(l.kind){case 159:case 160:var c=e.getAllAccessorDeclarations(t.properties,l);l===c.firstAccessor&&n.push(G(r,c,t,!!t.multiLine));break;case 157:n.push(_e(l,r,t,t.multiLine));break;case 276:n.push(fe(l,r,t.multiLine));break;case 277:n.push(ge(l,r,t.multiLine));break;default:e.Debug.failBadSyntaxKind(t)}}}(u,t,d,o),u.push(t.multiLine?e.startOnNewLine(e.getMutableClone(d)):d),e.inlineExpressions(u)}return e.visitEachChild(t,b,n)}(r);case 275:return function(t){var r,a,i,s,l=y(7104,0);if(e.Debug.assert(!!t.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(t.variableDeclaration.name)){var c=e.createTempVariable(void 0),d=e.createVariableDeclaration(c);e.setTextRange(d,t.variableDeclaration);var u=e.flattenDestructuringBinding(t.variableDeclaration,b,n,0,c),m=e.createVariableDeclarationList(u);e.setTextRange(m,t.variableDeclaration);var p=e.createVariableStatement(void 0,m);r=e.updateCatchClause(t,d,(a=t.block,i=p,s=e.visitNodes(a.statements,b,e.isStatement),e.updateBlock(a,o([i],s))))}else r=e.visitEachChild(t,b,n);return v(l,0,0),r}(r);case 277:return function(n){return e.setTextRange(e.createPropertyAssignment(n.name,e.getSynthesizedClone(n.name)),n)}(r);case 150:return function(t){return e.visitEachChild(t,b,n)}(r);case 188:return function(t){return e.some(t.elements,e.isSpreadElement)?ve(t.elements,!0,!!t.multiLine,!!t.elements.hasTrailingComma):e.visitEachChild(t,b,n)}(r);case 192:return function(n){if(33554432&e.getEmitFlags(n))return function(n){var t=e.cast(e.cast(e.skipOuterExpressions(n.expression),e.isArrowFunction).body,e.isBlock),r=function(n){return e.isVariableStatement(n)&&!!e.first(n.declarationList.declarations).initializer},a=e.visitNodes(t.statements,b,e.isStatement),i=e.filter(a,r),o=e.filter(a,function(e){return!r(e)}),s=e.cast(e.first(i),e.isVariableStatement).declarationList.declarations[0],l=e.skipOuterExpressions(s.initializer),c=e.tryCast(l,e.isAssignmentExpression),d=e.cast(c?e.skipOuterExpressions(c.right):l,e.isCallExpression),u=e.cast(e.skipOuterExpressions(d.expression),e.isFunctionExpression),m=u.body.statements,p=0,f=-1,g=[];if(c){var _=e.tryCast(m[p],e.isExpressionStatement);_&&(g.push(_),p++),g.push(m[p]),p++,g.push(e.createExpressionStatement(e.createAssignment(c.left,e.cast(s.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(m,f));)f--;return e.addRange(g,m,p,f),f<-1&&e.addRange(g,m,f+1),e.addRange(g,o),e.addRange(g,i,1),e.recreateOuterExpressions(n.expression,e.recreateOuterExpressions(s.initializer,e.recreateOuterExpressions(c&&c.right,e.updateCall(d,e.recreateOuterExpressions(d.expression,e.updateFunctionExpression(u,void 0,void 0,void 0,void 0,u.parameters,void 0,e.updateBlock(u.body,g))),void 0,d.arguments))))}(n);var t=e.skipOuterExpressions(n.expression);return 99===t.kind||e.isSuperProperty(t)||e.some(n.arguments,e.isSpreadElement)?ye(n,!0):e.updateCall(n,e.visitNode(n.expression,E,e.isExpression),void 0,e.visitNodes(n.arguments,b,e.isExpression))}(r);case 193:return function(t){if(e.some(t.arguments,e.isSpreadElement)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),m),a=r.target,i=r.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(a,b,e.isExpression),i,ve(e.createNodeArray(o([e.createVoidZero()],t.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(t,b,n)}(r);case 196:return B(r,!0);case 205:return U(r,!0);case 14:case 15:case 16:case 17:return function(n){return e.setTextRange(e.createLiteral(n.text),n)}(r);case 10:return function(n){return n.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(n.text),n):n}(r);case 8:return function(n){return 384&n.numericLiteralFlags?e.setTextRange(e.createNumericLiteral(n.text),n):n}(r);case 194:return function(r){var a=e.visitNode(r.tag,b,e.isExpression),o=[void 0],s=[],l=[],c=r.template;if(e.isNoSubstitutionTemplateLiteral(c))s.push(e.createLiteral(c.text)),l.push(Ae(c));else{s.push(e.createLiteral(c.head.text)),l.push(Ae(c.head));for(var d=0,u=c.templateSpans;d<u.length;d++){var m=u[d];s.push(e.createLiteral(m.literal.text)),l.push(Ae(m.literal)),o.push(e.visitNode(m.expression,b,e.isExpression))}}var p,f=function(n,t,r){return n.requestEmitHelper(e.templateObjectHelper),e.createCall(e.getUnscopedHelperName("__makeTemplateObject"),void 0,[t,r])}(n,e.createArrayLiteral(s),e.createArrayLiteral(l));if(e.isExternalModule(t)){var g=e.createUniqueName("templateObject");p=g,i=e.append(i,e.createVariableDeclaration(p)),o[0]=e.createLogicalOr(g,e.createAssignment(g,f))}else o[0]=f;return e.createCall(a,void 0,o)}(r);case 207:return function(n){var t=[];(function(n,t){(function(n){return e.Debug.assert(0!==n.templateSpans.length),0!==n.head.text.length||0===n.templateSpans[0].literal.text.length})(t)&&n.push(e.createLiteral(t.head.text))})(t,n),function(n,t){for(var r=0,a=t.templateSpans;r<a.length;r++){var i=a[r];n.push(e.visitNode(i.expression,b,e.isExpression)),0!==i.literal.text.length&&n.push(e.createLiteral(i.literal.text))}}(t,n);var r=e.reduceLeft(t,e.createAdd);return e.nodeIsSynthesized(r)&&(r.pos=n.pos,r.end=n.end),r}(r);case 208:return function(t){return e.visitEachChild(t,b,n)}(r);case 209:return function(n){return e.visitNode(n.expression,b,e.isExpression)}(r);case 99:return xe(!1);case 101:return function(n){return 2&a&&(a|=32768),s?2&a?(s.containsLexicalThis=!0,n):s.thisName||(s.thisName=e.createUniqueName("this")):n}(r);case 215:return function(n){return 96===n.keywordToken&&"target"===n.name.escapedText?(a|=16384,e.createFileLevelUniqueName("_newTarget")):n}(r);case 157:return function(n){e.Debug.assert(!e.isComputedPropertyName(n.name));var t=F(n,e.moveRangePos(n,-1),void 0,void 0);return e.setEmitFlags(t,512|e.getEmitFlags(t)),e.setTextRange(e.createPropertyAssignment(n.name,t),n)}(r);case 159:case 160:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=s;s=void 0;var a,i=y(16286,65),o=e.visitParameterList(t.parameters,b,n),l=V(t);return a=159===t.kind?e.updateGetAccessor(t,t.decorators,t.modifiers,t.name,o,t.type,l):e.updateSetAccessor(t,t.decorators,t.modifiers,t.name,o,l),v(i,49152,0),s=r,a}(r);case 220:return function(t){var r,a=y(0,e.hasModifier(t,1)?32:0);if(s&&0==(3&t.declarationList.flags)){for(var i=void 0,o=0,l=t.declarationList.declarations;o<l.length;o++){var c=l[o];if(oe(s,c),c.initializer){var d=void 0;e.isBindingPattern(c.name)?d=e.flattenDestructuringAssignment(c,b,n,0):(d=e.createBinary(c.name,60,e.visitNode(c.initializer,b,e.isExpression)),e.setTextRange(d,c)),i=e.append(i,d)}}r=i?e.setTextRange(e.createExpressionStatement(e.inlineExpressions(i)),t):void 0}else r=e.visitEachChild(t,b,n);return v(a,0,0),r}(r);case 231:return function(t){return s?(s.nonLocalJumps|=8,h(t)&&(t=T(t)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),t.expression?e.visitNode(t.expression,b,e.isExpression):e.createVoidZero())]))):h(t)?T(t):e.visitEachChild(t,b,n)}(r);default:return e.visitEachChild(r,b,n)}}(r):r}function E(e){return 99===e.kind?xe(!0):b(e)}function T(n){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),n)}function S(i){i.name&&Ce();var o=e.getClassExtendsHeritageElement(i),l=e.createFunctionExpression(void 0,void 0,void 0,void 0,o?[e.createParameter(void 0,void 0,void 0,e.createFileLevelUniqueName("_super"))]:[],void 0,function(i,o){var l=[];c(),function(t,r,a){a&&t.push(e.setTextRange(e.createExpressionStatement(function(n,t){return n.requestEmitHelper(e.extendsHelper),e.createCall(e.getUnscopedHelperName("__extends"),void 0,[t,e.createFileLevelUniqueName("_super")])}(n,e.getInternalName(r))),a))}(l,i,o),function(t,r,i){var o=s;s=void 0;var l=y(16278,73),c=e.getFirstConstructorWithBody(r),m=function(n,t){if(!n||!t)return!1;if(e.some(n.parameters))return!1;var r=e.firstOrUndefined(n.body.statements);if(!r||!e.nodeIsSynthesized(r)||222!==r.kind)return!1;var a=r.expression;if(!e.nodeIsSynthesized(a)||192!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||99!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||209!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(c,void 0!==i),p=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(r),void 0,function(t,r){return e.visitParameterList(t&&!r?t.parameters:void 0,b,n)||[]}(c,m),void 0,function(n,t,r,i){var o=!!r&&97!==e.skipOuterExpressions(r.expression).kind;if(!n)return function(n,t){var r=[];d(),e.mergeLexicalEnvironment(r,u()),t&&r.push(e.createReturn(A()));var a=e.createNodeArray(r);e.setTextRange(a,n.members);var i=e.createBlock(a,!0);return e.setTextRange(i,n),e.setEmitFlags(i,1536),i}(t,o);var s=[],l=[];d();var c,m=0;if(i||(m=e.addStandardPrologue(s,n.body.statements,!1)),C(l,n),M(l,n,i),i||(m=e.addCustomPrologue(l,n.body.statements,m,b)),i)c=A();else if(o&&m<n.body.statements.length){var p=n.body.statements[m];e.isExpressionStatement(p)&&e.isSuperCall(p.expression)&&(c=function(e){return ye(e,!1)}(p.expression))}if(c&&(a|=8192,m++),e.addRange(l,e.visitNodes(n.body.statements,b,e.isStatement,m)),e.mergeLexicalEnvironment(s,u()),k(s,n,!1),o)if(!c||m!==n.body.statements.length||2048&n.body.transformFlags)O(l,n,c||L()),function n(t){if(231===t.kind)return!0;if(223===t.kind){var r=t;if(r.elseStatement)return n(r.thenStatement)&&n(r.elseStatement)}else if(219===t.kind){var a=e.lastOrUndefined(t.statements);if(a&&n(a))return!0}return!1}(n.body)||l.push(e.createReturn(e.createFileLevelUniqueName("_this")));else{var f=e.cast(e.cast(c,e.isBinaryExpression).left,e.isCallExpression),g=e.createReturn(c);e.setCommentRange(g,e.getCommentRange(f)),e.setEmitFlags(f,1536),l.push(g)}else I(s,n);var _=e.createBlock(e.setTextRange(e.createNodeArray(e.concatenate(s,l)),n.body.statements),!0);return e.setTextRange(_,n.body),_}(c,r,i,m));e.setTextRange(p,c||r),i&&e.setEmitFlags(p,8),t.push(p),v(l,49152,0),s=o}(l,i,o),function(n,r){for(var a=0,i=r.members;a<i.length;a++){var o=i[a];switch(o.kind){case 218:n.push(N(o));break;case 157:n.push(w(Re(r,o),o,r));break;case 159:case 160:var s=e.getAllAccessorDeclarations(r.members,o);o===s.firstAccessor&&n.push(P(Re(r,o),s,r));break;case 158:break;default:e.Debug.failBadSyntaxKind(o,t&&t.fileName)}}}(l,i);var m=e.createTokenRange(e.skipTrivia(r,i.members.end),19),p=e.getInternalName(i),f=e.createPartiallyEmittedExpression(p);f.end=m.end,e.setEmitFlags(f,1536);var g=e.createReturn(f);g.pos=m.pos,e.setEmitFlags(g,1920),l.push(g),e.insertStatementsAfterStandardPrologue(l,u());var _=e.createBlock(e.setTextRange(e.createNodeArray(l),i.members),!0);return e.setEmitFlags(_,1536),_}(i,o));e.setEmitFlags(l,65536&e.getEmitFlags(i)|524288);var m=e.createPartiallyEmittedExpression(l);m.end=i.end,e.setEmitFlags(m,1536);var p=e.createPartiallyEmittedExpression(m);p.end=e.skipTrivia(r,i.pos),e.setEmitFlags(p,1536);var f=e.createParen(e.createCall(p,void 0,o?[e.visitNode(o.expression,b,e.isExpression)]:[]));return e.addSyntheticLeadingComment(f,3,"* @class "),f}function L(){return e.setEmitFlags(e.createThis(),4)}function A(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),L(),e.createIdentifier("arguments"))),L())}function x(n){return void 0!==n.initializer||e.isBindingPattern(n.name)}function C(n,t){if(!e.some(t.parameters,x))return!1;for(var r=!1,a=0,i=t.parameters;a<i.length;a++){var o=i[a],s=o.name,l=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?r=D(n,o,s,l)||r:l&&(R(n,o,s,l),r=!0))}return r}function D(t,r,a,i){return a.elements.length>0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,b,n,0,e.getGeneratedNameForNode(r)))),1048576)),!0):!!i&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(r),e.visitNode(i,b,e.isExpression))),1048576)),!0)}function R(n,t,r,a){a=e.visitNode(a,b,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(a,1584|e.getEmitFlags(a))),t),1536))]),t),1953));e.startOnNewLine(i),e.setTextRange(i,t),e.setEmitFlags(i,1050528),e.insertStatementAfterCustomPrologue(n,i)}function M(t,r,a){var i=[],o=e.lastOrUndefined(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(o,a))return!1;var s=73===o.name.kind?e.getMutableClone(o.name):e.createTempVariable(void 0);e.setEmitFlags(s,48);var l=73===o.name.kind?e.getSynthesizedClone(o.name):s,c=r.parameters.length-1,d=e.createLoopVariable();i.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(s,void 0,e.createArrayLiteral([]))])),o),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(d,void 0,e.createLiteral(c))]),o),e.setTextRange(e.createLessThan(d,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),o),e.setTextRange(e.createPostfixIncrement(d),o),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(l,0===c?d:e.createSubtract(d,e.createLiteral(c))),e.createElementAccess(e.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(u,1048576),e.startOnNewLine(u),i.push(u),73!==o.name.kind&&i.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(o,b,n,0,l))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,i),!0}function I(n,t){return!!(32768&a&&198!==t.kind)&&(O(n,t,e.createThis()),!0)}function O(n,t,r){De();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,r)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,t),e.insertStatementAfterCustomPrologue(n,a)}function k(n,t,r){if(16384&a){var i=void 0;switch(t.kind){case 198:return n;case 157:case 159:case 160:i=e.createVoidZero();break;case 158:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 240:case 197:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),95,e.getLocalName(t))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,i)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function N(n){return e.setTextRange(e.createEmptyStatement(),n)}function w(n,t,r){var a=e.getCommentRange(t),i=e.getSourceMapRange(t),o=e.createMemberAccessForPropertyName(n,e.visitNode(t.name,b,e.isPropertyName),t.name),s=F(t,t,void 0,r);e.setEmitFlags(s,1536),e.setSourceMapRange(s,i);var l=e.setTextRange(e.createExpressionStatement(e.createAssignment(o,s)),t);return e.setOriginalNode(l,t),e.setCommentRange(l,a),e.setEmitFlags(l,48),l}function P(n,t,r){var a=e.createExpressionStatement(G(n,t,r,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(t.firstAccessor)),a}function G(n,t,r,a){var i=t.firstAccessor,o=t.getAccessor,s=t.setAccessor,l=e.getMutableClone(n);e.setEmitFlags(l,1568),e.setSourceMapRange(l,i.name);var c=e.createExpressionForPropertyName(e.visitNode(i.name,b,e.isPropertyName));e.setEmitFlags(c,1552),e.setSourceMapRange(c,i.name);var d=[];if(o){var u=F(o,void 0,void 0,r);e.setSourceMapRange(u,e.getSourceMapRange(o)),e.setEmitFlags(u,512);var m=e.createPropertyAssignment("get",u);e.setCommentRange(m,e.getCommentRange(o)),d.push(m)}if(s){var p=F(s,void 0,void 0,r);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("set",p);e.setCommentRange(f,e.getCommentRange(s)),d.push(f)}d.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var g=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[l,c,e.createObjectLiteral(d,!0)]);return a&&e.startOnNewLine(g),g}function F(t,r,i,o){var l=s;s=void 0;var c=o&&e.isClassLike(o)&&!e.hasModifier(t,32)?y(16286,73):y(16286,65),d=e.visitParameterList(t.parameters,b,n),u=V(t);return 16384&a&&!i&&(240===t.kind||197===t.kind)&&(i=e.getGeneratedNameForNode(t)),v(c,49152,0),s=l,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,t.asteriskToken,i,void 0,d,void 0,u),r),t)}function V(n){var r,a,i,o=!1,s=!1,l=[],c=[],m=n.body;if(d(),e.isBlock(m)&&(i=e.addStandardPrologue(l,m.statements,!1)),o=C(c,n)||o,o=M(c,n,!1)||o,e.isBlock(m))i=e.addCustomPrologue(c,m.statements,i,b),r=m.statements,e.addRange(c,e.visitNodes(m.statements,b,e.isStatement,i)),!o&&m.multiLine&&(o=!0);else{e.Debug.assert(198===n.kind),r=e.moveRangeEnd(m,-1);var p=n.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(m)||(e.rangeEndIsOnSameLineAsRangeStart(p,m,t)?s=!0:o=!0);var f=e.visitNode(m,b,e.isExpression),g=e.createReturn(f);e.setTextRange(g,m),e.moveSyntheticComments(g,m),e.setEmitFlags(g,1440),c.push(g),a=m}if(e.mergeLexicalEnvironment(l,u()),k(l,n,!1),I(l,n),e.some(l)&&(o=!0),c.unshift.apply(c,l),e.isBlock(m)&&e.arrayIsEqualTo(c,m.statements))return m;var _=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(_,n.body),!o&&s&&e.setEmitFlags(_,1),a&&e.setTokenSourceMapRange(_,19,a),e.setOriginalNode(_,n.body),_}function B(t,r){if(!r)switch(t.expression.kind){case 196:return e.updateParen(t,B(t.expression,!1));case 205:return e.updateParen(t,U(t.expression,!1))}return e.visitEachChild(t,b,n)}function U(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,b,n,0,r):e.visitEachChild(t,b,n)}function H(t){var r=t.name;if(e.isBindingPattern(r))return K(t);if(!t.initializer&&function(e){var n=f.getNodeCheckFlags(e),t=262144&n,r=524288&n;return!(0!=(64&a)||t&&r&&0!=(512&a))&&0==(4096&a)&&(!f.isDeclarationWithCollidingName(e)||r&&!t&&0==(6144&a))}(t)){var i=e.getMutableClone(t);return i.initializer=e.createVoidZero(),i}return e.visitEachChild(t,b,n)}function K(t){var r,a=y(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,b,n,0,void 0,0!=(32&a)):e.visitEachChild(t,b,n),v(a,0,0),r}function j(n){s.labels.set(e.idText(n.label),!0)}function W(n){s.labels.set(e.idText(n.label),!1)}function q(t,r,i,o,l){var d=y(t,r),m=function(t,r,i,o){if(!ae(t)){var l=void 0;s&&(l=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var d=o?o(t,r,void 0,i):e.restoreEnclosingLabel(e.visitEachChild(t,b,n),r,s&&W);return s&&(s.allowedNonLabeledJumps=l),d}var m=function(n){var t;switch(n.kind){case 226:case 227:case 228:var r=n.initializer;r&&239===r.kind&&(t=r)}var a=[],i=[];if(t&&3&e.getCombinedNodeFlags(t))for(var o=te(n),l=0,c=t.declarations;l<c.length;l++){var d=c[l];pe(n,d,a,i,o)}var u={loopParameters:a,loopOutParameters:i};return s&&(s.argumentsName&&(u.argumentsName=s.argumentsName),s.thisName&&(u.thisName=s.thisName),s.hoistedLocalVariables&&(u.hoistedLocalVariables=s.hoistedLocalVariables)),u}(t),p=[],f=s;s=m;var g,_,y,v,h,E=te(t)?function(n,t){var r=e.createUniqueName("_loop_init"),i=0!=(131072&n.initializer.transformFlags),o=0;t.containsLexicalThis&&(o|=8),i&&4&a&&(o|=262144);var s=[];s.push(e.createVariableStatement(void 0,n.initializer)),de(t.loopOutParameters,2,1,s);var l=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,i?e.createToken(40):void 0,void 0,void 0,void 0,void 0,e.visitNode(e.createBlock(s,!0),b,e.isBlock)),o))]),2097152)),c=e.createVariableDeclarationList(e.map(t.loopOutParameters,le));return{functionName:r,containsYield:i,functionDeclaration:l,part:c}}(t,m):void 0,T=ie(t)?function(n,t,r){var i=e.createUniqueName("_loop");c();var o=e.visitNode(n.statement,b,e.isStatement,e.liftToBlock),s=u(),l=[];(re(n)||function(n){return e.isForStatement(n)&&!!n.incrementor&&ne(n.incrementor)}(n))&&(t.conditionVariable=e.createUniqueName("inc"),l.push(e.createIf(t.conditionVariable,e.createStatement(e.visitNode(n.incrementor,b,e.isExpression)),e.createStatement(e.createAssignment(t.conditionVariable,e.createTrue())))),re(n)&&l.push(e.createIf(e.createPrefix(52,e.visitNode(n.condition,b,e.isExpression)),e.visitNode(e.createBreak(),b,e.isStatement)))),e.isBlock(o)?e.addRange(l,o.statements):l.push(o),de(t.loopOutParameters,1,1,l),e.insertStatementsAfterStandardPrologue(l,s);var d=e.createBlock(l,!0);e.isBlock(o)&&e.setOriginalNode(d,o);var m=0!=(131072&n.statement.transformFlags),p=0;t.containsLexicalThis&&(p|=8),m&&0!=(4&a)&&(p|=262144);var f=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,m?e.createToken(40):void 0,void 0,void 0,t.loopParameters,void 0,d),p))]),2097152)),g=function(n,t,r,a){var i=[],o=!(-5&t.nonLocalJumps||t.labeledNonLocalBreaks||t.labeledNonLocalContinues),s=e.createCall(n,void 0,e.map(t.loopParameters,function(e){return e.name})),l=a?e.createYield(e.createToken(40),e.setEmitFlags(s,8388608)):s;if(o)i.push(e.createExpressionStatement(l)),de(t.loopOutParameters,1,0,i);else{var c=e.createUniqueName("state"),d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,l)]));if(i.push(d),de(t.loopOutParameters,1,0,i),8&t.nonLocalJumps){var u=void 0;r?(r.nonLocalJumps|=8,u=e.createReturn(c)):u=e.createReturn(e.createPropertyAccess(c,"value")),i.push(e.createIf(e.createBinary(e.createTypeOf(c),35,e.createLiteral("object")),u))}if(2&t.nonLocalJumps&&i.push(e.createIf(e.createBinary(c,35,e.createLiteral("break")),e.createBreak())),t.labeledNonLocalBreaks||t.labeledNonLocalContinues){var m=[];me(t.labeledNonLocalBreaks,!0,c,r,m),me(t.labeledNonLocalContinues,!1,c,r,m),i.push(e.createSwitch(c,e.createCaseBlock(m)))}}return i}(i,t,r,m);return{functionName:i,containsYield:m,functionDeclaration:f,part:g}}(t,m,f):void 0;if(s=f,E&&p.push(E.functionDeclaration),T&&p.push(T.functionDeclaration),function(n,t,r){var a;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(a||(a=[])).push(e.createVariableDeclaration(t.argumentsName,void 0,e.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(a||(a=[])).push(e.createVariableDeclaration(t.thisName,void 0,e.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{a||(a=[]);for(var i=0,o=t.hoistedLocalVariables;i<o.length;i++){var s=o[i];a.push(e.createVariableDeclaration(s))}}if(t.loopOutParameters.length){a||(a=[]);for(var l=0,c=t.loopOutParameters;l<c.length;l++){var d=c[l];a.push(e.createVariableDeclaration(d.outParamName))}}t.conditionVariable&&(a||(a=[]),a.push(e.createVariableDeclaration(t.conditionVariable,void 0,e.createFalse()))),a&&n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a)))}(p,m,f),E&&p.push((_=E.functionName,y=E.containsYield,v=e.createCall(_,void 0,[]),h=y?e.createYield(e.createToken(40),e.setEmitFlags(v,8388608)):v,e.createStatement(h))),T)if(o)g=o(t,r,T.part,i);else{var S=se(t,E,e.createBlock(T.part,!0));e.aggregateTransformFlags(S),g=e.restoreEnclosingLabel(S,r,s&&W)}else{var L=se(t,E,e.visitNode(t.statement,b,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(L),g=e.restoreEnclosingLabel(L,r,s&&W)}return p.push(g),p}(i,o,d,l);return v(d,0,0),m}function z(e,n){return q(0,1280,e,n)}function X(e,n){return q(5056,3328,e,n)}function J(e,n){return q(3008,5376,e,n)}function Y(e,n){return q(3008,5376,e,n,p.downlevelIteration?ee:$)}function Q(t,r,a){var i=[],o=t.initializer;if(e.isVariableDeclarationList(o)){3&t.initializer.flags&&Ce();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var l=e.flattenDestructuringBinding(s,b,n,0,r),c=e.setTextRange(e.createVariableDeclarationList(l),t.initializer);e.setOriginalNode(c,t.initializer),e.setSourceMapRange(c,e.createRange(l[0].pos,e.last(l).end)),i.push(e.createVariableStatement(void 0,c))}else i.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(s?s.name:e.createTempVariable(void 0),void 0,r)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=e.createAssignment(o,r);e.isDestructuringAssignment(d)?(e.aggregateTransformFlags(d),i.push(e.createExpressionStatement(U(d,!1)))):(d.end=o.end,i.push(e.setTextRange(e.createExpressionStatement(e.visitNode(d,b,e.isExpression)),e.moveRangeEnd(o,-1))))}if(a)return Z(e.addRange(i,a));var u=e.visitNode(t.statement,b,e.isStatement,e.liftToBlock);return e.isBlock(u)?e.updateBlock(u,e.setTextRange(e.createNodeArray(e.concatenate(i,u.statements)),u.statements)):(i.push(u),Z(i))}function Z(n){return e.setEmitFlags(e.createBlock(e.createNodeArray(n),!0),432)}function $(n,t,r){var a=e.visitNode(n.expression,b,e.isExpression),i=e.createLoopVariable(),o=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0);e.setEmitFlags(a,48|e.getEmitFlags(a));var l=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i,void 0,e.createLiteral(0)),e.moveRangePos(n.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,void 0,a),n.expression)]),n.expression),2097152),e.setTextRange(e.createLessThan(i,e.createPropertyAccess(o,"length")),n.expression),e.setTextRange(e.createPostfixIncrement(i),n.expression),Q(n,e.createElementAccess(o,i),r)),n);return e.setEmitFlags(l,256),e.setTextRange(l,n),e.restoreEnclosingLabel(l,t,s&&W)}function ee(t,r,a,i){var o=e.visitNode(t.expression,b,e.isExpression),l=e.isIdentifier(o)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),c=e.isIdentifier(o)?e.getGeneratedNameForNode(l):e.createTempVariable(void 0),d=e.createUniqueName("e"),u=e.getGeneratedNameForNode(d),p=e.createTempVariable(void 0),f=e.createValuesHelper(n,o,t.expression),g=e.createCall(e.createPropertyAccess(l,"next"),void 0,[]);m(d),m(p);var _=1024&i?e.inlineExpressions([e.createAssignment(d,e.createVoidZero()),f]):f,y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(l,void 0,_),t.expression),e.createVariableDeclaration(c,void 0,g)]),t.expression),2097152),e.createLogicalNot(e.createPropertyAccess(c,"done")),e.createAssignment(c,g),Q(t,e.createPropertyAccess(c,"value"),a)),t),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,r,s&&W)]),e.createCatchClause(e.createVariableDeclaration(u),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(d,e.createObjectLiteral([e.createPropertyAssignment("error",u)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(c,e.createLogicalNot(e.createPropertyAccess(c,"done"))),e.createAssignment(p,e.createPropertyAccess(l,"return"))),e.createExpressionStatement(e.createFunctionCall(p,l,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(d,e.createThrow(e.createPropertyAccess(d,"error"))),1)]),1))]))}function ne(e){return 0!=(131072&f.getNodeCheckFlags(e))}function te(n){return e.isForStatement(n)&&!!n.initializer&&ne(n.initializer)}function re(n){return e.isForStatement(n)&&!!n.condition&&ne(n.condition)}function ae(e){return ie(e)||te(e)}function ie(e){return 0!=(65536&f.getNodeCheckFlags(e))}function oe(n,t){n.hoistedLocalVariables||(n.hoistedLocalVariables=[]),function t(r){if(73===r.kind)n.hoistedLocalVariables.push(r);else for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||t(o.name)}}(t.name)}function se(n,t,r){switch(n.kind){case 226:return function(n,t,r){var a=n.condition&&ne(n.condition),i=a||n.incrementor&&ne(n.incrementor);return e.updateFor(n,e.visitNode(t?t.part:n.initializer,b,e.isForInitializer),e.visitNode(a?void 0:n.condition,b,e.isExpression),e.visitNode(i?void 0:n.incrementor,b,e.isExpression),r)}(n,t,r);case 227:return function(n,t){return e.updateForIn(n,e.visitNode(n.initializer,b,e.isForInitializer),e.visitNode(n.expression,b,e.isExpression),t)}(n,r);case 228:return function(n,t){return e.updateForOf(n,void 0,e.visitNode(n.initializer,b,e.isForInitializer),e.visitNode(n.expression,b,e.isExpression),t)}(n,r);case 224:return function(n,t){return e.updateDo(n,t,e.visitNode(n.expression,b,e.isExpression))}(n,r);case 225:return function(n,t){return e.updateWhile(n,e.visitNode(n.expression,b,e.isExpression),t)}(n,r);default:return e.Debug.failBadSyntaxKind(n,"IterationStatement expected")}}function le(n){return e.createVariableDeclaration(n.originalName,void 0,n.outParamName)}function ce(n,t){var r=0===t?n.outParamName:n.originalName,a=0===t?n.originalName:n.outParamName;return e.createBinary(a,60,r)}function de(n,t,r,a){for(var i=0,o=n;i<o.length;i++){var s=o[i];s.flags&t&&a.push(e.createExpressionStatement(ce(s,r)))}}function ue(n,t,r,a){t?(n.labeledNonLocalBreaks||(n.labeledNonLocalBreaks=e.createMap()),n.labeledNonLocalBreaks.set(r,a)):(n.labeledNonLocalContinues||(n.labeledNonLocalContinues=e.createMap()),n.labeledNonLocalContinues.set(r,a))}function me(n,t,r,a,i){n&&n.forEach(function(n,o){var s=[];if(!a||a.labels&&a.labels.get(o)){var l=e.createIdentifier(o);s.push(t?e.createBreak(l):e.createContinue(l))}else ue(a,t,o,n),s.push(e.createReturn(r));i.push(e.createCaseClause(e.createLiteral(n),s))})}function pe(n,t,r,a,i){var o=t.name;if(e.isBindingPattern(o))for(var s=0,l=o.elements;s<l.length;s++){var c=l[s];e.isOmittedExpression(c)||pe(n,c,r,a,i)}else{r.push(e.createParameter(void 0,void 0,void 0,o));var d=f.getNodeCheckFlags(t);if(4194304&d||i){var u=e.createUniqueName("out_"+e.idText(o)),m=0;4194304&d&&(m|=1),e.isForStatement(n)&&n.initializer&&f.isBindingCapturedByNode(n.initializer,t)&&(m|=2),a.push({flags:m,originalName:o,outParamName:u})}}}function fe(n,t,r){var a=e.createAssignment(e.createMemberAccessForPropertyName(t,e.visitNode(n.name,b,e.isPropertyName)),e.visitNode(n.initializer,b,e.isExpression));return e.setTextRange(a,n),r&&e.startOnNewLine(a),a}function ge(n,t,r){var a=e.createAssignment(e.createMemberAccessForPropertyName(t,e.visitNode(n.name,b,e.isPropertyName)),e.getSynthesizedClone(n.name));return e.setTextRange(a,n),r&&e.startOnNewLine(a),a}function _e(n,t,r,a){var i=e.createAssignment(e.createMemberAccessForPropertyName(t,e.visitNode(n.name,b,e.isPropertyName)),F(n,n,void 0,r));return e.setTextRange(i,n),a&&e.startOnNewLine(i),i}function ye(t,r){if(4096&t.transformFlags||99===t.expression.kind||e.isSuperProperty(e.skipOuterExpressions(t.expression))){var a=e.createCallBinding(t.expression,m),i=a.target,o=a.thisArg;99===t.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=4096&t.transformFlags?e.createFunctionApply(e.visitNode(i,E,e.isExpression),99===t.expression.kind?o:e.visitNode(o,b,e.isExpression),ve(t.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(i,E,e.isExpression),99===t.expression.kind?o:e.visitNode(o,b,e.isExpression),e.visitNodes(t.arguments,b,e.isExpression),t),99===t.expression.kind){var l=e.createLogicalOr(s,L());s=r?e.createAssignment(e.createFileLevelUniqueName("_this"),l):l}return e.setOriginalNode(s,t)}return e.visitEachChild(t,b,n)}function ve(t,r,a,i){var o,s=t.length,l=e.flatten(e.spanMap(t,Ee,function(e,n,t,r){return n(e,a,i&&r===s)}));if(p.downlevelIteration)return 1===l.length&&be(c=l[0],"___spread")?l[0]:e.createSpreadHelper(n,l);if(1===l.length){var c=l[0];if(!r||(o=c,e.isArrayLiteralExpression(o)&&e.every(o.elements,he))||be(c,"___spreadArrays"))return l[0]}return e.createSpreadArraysHelper(n,l)}function he(n){return!e.isOmittedExpression(n)}function be(n,t){return e.isCallExpression(n)&&e.isIdentifier(n.expression)&&4096&e.getEmitFlags(n.expression)&&n.expression.escapedText===t}function Ee(n){return e.isSpreadElement(n)?Te:Se}function Te(n){return e.map(n,Le)}function Se(n,t,r){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(n,r),b,e.isExpression),t)}function Le(n){return e.visitNode(n.expression,b,e.isExpression)}function Ae(n){var r=n.rawText;if(void 0===r){r=e.getSourceTextOfNodeFromSourceFile(t,n);var a=14===n.kind||17===n.kind;r=r.substring(1,r.length-(a?1:2))}return r=r.replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(r),n)}function xe(n){return 8&a&&!n?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function Ce(){0==(2&l)&&(l|=2,n.enableSubstitution(73))}function De(){0==(1&l)&&(l|=1,n.enableSubstitution(101),n.enableEmitNotification(158),n.enableEmitNotification(157),n.enableEmitNotification(159),n.enableEmitNotification(160),n.enableEmitNotification(198),n.enableEmitNotification(197),n.enableEmitNotification(240))}function Re(n,t){return e.hasModifier(t,32)?e.getInternalName(n):e.createPropertyAccess(e.getInternalName(n),"prototype")}},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:"\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = function (d, b) {\n                    extendStatics = Object.setPrototypeOf ||\n                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                        function (d, b) { for (var p in b) if (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            })();"},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n                return cooked;\n            };'}}(u||(u={})),function(e){e.transformES5=function(n){var t,r,a=n.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(t=n.onEmitNode,n.onEmitNode=function(n,a,i){switch(a.kind){case 263:case 264:case 262:var o=a.tagName;r[e.getOriginalNodeId(o)]=!0}t(n,a,i)},n.enableEmitNotification(263),n.enableEmitNotification(264),n.enableEmitNotification(262),r=[]);var i=n.onSubstituteNode;return n.onSubstituteNode=function(n,t){return t.id&&r&&r[t.id]?i(n,t):(t=i(n,t),e.isPropertyAccessExpression(t)?function(n){var t=o(n.name);return t?e.setTextRange(e.createElementAccess(n.expression,t),n):n}(t):e.isPropertyAssignment(t)?function(n){var t=e.isIdentifier(n.name)&&o(n.name);return t?e.updatePropertyAssignment(n,t,n.initializer):n}(t):t)},n.enableSubstitution(190),n.enableSubstitution(276),e.chainBundle(function(e){return e});function o(n){var t=n.originalKeywordKind||(e.nodeIsSynthesized(n)?e.stringToToken(e.idText(n)):void 0);if(void 0!==t&&t>=74&&t<=109)return e.setTextRange(e.createLiteral(n),n)}}}(u||(u={})),function(e){var n,t,r,a,i;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(n||(n={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(t||(t={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(i||(i={})),e.transformGenerators=function(n){var t,r,a,i,s,l,c,d,u,m,p=n.resumeLexicalEnvironment,f=n.endLexicalEnvironment,g=n.hoistFunctionDeclaration,_=n.hoistVariableDeclaration,y=n.getCompilerOptions(),v=e.getEmitScriptTarget(y),h=n.getEmitResolver(),b=n.onSubstituteNode;n.onSubstituteNode=function(n,a){return a=b(n,a),1===n?function(n){return e.isIdentifier(n)?function(n){if(!e.isGeneratedIdentifier(n)&&t&&t.has(e.idText(n))){var a=e.getOriginalNode(n);if(e.isIdentifier(a)&&a.parent){var i=h.getReferencedValueDeclaration(a);if(i){var o=r[e.getOriginalNodeId(i)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n):n}(a):a};var E,T,S,L,A,x,C,D,R,M,I,O,k=1,N=0,w=0;return e.chainBundle(function(t){if(t.isDeclarationFile||0==(256&t.transformFlags))return t;var r=e.visitEachChild(t,P,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r});function P(t){var r=t.transformFlags;return i?function(t){switch(t.kind){case 224:case 225:return function(t){return i?(re(),t=e.visitEachChild(t,P,n),ie(),t):e.visitEachChild(t,P,n)}(t);case 233:return function(t){return i&&$({kind:2,isScript:!0,breakLabel:-1}),t=e.visitEachChild(t,P,n),i&&oe(),t}(t);case 234:return function(t){return i&&$({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1}),t=e.visitEachChild(t,P,n),i&&se(),t}(t);default:return G(t)}}(t):a?G(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(n){switch(n.kind){case 240:return F(n);case 197:return V(n);default:return e.Debug.failBadSyntaxKind(n)}}(t):256&r?e.visitEachChild(t,P,n):t}function G(t){switch(t.kind){case 240:return F(t);case 197:return V(t);case 159:case 160:return function(t){var r=a,o=i;return a=!1,i=!1,t=e.visitEachChild(t,P,n),a=r,i=o,t}(t);case 220:return function(n){if(131072&n.transformFlags)W(n.declarationList);else{if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t<r.length;t++){var a=r[t];_(a.name)}var i=e.getInitializedVariables(n.declarationList);if(0!==i.length)return e.setSourceMapRange(e.createExpressionStatement(e.inlineExpressions(e.map(i,q))),n)}}(t);case 226:return function(t){i&&re();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];_(s.name)}var l=e.getInitializedVariables(r);t=e.updateFor(t,l.length>0?e.inlineExpressions(e.map(l,q)):void 0,e.visitNode(t.condition,P,e.isExpression),e.visitNode(t.incrementor,P,e.isExpression),e.visitNode(t.statement,P,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,P,n);return i&&ie(),t}(t);case 227:return function(t){i&&re();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];_(s.name)}t=e.updateForIn(t,r.declarations[0].name,e.visitNode(t.expression,P,e.isExpression),e.visitNode(t.statement,P,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,P,n);return i&&ie(),t}(t);case 230:return function(t){if(i){var r=me(t.label&&e.idText(t.label));if(r>0)return _e(r,t)}return e.visitEachChild(t,P,n)}(t);case 229:return function(t){if(i){var r=pe(t.label&&e.idText(t.label));if(r>0)return _e(r,t)}return e.visitEachChild(t,P,n)}(t);case 231:return function(n){return t=e.visitNode(n.expression,P,e.isExpression),r=n,e.setTextRange(e.createReturn(e.createArrayLiteral(t?[ge(2),t]:[ge(2)])),r);var t,r}(t);default:return 131072&t.transformFlags?function(t){switch(t.kind){case 205:return function(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return function(t){if(z(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return function(n){var t=Q(),r=Y();return he(r,e.visitNode(n.left,P,e.isExpression),n.left),54===n.operatorToken.kind?Te(t,r,n.left):Ee(t,r,n.left),he(r,e.visitNode(n.right,P,e.isExpression),n.right),Z(t),r}(t);if(27===t.operatorToken.kind)return function(n){var t=[];return r(n.left),r(n.right),e.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&27===n.operatorToken.kind?(r(n.left),r(n.right)):(z(n)&&t.length>0&&(Se(1,[e.createExpressionStatement(e.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,P,e.isExpression)))}}(t);var r=e.getMutableClone(t);return r.left=J(e.visitNode(t.left,P,e.isExpression)),r.right=e.visitNode(t.right,P,e.isExpression),r}return e.visitEachChild(t,P,n)}(t);case 1:return function(t){var r,a=t.left,i=t.right;if(z(i)){var o=void 0;switch(a.kind){case 190:o=e.updatePropertyAccess(a,J(e.visitNode(a.expression,P,e.isLeftHandSideExpression)),a.name);break;case 191:o=e.updateElementAccess(a,J(e.visitNode(a.expression,P,e.isLeftHandSideExpression)),J(e.visitNode(a.argumentExpression,P,e.isExpression)));break;default:o=e.visitNode(a,P,e.isExpression)}var s=t.operatorToken.kind;return(r=s)>=61&&r<=72?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(J(o),function(e){switch(e){case 61:return 38;case 62:return 39;case 63:return 40;case 64:return 41;case 65:return 42;case 66:return 43;case 67:return 46;case 68:return 47;case 69:return 48;case 70:return 49;case 71:return 50;case 72:return 51}}(s),e.visitNode(i,P,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,P,e.isExpression))}return e.visitEachChild(t,P,n)}(t);default:return e.Debug.assertNever(r)}}(t);case 206:return function(t){if(z(t.whenTrue)||z(t.whenFalse)){var r=Q(),a=Q(),i=Y();return Te(r,e.visitNode(t.condition,P,e.isExpression),t.condition),he(i,e.visitNode(t.whenTrue,P,e.isExpression),t.whenTrue),be(a),Z(r),he(i,e.visitNode(t.whenFalse,P,e.isExpression),t.whenFalse),Z(a),i}return e.visitEachChild(t,P,n)}(t);case 208:return function(t){var r,a=Q(),i=e.visitNode(t.expression,P,e.isExpression);if(t.asteriskToken){var o=0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i;!function(e,n){Se(7,[e],n)}(o,t)}else!function(e,n){Se(6,[e],n)}(i,t);return Z(a),r=t,e.setTextRange(e.createCall(e.createPropertyAccess(L,"sent"),void 0,[]),r)}(t);case 188:return function(e){return U(e.elements,void 0,void 0,e.multiLine)}(t);case 189:return function(n){var t=n.properties,r=n.multiLine,a=X(t),i=Y();he(i,e.createObjectLiteral(e.visitNodes(t,P,e.isObjectLiteralElementLike,0,a),r));var o=e.reduceLeft(t,function(t,a){z(a)&&t.length>0&&(ve(e.createExpressionStatement(e.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(n,a,i),s=e.visitNode(o,P,e.isExpression);return s&&(r&&e.startOnNewLine(s),t.push(s)),t},[],a);return o.push(r?e.startOnNewLine(e.getMutableClone(i)):i),e.inlineExpressions(o)}(t);case 191:return function(t){if(z(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=J(e.visitNode(t.expression,P,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,P,e.isExpression),r}return e.visitEachChild(t,P,n)}(t);case 192:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,z)){var r=e.createCallBinding(t.expression,_,v,!0),a=r.target,i=r.thisArg;return e.setOriginalNode(e.createFunctionApply(J(e.visitNode(a,P,e.isLeftHandSideExpression)),i,U(t.arguments),t),t)}return e.visitEachChild(t,P,n)}(t);case 193:return function(t){if(e.forEach(t.arguments,z)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),_),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(J(e.visitNode(a,P,e.isExpression)),i,U(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,P,n)}(t);default:return e.visitEachChild(t,P,n)}}(t):262400&t.transformFlags?e.visitEachChild(t,P,n):t}}function F(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,P,n),void 0,B(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,P,n),a=r,i=o}return a?void g(t):t}function V(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,P,n),void 0,B(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,P,n),a=r,i=o}return t}function B(n){var t=[],r=a,o=i,g=s,_=l,y=c,v=d,h=u,b=m,A=k,x=E,C=T,D=S,R=L;a=!0,i=!1,s=void 0,l=void 0,c=void 0,d=void 0,u=void 0,m=void 0,k=1,E=void 0,T=void 0,S=void 0,L=e.createTempVariable(void 0),p();var M=e.addPrologue(t,n.statements,!1,P);H(n.statements,M);var I=Le();return e.insertStatementsAfterStandardPrologue(t,f()),t.push(e.createReturn(I)),a=r,i=o,s=g,l=_,c=y,d=v,u=h,m=b,k=A,E=x,T=C,S=D,L=R,e.setTextRange(e.createBlock(t,n.multiLine),n)}function U(n,t,r,a){var i,s=X(n);if(s>0){i=Y();var l=e.visitNodes(n,P,e.isExpression,0,s);he(i,e.createArrayLiteral(t?o([t],l):l)),t=void 0}var c=e.reduceLeft(n,function(n,r){if(z(r)&&n.length>0){var s=void 0!==i;i||(i=Y()),he(i,s?e.createArrayConcat(i,[e.createArrayLiteral(n,a)]):e.createArrayLiteral(t?o([t],n):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,P,e.isExpression)),n},[],s);return i?e.createArrayConcat(i,[e.createArrayLiteral(c,a)]):e.setTextRange(e.createArrayLiteral(t?o([t],c):c,a),r)}function H(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r<t;r++)j(e[r])}function K(n){e.isBlock(n)?H(n.statements):j(n)}function j(a){var o=i;i||(i=z(a)),function(a){switch(a.kind){case 219:return function(n){z(n)?H(n.statements):ve(e.visitNode(n,P,e.isStatement))}(a);case 222:return function(n){ve(e.visitNode(n,P,e.isStatement))}(a);case 223:return function(n){if(z(n))if(z(n.thenStatement)||z(n.elseStatement)){var t=Q(),r=n.elseStatement?Q():void 0;Te(n.elseStatement?r:t,e.visitNode(n.expression,P,e.isExpression),n.expression),K(n.thenStatement),n.elseStatement&&(be(t),Z(r),K(n.elseStatement)),Z(t)}else ve(e.visitNode(n,P,e.isStatement));else ve(e.visitNode(n,P,e.isStatement))}(a);case 224:return function(n){if(z(n)){var t=Q(),r=Q();ae(t),Z(r),K(n.statement),Z(t),Ee(r,e.visitNode(n.expression,P,e.isExpression)),ie()}else ve(e.visitNode(n,P,e.isStatement))}(a);case 225:return function(n){if(z(n)){var t=Q(),r=ae(t);Z(t),Te(r,e.visitNode(n.expression,P,e.isExpression)),K(n.statement),be(t),ie()}else ve(e.visitNode(n,P,e.isStatement))}(a);case 226:return function(n){if(z(n)){var t=Q(),r=Q(),a=ae(r);if(n.initializer){var i=n.initializer;e.isVariableDeclarationList(i)?W(i):ve(e.setTextRange(e.createExpressionStatement(e.visitNode(i,P,e.isExpression)),i))}Z(t),n.condition&&Te(a,e.visitNode(n.condition,P,e.isExpression)),K(n.statement),Z(r),n.incrementor&&ve(e.setTextRange(e.createExpressionStatement(e.visitNode(n.incrementor,P,e.isExpression)),n.incrementor)),be(t),ie()}else ve(e.visitNode(n,P,e.isStatement))}(a);case 227:return function(n){if(z(n)){var t=Y(),r=Y(),a=e.createLoopVariable(),i=n.initializer;_(a),he(t,e.createArrayLiteral()),ve(e.createForIn(r,e.visitNode(n.expression,P,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(t,"push"),void 0,[r])))),he(a,e.createLiteral(0));var o=Q(),s=Q(),l=ae(s);Z(o),Te(l,e.createLessThan(a,e.createPropertyAccess(t,"length")));var c=void 0;if(e.isVariableDeclarationList(i)){for(var d=0,u=i.declarations;d<u.length;d++){var m=u[d];_(m.name)}c=e.getSynthesizedClone(i.declarations[0].name)}else c=e.visitNode(i,P,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(c));he(c,e.createElementAccess(t,a)),K(n.statement),Z(s),ve(e.createExpressionStatement(e.createPostfixIncrement(a))),be(o),ie()}else ve(e.visitNode(n,P,e.isStatement))}(a);case 229:return function(n){var t=pe(n.label?e.idText(n.label):void 0);t>0?be(t,n):ve(n)}(a);case 230:return function(n){var t=me(n.label?e.idText(n.label):void 0);t>0?be(t,n):ve(n)}(a);case 231:return function(n){Se(8,[e.visitNode(n.expression,P,e.isExpression)],n)}(a);case 232:return function(n){var t,r,a;z(n)?(t=J(e.visitNode(n.expression,P,e.isExpression)),r=Q(),a=Q(),Z(r),$({kind:1,expression:t,startLabel:r,endLabel:a}),K(n.statement),e.Debug.assert(1===te()),Z(ee().endLabel)):ve(e.visitNode(n,P,e.isStatement))}(a);case 233:return function(n){if(z(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,a=($({kind:2,isScript:!1,breakLabel:p=Q()}),p),i=J(e.visitNode(n.expression,P,e.isExpression)),o=[],s=-1,l=0;l<r;l++){var c=t.clauses[l];o.push(Q()),273===c.kind&&-1===s&&(s=l)}for(var d=0,u=[];d<r;){for(var m=0,l=d;l<r;l++){var c=t.clauses[l];if(272===c.kind){if(z(c.expression)&&u.length>0)break;u.push(e.createCaseClause(e.visitNode(c.expression,P,e.isExpression),[_e(o[l],c.expression)]))}else m++}u.length&&(ve(e.createSwitch(i,e.createCaseBlock(u))),d+=u.length,u=[]),m>0&&(d+=m,m=0)}be(s>=0?o[s]:a);for(var l=0;l<r;l++)Z(o[l]),H(t.clauses[l].statements);oe()}else ve(e.visitNode(n,P,e.isStatement));var p}(a);case 234:return function(n){var t,r;z(n)?(t=e.idText(n.label),r=Q(),$({kind:4,isScript:!1,labelText:t,breakLabel:r}),K(n.statement),se()):ve(e.visitNode(n,P,e.isStatement))}(a);case 235:return function(n){Se(9,[e.visitNode(n.expression,P,e.isExpression)],n)}(a);case 236:return function(a){var i,o;z(a)?(i=Q(),o=Q(),Z(i),$({kind:0,state:0,startLabel:i,endLabel:o}),ye(),K(a.tryBlock),a.catchClause&&(function(a){var i;if(e.Debug.assert(0===te()),e.isGeneratedIdentifier(a.name))i=a.name,_(a.name);else{var o=e.idText(a.name);i=Y(o),t||(t=e.createMap(),r=[],n.enableSubstitution(73)),t.set(o,!0),r[e.getOriginalNodeId(a)]=i}var s=ne();e.Debug.assert(s.state<1),be(s.endLabel);var l=Q();Z(l),s.state=1,s.catchVariable=i,s.catchLabel=l,he(i,e.createCall(e.createPropertyAccess(L,"sent"),void 0,[])),ye()}(a.catchClause.variableDeclaration),K(a.catchClause.block)),a.finallyBlock&&(function(){e.Debug.assert(0===te());var n=ne();e.Debug.assert(n.state<2),be(n.endLabel);var t=Q();Z(t),n.state=2,n.finallyLabel=t}(),K(a.finallyBlock)),function(){e.Debug.assert(0===te());var n=ee();n.state<2?be(n.endLabel):Se(10),Z(n.endLabel),ye(),n.state=3}()):ve(e.visitEachChild(a,P,n))}(a);default:ve(e.visitNode(a,P,e.isStatement))}}(a),i=o}function W(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t],i=e.getSynthesizedClone(a.name);e.setCommentRange(i,a.name),_(i)}for(var o=e.getInitializedVariables(n),s=o.length,l=0,c=[];l<s;){for(var d=l;d<s&&!(z((a=o[d]).initializer)&&c.length>0);d++)c.push(q(a));c.length&&(ve(e.createExpressionStatement(e.inlineExpressions(c))),l+=c.length,c=[])}}function q(n){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(n.name),n.name),e.visitNode(n.initializer,P,e.isExpression)),n)}function z(e){return!!e&&0!=(131072&e.transformFlags)}function X(e){for(var n=e.length,t=0;t<n;t++)if(z(e[t]))return t;return-1}function J(n){var t;return e.isGeneratedIdentifier(n)||4096&e.getEmitFlags(n)?n:(he(t=e.createTempVariable(_),n,n),t)}function Y(n){var t=n?e.createUniqueName(n):e.createTempVariable(void 0);return _(t),t}function Q(){u||(u=[]);var e=k;return k++,u[e]=-1,e}function Z(n){e.Debug.assert(void 0!==u,"No labels were defined."),u[n]=E?E.length:0}function $(e){s||(s=[],c=[],l=[],d=[]);var n=c.length;return c[n]=0,l[n]=E?E.length:0,s[n]=e,d.push(e),n}function ee(){var n=ne();if(void 0===n)return e.Debug.fail("beginBlock was never called.");var t=c.length;return c[t]=1,l[t]=E?E.length:0,s[t]=n,d.pop(),n}function ne(){return e.lastOrUndefined(d)}function te(){var e=ne();return e&&e.kind}function re(){$({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ae(e){var n=Q();return $({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function ie(){e.Debug.assert(3===te());var n=ee(),t=n.breakLabel;n.isScript||Z(t)}function oe(){e.Debug.assert(2===te());var n=ee(),t=n.breakLabel;n.isScript||Z(t)}function se(){e.Debug.assert(4===te());var n=ee();n.isScript||Z(n.breakLabel)}function le(e){return 2===e.kind||3===e.kind}function ce(e){return 4===e.kind}function de(e){return 3===e.kind}function ue(e,n){for(var t=n;t>=0;t--){var r=d[t];if(!ce(r))break;if(r.labelText===e)return!0}return!1}function me(e){if(d)if(e)for(var n=d.length-1;n>=0;n--){if(ce(t=d[n])&&t.labelText===e)return t.breakLabel;if(le(t)&&ue(e,n-1))return t.breakLabel}else for(n=d.length-1;n>=0;n--){var t;if(le(t=d[n]))return t.breakLabel}return 0}function pe(e){if(d)if(e){for(var n=d.length-1;n>=0;n--)if(de(t=d[n])&&ue(e,n-1))return t.continueLabel}else for(n=d.length-1;n>=0;n--){var t;if(de(t=d[n]))return t.continueLabel}return 0}function fe(n){if(void 0!==n&&n>0){void 0===m&&(m=[]);var t=e.createLiteral(-1);return void 0===m[n]?m[n]=[t]:m[n].push(t),t}return e.createOmittedExpression()}function ge(n){var t=e.createLiteral(n);return e.addSyntheticTrailingComment(t,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}}(n)),t}function _e(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),t)}function ye(){Se(0)}function ve(e){e?Se(1,[e]):ye()}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===E&&(E=[],T=[],S=[]),void 0===u&&Z(Q());var r=E.length;E[r]=e,T[r]=n,S[r]=t}function Le(){N=0,w=0,A=void 0,x=!1,C=!1,D=void 0,R=void 0,M=void 0,I=void 0,O=void 0;var t=function(){if(E){for(var n=0;n<E.length;n++)De(n);Ae(E.length)}else Ae(0);if(D){var t=e.createPropertyAccess(L,"label"),r=e.createSwitch(t,e.createCaseBlock(D));return[e.startOnNewLine(r)]}return R||[]}();return function(n,t){return n.requestEmitHelper(e.generatorHelper),e.createCall(e.getUnscopedHelperName("__generator"),void 0,[e.createThis(),t])}(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,L)],void 0,e.createBlock(t,t.length>0)),524288))}function Ae(e){(function(e){if(!C)return!0;if(!u||!m)return!1;for(var n=0;n<u.length;n++)if(u[n]===e&&m[n])return!0;return!1})(e)&&(Ce(e),O=void 0,Me(void 0,void 0)),R&&D&&xe(!1),function(){if(void 0!==m&&void 0!==A)for(var e=0;e<A.length;e++){var n=A[e];if(void 0!==n)for(var t=0,r=n;t<r.length;t++){var a=r[t],i=m[a];if(void 0!==i)for(var o=0,s=i;o<s.length;o++){var l=s[o];l.text=String(e)}}}}()}function xe(n){if(D||(D=[]),R){if(O)for(var t=O.length-1;t>=0;t--){var r=O[t];R=[e.createWith(r.expression,e.createBlock(R))]}if(I){var a=I.startLabel,i=I.catchLabel,o=I.finallyLabel,s=I.endLabel;R.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(L,"trys"),"push"),void 0,[e.createArrayLiteral([fe(a),fe(i),fe(o),fe(s)])]))),I=void 0}n&&R.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(L,"label"),e.createLiteral(w+1))))}D.push(e.createCaseClause(e.createLiteral(w),R||[])),R=void 0}function Ce(e){if(u)for(var n=0;n<u.length;n++)u[n]===e&&(R&&(xe(!x),x=!1,C=!1,w++),void 0===A&&(A=[]),void 0===A[w]?A[w]=[n]:A[w].push(n))}function De(n){if(Ce(n),function(e){if(s)for(;N<c.length&&l[N]<=e;N++){var n=s[N],t=c[N];switch(n.kind){case 0:0===t?(M||(M=[]),R||(R=[]),M.push(I),I=n):1===t&&(I=M.pop());break;case 1:0===t?(O||(O=[]),O.push(n)):1===t&&O.pop()}}}(n),!x){x=!1,C=!1;var t=E[n];if(0!==t){if(10===t)return x=!0,void Re(e.createReturn(e.createArrayLiteral([ge(7)])));var r=T[n];if(1===t)return Re(r[0]);var a,i,o,d=S[n];switch(t){case 2:return a=r[0],i=r[1],o=d,void Re(e.setTextRange(e.createExpressionStatement(e.createAssignment(a,i)),o));case 3:return function(n,t){x=!0,Re(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),t),384))}(r[0],d);case 4:return function(n,t,r){Re(e.setEmitFlags(e.createIf(t,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),r),384)),1))}(r[0],r[1],d);case 5:return function(n,t,r){Re(e.setEmitFlags(e.createIf(e.createLogicalNot(t),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),r),384)),1))}(r[0],r[1],d);case 6:return function(n,t){x=!0,Re(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(n?[ge(4),n]:[ge(4)])),t),384))}(r[0],d);case 7:return function(n,t){x=!0,Re(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(5),n])),t),384))}(r[0],d);case 8:return Me(r[0],d);case 9:return function(n,t){x=!0,C=!0,Re(e.setTextRange(e.createThrow(n),t))}(r[0],d)}}}}function Re(e){e&&(R?R.push(e):R=[e])}function Me(n,t){x=!0,C=!0,Re(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(n?[ge(2),n]:[ge(2)])),t),384))}},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (_) try {\n                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [op[0] & 2, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'}}(u||(u={})),function(e){e.transformModule=function(r){var a=r.startLexicalEnvironment,i=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,l=r.getCompilerOptions(),c=r.getEmitResolver(),d=r.getEmitHost(),u=e.getEmitScriptTarget(l),m=e.getEmitModuleKind(l),p=r.onSubstituteNode,f=r.onEmitNode;r.onSubstituteNode=function(n,t){return(t=p(n,t)).id&&y[t.id]?t:1===n?function(n){switch(n.kind){case 73:return X(n);case 205:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=J(n.left);if(t){for(var r=n,a=0,i=t;a<i.length;a++){var o=i[a];y[e.getNodeId(r)]=!0,r=q(o,r,n)}return r}}return n}(n);case 204:case 203:return function(n){if((44===n.operator||45===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var t=J(n.operand);if(t){for(var r=204===n.kind?e.setTextRange(e.createBinary(n.operand,e.createToken(44===n.operator?61:62),e.createLiteral(1)),n):n,a=0,i=t;a<i.length;a++){var o=i[a];y[e.getNodeId(r)]=!0,r=q(o,r)}return r}}return n}(n)}return n}(t):e.isShorthandPropertyAssignment(t)?function(n){var t=n.name,r=X(t);if(r!==t){if(n.objectAssignmentInitializer){var a=e.createAssignment(r,n.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(t,a),n)}return e.setTextRange(e.createPropertyAssignment(t,r),n)}return n}(t):t},r.onEmitNode=function(n,t,r){285===t.kind?(g=t,_=h[e.getOriginalNodeId(g)],y=[],f(n,t,r),g=void 0,_=void 0,y=void 0):f(n,t,r)},r.enableSubstitution(73),r.enableSubstitution(205),r.enableSubstitution(203),r.enableSubstitution(204),r.enableSubstitution(277),r.enableEmitNotification(285);var g,_,y,v,h=[],b=[];return e.chainBundle(function(n){if(n.isDeclarationFile||!(e.isEffectiveExternalModule(n,l)||524288&n.transformFlags||e.isJsonSourceFile(n)&&e.hasJsonModuleEmitEnabled(l)&&(l.out||l.outFile)))return n;g=n,_=e.collectExternalModuleInfo(n,c,l),h[e.getOriginalNodeId(n)]=_;var t=function(n){switch(n){case e.ModuleKind.AMD:return S;case e.ModuleKind.UMD:return L;default:return T}}(m)(n);return g=void 0,_=void 0,v=!1,e.aggregateTransformFlags(t)});function E(){return!(_.exportEquals||!e.isExternalModule(g))}function T(t){a();var o=[],s=e.getStrictOptionValue(l,"alwaysStrict")||!l.noImplicitUseStrict&&e.isExternalModule(g),c=e.addPrologue(o,t.statements,s,R);E()&&e.append(o,W()),e.append(o,e.visitNode(_.externalHelpersImportDeclaration,R,e.isStatement)),e.addRange(o,e.visitNodes(t.statements,R,e.isStatement,c)),D(o,!1),e.insertStatementsAfterStandardPrologue(o,i());var d=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(o),t.statements));return _.hasExportStarsToExportValues&&!l.importHelpers&&e.addEmitHelper(d,n),e.addEmitHelpers(d,r.readEmitHelpers()),d}function S(n){var t=e.createIdentifier("define"),a=e.tryGetModuleNameFromFile(n,d,l),i=e.isJsonSourceFile(n)&&n,s=A(n,!0),c=s.aliasedModuleNames,u=s.unaliasedModuleNames,m=s.importAliasNames,p=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(t,void 0,o(a?[a]:[],[e.createArrayLiteral(i?e.emptyArray:o([e.createLiteral("require"),e.createLiteral("exports")],c,u)),i?i.statements.length?i.statements[0].expression:e.createObjectLiteral():e.createFunctionExpression(void 0,void 0,void 0,void 0,o([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],m),void 0,C(n))])))]),n.statements));return e.addEmitHelpers(p,r.readEmitHelpers()),p}function L(n){var t=A(n,!1),a=t.aliasedModuleNames,i=t.unaliasedModuleNames,s=t.importAliasNames,c=e.tryGetModuleNameFromFile(n,d,l),u=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("define"),void 0,o(c?[c]:[],[e.createArrayLiteral(o([e.createLiteral("require"),e.createLiteral("exports")],a,i)),e.createIdentifier("factory")])))])))],!0),void 0)),m=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(u,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,o([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],s),void 0,C(n))]))]),n.statements));return e.addEmitHelpers(m,r.readEmitHelpers()),m}function A(n,t){for(var r=[],a=[],i=[],o=0,s=n.amdDependencies;o<s.length;o++){var u=s[o];u.name?(r.push(e.createLiteral(u.path)),i.push(e.createParameter(void 0,void 0,void 0,u.name))):a.push(e.createLiteral(u.path))}for(var m=0,p=_.externalImports;m<p.length;m++){var f=p[m],y=e.getExternalModuleNameLiteral(f,g,d,c,l),v=e.getLocalNameForExternalImport(f,g);y&&(t&&v?(e.setEmitFlags(v,4),r.push(y),i.push(e.createParameter(void 0,void 0,void 0,v))):a.push(y))}return{aliasedModuleNames:r,unaliasedModuleNames:a,importAliasNames:i}}function x(n){if(!e.isImportEqualsDeclaration(n)&&!e.isExportDeclaration(n)&&e.getExternalModuleNameLiteral(n,g,d,c,l)){var t=e.getLocalNameForExternalImport(n,g),r=k(n,t);if(r!==t)return e.createExpressionStatement(e.createAssignment(t,r))}}function C(r){a();var o=[],s=e.addPrologue(o,r.statements,!l.noImplicitUseStrict,R);E()&&e.append(o,W()),e.append(o,e.visitNode(_.externalHelpersImportDeclaration,R,e.isStatement)),m===e.ModuleKind.AMD&&e.addRange(o,e.mapDefined(_.externalImports,x)),e.addRange(o,e.visitNodes(r.statements,R,e.isStatement,s)),D(o,!0),e.insertStatementsAfterStandardPrologue(o,i());var c=e.createBlock(o,!0);return _.hasExportStarsToExportValues&&!l.importHelpers&&e.addEmitHelper(c,n),v&&e.addEmitHelper(c,t),c}function D(n,t){if(_.exportEquals){var r=e.visitNode(_.exportEquals.expression,M);if(r)if(t){var a=e.createReturn(r);e.setTextRange(a,_.exportEquals),e.setEmitFlags(a,1920),n.push(a)}else a=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),r)),e.setTextRange(a,_.exportEquals),e.setEmitFlags(a,1536),n.push(a)}}function R(n){switch(n.kind){case 250:return function(n){var t,r=e.getNamespaceDeclarationNode(n);if(m!==e.ModuleKind.AMD){if(!n.importClause)return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(N(n)),n),n);var a=[];r&&!e.isDefaultImport(n)?a.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,k(n,N(n)))):(a.push(e.createVariableDeclaration(e.getGeneratedNameForNode(n),void 0,k(n,N(n)))),r&&e.isDefaultImport(n)&&a.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(n)))),t=e.append(t,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(a,u>=2?2:0)),n),n))}else r&&e.isDefaultImport(n)&&(t=e.append(t,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(n)),n),n)],u>=2?2:0))));if(G(n)){var i=e.getOriginalNodeId(n);b[i]=F(b[i],n)}else t=F(t,n);return e.singleOrMany(t)}(n);case 249:return function(n){var t;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),m!==e.ModuleKind.AMD?t=e.hasModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(n.name,N(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,N(n))],u>=2?2:0)),n),n)):e.hasModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(e.getExportName(n),e.getLocalName(n))),n),n))),G(n)){var r=e.getOriginalNodeId(n);b[r]=V(b[r],n)}else t=V(t,n);return e.singleOrMany(t)}(n);case 256:return function(n){if(n.moduleSpecifier){var t=e.getGeneratedNameForNode(n);if(n.exportClause){var a=[];m!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(t,void 0,N(n))])),n),n));for(var i=0,o=n.exportClause.elements;i<o.length;i++){var s=o[i],l=e.createPropertyAccess(t,s.propertyName||s.name);a.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(e.getExportName(s),l)),s),s))}return e.singleOrMany(a)}return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(function(n,t){return n.getCompilerOptions().importHelpers?e.createCall(e.getUnscopedHelperName("__exportStar"),void 0,[t,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[t])}(r,m!==e.ModuleKind.AMD?N(n):t)),n),n)}}(n);case 255:return function(n){if(!n.isExportEquals){var t,r=n.original;if(r&&G(r)){var a=e.getOriginalNodeId(n);b[a]=j(b[a],e.createIdentifier("default"),e.visitNode(n.expression,M),n,!0)}else t=j(t,e.createIdentifier("default"),e.visitNode(n.expression,M),n,!0);return e.singleOrMany(t)}}(n);case 220:return function(n){var t,a,i;if(e.hasModifier(n,1)){for(var o=void 0,s=0,l=n.declarationList.declarations;s<l.length;s++){var c=l[s];e.isIdentifier(c.name)&&e.isLocalName(c.name)?(o||(o=e.visitNodes(n.modifiers,z,e.isModifier)),a=e.append(a,c)):c.initializer&&(i=e.append(i,P(c)))}a&&(t=e.append(t,e.updateVariableStatement(n,o,e.updateVariableDeclarationList(n.declarationList,a)))),i&&(t=e.append(t,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(e.inlineExpressions(i)),n),n)))}else t=e.append(t,e.visitEachChild(n,M,r));if(G(n)){var d=e.getOriginalNodeId(n);b[d]=B(b[d],n)}else t=B(t,n);return e.singleOrMany(t)}(n);case 240:return function(n){var t;if(t=e.hasModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(n.modifiers,z,e.isModifier),n.asteriskToken,e.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,M),void 0,e.visitEachChild(n.body,M,r)),n),n)):e.append(t,e.visitEachChild(n,M,r)),G(n)){var a=e.getOriginalNodeId(n);b[a]=H(b[a],n)}else t=H(t,n);return e.singleOrMany(t)}(n);case 241:return function(n){var t;if(t=e.hasModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(n.modifiers,z,e.isModifier),e.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.heritageClauses,M),e.visitNodes(n.members,M)),n),n)):e.append(t,e.visitEachChild(n,M,r)),G(n)){var a=e.getOriginalNodeId(n);b[a]=H(b[a],n)}else t=H(t,n);return e.singleOrMany(t)}(n);case 318:return function(n){if(G(n)&&220===n.original.kind){var t=e.getOriginalNodeId(n);b[t]=B(b[t],n.original)}return n}(n);case 319:return function(n){var t=e.getOriginalNodeId(n),r=b[t];return r?(delete b[t],e.append(r,n)):n}(n);default:return e.visitEachChild(n,M,r)}}function M(n){return 524288&n.transformFlags||512&n.transformFlags?e.isImportCall(n)?function(n){var t=e.visitNode(e.firstOrUndefined(n.arguments),M),r=!!(2048&n.transformFlags);switch(l.module){case e.ModuleKind.AMD:return I(t,r);case e.ModuleKind.UMD:return function(n,t){if(v=!0,e.isSimpleCopiableExpression(n)){var r=e.isGeneratedIdentifier(n)?n:e.isStringLiteral(n)?e.createLiteral(n):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(n),n),1536);return e.createConditional(e.createIdentifier("__syncRequire"),O(n,t),I(r,t))}var a=e.createTempVariable(s);return e.createComma(e.createAssignment(a,n),e.createConditional(e.createIdentifier("__syncRequire"),O(a,t),I(a,t)))}(t,r);case e.ModuleKind.CommonJS:default:return O(t,r)}}(n):e.isDestructuringAssignment(n)?function(n){return function n(t){if(e.isObjectLiteralExpression(t))for(var r=0,a=t.properties;r<a.length;r++){var i=a[r];switch(i.kind){case 276:if(n(i.initializer))return!0;break;case 277:if(n(i.name))return!0;break;case 278:if(n(i.expression))return!0;break;case 157:case 159:case 160:return!1;default:e.Debug.assertNever(i,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(t))for(var o=0,s=t.elements;o<s.length;o++){var i=s[o];if(e.isSpreadElement(i)){if(n(i.expression))return!0}else if(n(i))return!0}else if(e.isIdentifier(t))return e.length(J(t))>(e.isExportName(t)?1:0);return!1}(n.left)?e.flattenDestructuringAssignment(n,M,r,0,!1,w):e.visitEachChild(n,M,r)}(n):e.visitEachChild(n,M,r):n}function I(n,t){var a,i=e.createUniqueName("resolve"),o=e.createUniqueName("reject"),s=[e.createParameter(void 0,void 0,void 0,i),e.createParameter(void 0,void 0,void 0,o)],c=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([n||e.createOmittedExpression()]),i,o]))]);u>=2?a=e.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(a=e.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),t&&e.setEmitFlags(a,8));var d=e.createNew(e.createIdentifier("Promise"),void 0,[a]);return l.esModuleInterop?(r.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(d,e.createIdentifier("then")),void 0,[e.getUnscopedHelperName("__importStar")])):d}function O(n,t){var a,i=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),o=e.createCall(e.createIdentifier("require"),void 0,n?[n]:[]);return l.esModuleInterop&&(r.requestEmitHelper(e.importStarHelper),o=e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[o])),u>=2?a=e.createArrowFunction(void 0,void 0,[],void 0,void 0,o):(a=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(o)])),t&&e.setEmitFlags(a,8)),e.createCall(e.createPropertyAccess(i,"then"),void 0,[a])}function k(n,t){return!l.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?(r.requestEmitHelper(e.importStarHelper),e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[t])):e.getImportNeedsImportDefaultHelper(n)?(r.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getUnscopedHelperName("__importDefault"),void 0,[t])):t}function N(n){var t=e.getExternalModuleNameLiteral(n,g,d,c,l),r=[];return t&&r.push(t),e.createCall(e.createIdentifier("require"),void 0,r)}function w(n,t,r){var a=J(n);if(a){for(var i=e.isExportName(n)?t:e.createAssignment(n,t),o=0,s=a;o<s.length;o++){var l=s[o];e.setEmitFlags(i,4),i=q(l,i,r)}return i}return e.createAssignment(n,t)}function P(n){return e.isBindingPattern(n.name)?e.flattenDestructuringAssignment(e.visitNode(n,M),void 0,r,0,!1,w):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),n.name),n.name),e.visitNode(n.initializer,M))}function G(n){return 0!=(4194304&e.getEmitFlags(n))}function F(e,n){if(_.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=K(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 252:e=K(e,r);break;case 253:for(var a=0,i=r.elements;a<i.length;a++)e=K(e,i[a])}return e}function V(e,n){return _.exportEquals?e:K(e,n)}function B(e,n){if(_.exportEquals)return e;for(var t=0,r=n.declarationList.declarations;t<r.length;t++)e=U(e,r[t]);return e}function U(n,t){if(_.exportEquals)return n;if(e.isBindingPattern(t.name))for(var r=0,a=t.name.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||(n=U(n,i))}else e.isGeneratedIdentifier(t.name)||(n=K(n,t));return n}function H(n,t){return _.exportEquals?n:(e.hasModifier(t,1)&&(n=j(n,e.hasModifier(t,512)?e.createIdentifier("default"):e.getDeclarationName(t),e.getLocalName(t),t)),t.name&&(n=K(n,t)),n)}function K(n,t){var r=e.getDeclarationName(t),a=_.exportSpecifiers.get(e.idText(r));if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];n=j(n,s.name,r,s.name)}return n}function j(n,t,r,a,i){return n=e.append(n,function(n,t,r,a){var i=e.setTextRange(e.createExpressionStatement(q(n,t)),r);return e.startOnNewLine(i),a||e.setEmitFlags(i,1536),i}(t,r,a,i))}function W(){var n;return n=0===u?e.createExpressionStatement(q(e.createIdentifier("__esModule"),e.createLiteral(!0))):e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(n,1048576),n}function q(n,t,r){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(n)),t),r)}function z(e){switch(e.kind){case 86:case 81:return}return e}function X(n){if(4096&e.getEmitFlags(n)){var t=e.getExternalHelpersModuleName(g);return t?e.createPropertyAccess(t,n):n}if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var r=c.getReferencedExportContainer(n,e.isExportName(n));if(r&&285===r.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(n)),n);var a=c.getReferencedImportDeclaration(n);if(a){if(e.isImportClause(a))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(a.parent),e.createIdentifier("default")),n);if(e.isImportSpecifier(a)){var i=a.propertyName||a.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(a.parent.parent.parent),e.getSynthesizedClone(i)),n)}}}return n}function J(n){if(!e.isGeneratedIdentifier(n)){var t=c.getReferencedImportDeclaration(n)||c.getReferencedValueDeclaration(n);if(t)return _&&_.exportedBindings[e.getOriginalNodeId(t)]}}};var n={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 t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",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};'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(u||(u={})),function(e){e.transformSystemModule=function(n){var t=n.startLexicalEnvironment,r=n.endLexicalEnvironment,a=n.hoistVariableDeclaration,i=n.getCompilerOptions(),o=n.getEmitResolver(),s=n.getEmitHost(),l=n.onSubstituteNode,c=n.onEmitNode;n.onSubstituteNode=function(n,t){return function(e){return _&&e.id&&_[e.id]}(t=l(n,t))?t:1===n?function(n){switch(n.kind){case 73:return function(n){if(4096&e.getEmitFlags(n)){var t=e.getExternalHelpersModuleName(d);return t?e.createPropertyAccess(t,n):n}if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var r=o.getReferencedImportDeclaration(n);if(r){if(e.isImportClause(r))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r.parent),e.createIdentifier("default")),n);if(e.isImportSpecifier(r))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r.parent.parent.parent),e.getSynthesizedClone(r.propertyName||r.name)),n)}}return n}(n);case 205:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=W(n.left);if(t){for(var r=n,a=0,i=t;a<i.length;a++){var o=i[a];r=V(o,q(r))}return r}}return n}(n);case 203:case 204:return function(n){if((44===n.operator||45===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var t=W(n.operand);if(t){for(var r=204===n.kind?e.setTextRange(e.createPrefix(n.operator,n.operand),n):n,a=0,i=t;a<i.length;a++){var o=i[a];r=V(o,q(r))}return 204===n.kind&&(r=44===n.operator?e.createSubtract(q(r),e.createLiteral(1)):e.createAdd(q(r),e.createLiteral(1))),r}}return n}(n);case 215:return function(n){return e.isImportMeta(n)?e.createPropertyAccess(p,e.createIdentifier("meta")):n}(n)}return n}(t):4===n?function(n){switch(n.kind){case 277:return function(n){var t=n.name;if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=o.getReferencedImportDeclaration(t);if(r){if(e.isImportClause(r))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(t),e.createPropertyAccess(e.getGeneratedNameForNode(r.parent),e.createIdentifier("default"))),n);if(e.isImportSpecifier(r))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(t),e.createPropertyAccess(e.getGeneratedNameForNode(r.parent.parent.parent),e.getSynthesizedClone(r.propertyName||r.name))),n)}}return n}(n)}return n}(t):t},n.onEmitNode=function(n,t,r){if(285===t.kind){var a=e.getOriginalNodeId(t);d=t,u=y[a],m=h[a],_=b[a],p=E[a],_&&delete b[a],c(n,t,r),d=void 0,u=void 0,m=void 0,p=void 0,_=void 0}else c(n,t,r)},n.enableSubstitution(73),n.enableSubstitution(277),n.enableSubstitution(205),n.enableSubstitution(203),n.enableSubstitution(204),n.enableSubstitution(215),n.enableEmitNotification(285);var d,u,m,p,f,g,_,y=[],v=[],h=[],b=[],E=[];return e.chainBundle(function(n){if(n.isDeclarationFile||!(e.isEffectiveExternalModule(n,i)||524288&n.transformFlags))return n;var a=e.getOriginalNodeId(n);d=n,g=n,u=y[a]=e.collectExternalModuleInfo(n,o,i),m=e.createUniqueName("exports"),h[a]=m,p=E[a]=e.createUniqueName("context");var l=function(n){for(var t=e.createMap(),r=[],a=0,l=n;a<l.length;a++){var c=l[a],u=e.getExternalModuleNameLiteral(c,d,s,o,i);if(u){var m=u.text,p=t.get(m);void 0!==p?r[p].externalImports.push(c):(t.set(m,r.length),r.push({name:u,externalImports:[c]}))}}return r}(u.externalImports),c=function(n,a){var o=[];t();var s=e.getStrictOptionValue(i,"alwaysStrict")||!i.noImplicitUseStrict&&e.isExternalModule(d),l=e.addPrologue(o,n.statements,s,S);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(p,e.createPropertyAccess(p,"id")))]))),e.visitNode(u.externalHelpersImportDeclaration,S,e.isStatement);var c=e.visitNodes(n.statements,S,e.isStatement,l);e.addRange(o,f),e.insertStatementsAfterStandardPrologue(o,r());var g=function(n){if(u.hasExportStarsToExportValues){if(!u.exportedNames&&0===u.exportSpecifiers.size){for(var t=!1,r=0,a=u.externalImports;r<a.length;r++){var i=a[r];if(256===i.kind&&i.exportClause){t=!0;break}}if(!t){var o=T(void 0);return n.push(o),o.name}}var s=[];if(u.exportedNames)for(var l=0,c=u.exportedNames;l<c.length;l++){var d=c[l];"default"!==d.escapedText&&s.push(e.createPropertyAssignment(e.createLiteral(d),e.createTrue()))}for(var m=0,p=u.externalImports;m<p.length;m++){var i=p[m];if(256===i.kind&&i.exportClause)for(var f=0,g=i.exportClause.elements;f<g.length;f++){var _=g[f];s.push(e.createPropertyAssignment(e.createLiteral(e.idText(_.name||_.propertyName)),e.createTrue()))}}var y=e.createUniqueName("exportedNames");n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(y,void 0,e.createObjectLiteral(s,!0))])));var v=T(y);return n.push(v),v.name}}(o),_=e.createObjectLiteral([e.createPropertyAssignment("setters",function(n,t){for(var r=[],a=0,i=t;a<i.length;a++){for(var o=i[a],s=e.forEach(o.externalImports,function(n){return e.getLocalNameForExternalImport(n,d)}),l=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),c=[],u=0,p=o.externalImports;u<p.length;u++){var f=p[u],g=e.getLocalNameForExternalImport(f,d);switch(f.kind){case 250:if(!f.importClause)break;case 249:e.Debug.assert(void 0!==g),c.push(e.createExpressionStatement(e.createAssignment(g,l)));break;case 256:if(e.Debug.assert(void 0!==g),f.exportClause){for(var _=[],y=0,v=f.exportClause.elements;y<v.length;y++){var h=v[y];_.push(e.createPropertyAssignment(e.createLiteral(e.idText(h.name)),e.createElementAccess(l,e.createLiteral(e.idText(h.propertyName||h.name)))))}c.push(e.createExpressionStatement(e.createCall(m,void 0,[e.createObjectLiteral(_,!0)])))}else c.push(e.createExpressionStatement(e.createCall(n,void 0,[l])))}}r.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,l)],void 0,e.createBlock(c,!0)))}return e.createArrayLiteral(r,!0)}(g,a)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(c,!0)))]);return _.multiLine=!0,o.push(e.createReturn(_)),e.createBlock(o,!0)}(n,l),v=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,m),e.createParameter(void 0,void 0,void 0,p)],void 0,c),L=e.tryGetModuleNameFromFile(n,s,i),A=e.createArrayLiteral(e.map(l,function(e){return e.name})),x=e.setEmitFlags(e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,L?[L,A,v]:[A,v]))]),n.statements)),1024);return i.outFile||i.out||e.moveEmitHelpers(x,c,function(e){return!e.scoped}),_&&(b[a]=_,_=void 0),d=void 0,u=void 0,m=void 0,p=void 0,f=void 0,g=void 0,e.aggregateTransformFlags(x)});function T(n){var t=e.createUniqueName("exportStar"),r=e.createIdentifier("m"),a=e.createIdentifier("n"),i=e.createIdentifier("exports"),o=e.createStrictInequality(a,e.createLiteral("default"));return n&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(n,"hasOwnProperty"),void 0,[a])))),e.createFunctionDeclaration(void 0,void 0,void 0,t,void 0,[e.createParameter(void 0,void 0,void 0,r)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0)]),r,e.createBlock([e.setEmitFlags(e.createIf(o,e.createExpressionStatement(e.createAssignment(e.createElementAccess(i,a),e.createElementAccess(r,a)))),1)])),e.createExpressionStatement(e.createCall(m,void 0,[i]))],!0))}function S(n){switch(n.kind){case 250:return function(n){var t;if(n.importClause&&a(e.getLocalNameForExternalImport(n,d)),M(n)){var r=e.getOriginalNodeId(n);v[r]=I(v[r],n)}else t=I(t,n);return e.singleOrMany(t)}(n);case 249:return function(n){var t;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(n,d)),M(n)){var r=e.getOriginalNodeId(n);v[r]=O(v[r],n)}else t=O(t,n);return e.singleOrMany(t)}(n);case 256:return;case 255:return function(n){if(!n.isExportEquals){var t=e.visitNode(n.expression,H,e.isExpression),r=n.original;if(!r||!M(r))return F(e.createIdentifier("default"),t,!0);var a=e.getOriginalNodeId(n);v[a]=G(v[a],e.createIdentifier("default"),t,!0)}}(n);default:return B(n)}}function L(n){if(e.isBindingPattern(n.name))for(var t=0,r=n.name.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||L(i)}else a(e.getSynthesizedClone(n.name))}function A(n){return 0==(2097152&e.getEmitFlags(n))&&(285===g.kind||0==(3&e.getOriginalNode(n).flags))}function x(t,r){var a=r?C:D;return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(t,H,n,0,!1,a):t.initializer?a(t.name,e.visitNode(t.initializer,H,e.isExpression)):t.name}function C(e,n,t){return R(e,n,t,!0)}function D(e,n,t){return R(e,n,t,!1)}function R(n,t,r,i){return a(e.getSynthesizedClone(n)),i?V(n,q(e.setTextRange(e.createAssignment(n,t),r))):q(e.setTextRange(e.createAssignment(n,t),r))}function M(n){return 0!=(4194304&e.getEmitFlags(n))}function I(e,n){if(u.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=P(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 252:e=P(e,r);break;case 253:for(var a=0,i=r.elements;a<i.length;a++)e=P(e,i[a])}return e}function O(e,n){return u.exportEquals?e:P(e,n)}function k(e,n,t){if(u.exportEquals)return e;for(var r=0,a=n.declarationList.declarations;r<a.length;r++){var i=a[r];(i.initializer||t)&&(e=N(e,i,t))}return e}function N(n,t,r){if(u.exportEquals)return n;if(e.isBindingPattern(t.name))for(var a=0,i=t.name.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||(n=N(n,o,r))}else if(!e.isGeneratedIdentifier(t.name)){var s=void 0;r&&(n=G(n,t.name,e.getLocalName(t)),s=e.idText(t.name)),n=P(n,t,s)}return n}function w(n,t){if(u.exportEquals)return n;var r;if(e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createLiteral("default"):t.name;n=G(n,a,e.getLocalName(t)),r=e.getTextOfIdentifierOrLiteral(a)}return t.name&&(n=P(n,t,r)),n}function P(n,t,r){if(u.exportEquals)return n;var a=e.getDeclarationName(t),i=u.exportSpecifiers.get(e.idText(a));if(i)for(var o=0,s=i;o<s.length;o++){var l=s[o];l.name.escapedText!==r&&(n=G(n,l.name,a))}return n}function G(n,t,r,a){return n=e.append(n,F(t,r,a))}function F(n,t,r){var a=e.createExpressionStatement(V(n,t));return e.startOnNewLine(a),r||e.setEmitFlags(a,1536),a}function V(n,t){var r=e.isIdentifier(n)?e.createLiteral(n):n;return e.setEmitFlags(t,1536|e.getEmitFlags(t)),e.setCommentRange(e.createCall(m,void 0,[r,t]),t)}function B(t){switch(t.kind){case 220:return function(n){if(!A(n.declarationList))return e.visitNode(n,H,e.isStatement);for(var t,r,a=e.hasModifier(n,1),i=M(n),o=0,s=n.declarationList.declarations;o<s.length;o++){var l=s[o];l.initializer?t=e.append(t,x(l,a&&!i)):L(l)}if(t&&(r=e.append(r,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(t)),n))),i){var c=e.getOriginalNodeId(n);v[c]=k(v[c],n,a)}else r=k(r,n,!1);return e.singleOrMany(r)}(t);case 240:return function(t){if(f=e.hasModifier(t,1)?e.append(f,e.updateFunctionDeclaration(t,t.decorators,e.visitNodes(t.modifiers,j,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,H,e.isParameterDeclaration),void 0,e.visitNode(t.body,H,e.isBlock))):e.append(f,e.visitEachChild(t,H,n)),M(t)){var r=e.getOriginalNodeId(t);v[r]=w(v[r],t)}else f=w(f,t)}(t);case 241:return function(n){var t,r=e.getLocalName(n);if(a(r),t=e.append(t,e.setTextRange(e.createExpressionStatement(e.createAssignment(r,e.setTextRange(e.createClassExpression(void 0,n.name,void 0,e.visitNodes(n.heritageClauses,H,e.isHeritageClause),e.visitNodes(n.members,H,e.isClassElement)),n))),n)),M(n)){var i=e.getOriginalNodeId(n);v[i]=w(v[i],n)}else t=w(t,n);return e.singleOrMany(t)}(t);case 226:return function(n){var t=g;return g=n,n=e.updateFor(n,n.initializer&&U(n.initializer),e.visitNode(n.condition,H,e.isExpression),e.visitNode(n.incrementor,H,e.isExpression),e.visitNode(n.statement,B,e.isStatement)),g=t,n}(t);case 227:return function(n){var t=g;return g=n,n=e.updateForIn(n,U(n.initializer),e.visitNode(n.expression,H,e.isExpression),e.visitNode(n.statement,B,e.isStatement,e.liftToBlock)),g=t,n}(t);case 228:return function(n){var t=g;return g=n,n=e.updateForOf(n,n.awaitModifier,U(n.initializer),e.visitNode(n.expression,H,e.isExpression),e.visitNode(n.statement,B,e.isStatement,e.liftToBlock)),g=t,n}(t);case 224:return function(n){return e.updateDo(n,e.visitNode(n.statement,B,e.isStatement,e.liftToBlock),e.visitNode(n.expression,H,e.isExpression))}(t);case 225:return function(n){return e.updateWhile(n,e.visitNode(n.expression,H,e.isExpression),e.visitNode(n.statement,B,e.isStatement,e.liftToBlock))}(t);case 234:return function(n){return e.updateLabel(n,n.label,e.visitNode(n.statement,B,e.isStatement,e.liftToBlock))}(t);case 232:return function(n){return e.updateWith(n,e.visitNode(n.expression,H,e.isExpression),e.visitNode(n.statement,B,e.isStatement,e.liftToBlock))}(t);case 233:return function(n){return e.updateSwitch(n,e.visitNode(n.expression,H,e.isExpression),e.visitNode(n.caseBlock,B,e.isCaseBlock))}(t);case 247:return function(n){var t=g;return g=n,n=e.updateCaseBlock(n,e.visitNodes(n.clauses,B,e.isCaseOrDefaultClause)),g=t,n}(t);case 272:return function(n){return e.updateCaseClause(n,e.visitNode(n.expression,H,e.isExpression),e.visitNodes(n.statements,B,e.isStatement))}(t);case 273:case 236:return function(t){return e.visitEachChild(t,B,n)}(t);case 275:return function(n){var t=g;return g=n,n=e.updateCatchClause(n,n.variableDeclaration,e.visitNode(n.block,B,e.isBlock)),g=t,n}(t);case 219:return function(t){var r=g;return g=t,t=e.visitEachChild(t,B,n),g=r,t}(t);case 318:return function(n){if(M(n)&&220===n.original.kind){var t=e.getOriginalNodeId(n),r=e.hasModifier(n.original,1);v[t]=k(v[t],n.original,r)}return n}(t);case 319:return function(n){var t=e.getOriginalNodeId(n),r=v[t];if(r)return delete v[t],e.append(r,n);var a=e.getOriginalNode(n);return e.isModuleOrEnumDeclaration(a)?e.append(P(r,a),n):n}(t);default:return H(t)}}function U(t){if(function(n){return e.isVariableDeclarationList(n)&&A(n)}(t)){for(var r=void 0,a=0,i=t.declarations;a<i.length;a++){var o=i[a];r=e.append(r,x(o,!1)),o.initializer||L(o)}return r?e.inlineExpressions(r):e.createOmittedExpression()}return e.visitEachChild(t,B,n)}function H(t){return e.isDestructuringAssignment(t)?function(t){return K(t.left)?e.flattenDestructuringAssignment(t,H,n,0,!0):e.visitEachChild(t,H,n)}(t):e.isImportCall(t)?function(n){return e.createCall(e.createPropertyAccess(p,e.createIdentifier("import")),void 0,e.some(n.arguments)?[e.visitNode(n.arguments[0],H)]:[])}(t):512&t.transformFlags||524288&t.transformFlags?e.visitEachChild(t,H,n):t}function K(n){if(e.isAssignmentExpression(n,!0))return K(n.left);if(e.isSpreadElement(n))return K(n.expression);if(e.isObjectLiteralExpression(n))return e.some(n.properties,K);if(e.isArrayLiteralExpression(n))return e.some(n.elements,K);if(e.isShorthandPropertyAssignment(n))return K(n.name);if(e.isPropertyAssignment(n))return K(n.initializer);if(e.isIdentifier(n)){var t=o.getReferencedExportContainer(n);return void 0!==t&&285===t.kind}return!1}function j(e){switch(e.kind){case 86:case 81:return}return e}function W(n){var t;if(!e.isGeneratedIdentifier(n)){var r=o.getReferencedImportDeclaration(n)||o.getReferencedValueDeclaration(n);if(r){var a=o.getReferencedExportContainer(n,!1);a&&285===a.kind&&(t=e.append(t,e.getDeclarationName(r))),t=e.addRange(t,u&&u.exportedBindings[e.getOriginalNodeId(r)])}}return t}function q(n){return void 0===_&&(_=[]),_[e.getNodeId(n)]=!0,n}}}(u||(u={})),function(e){e.transformES2015Module=function(n){var t,r=n.getCompilerOptions(),a=n.onEmitNode,i=n.onSubstituteNode;return n.onEmitNode=function(n,r,i){e.isSourceFile(r)?(t=e.createMap(),a(n,r,i),t=void 0):a(n,r,i)},n.onSubstituteNode=function(n,r){return r=i(n,r),t&&e.isIdentifier(r)&&4096&e.getEmitFlags(r)?function(n){var r=e.idText(n),a=t.get(r);return a||t.set(r,a=e.createFileLevelUniqueName(r)),a}(r):r},n.enableEmitNotification(285),n.enableSubstitution(73),e.chainBundle(function(t){if(t.isDeclarationFile)return t;if(e.isExternalModule(t)||r.isolatedModules){var a=e.createExternalHelpersImportDeclarationIfNeeded(t,r);if(a){var i=[],s=e.addPrologue(i,t.statements);return e.append(i,a),e.addRange(i,e.visitNodes(t.statements,o,e.isStatement,s)),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(i),t.statements))}return e.visitEachChild(t,o,n)}return t});function o(e){switch(e.kind){case 249:return;case 255:return function(e){return e.isExportEquals?void 0:e}(e)}return e}}}(u||(u={})),function(e){function n(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isPropertyAccessExpression(n)||e.isBindingElement(n)||e.isConstructorDeclaration(n)?t:e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){var r;r=160===n.kind?e.hasModifier(n,32)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasModifier(n,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:n.name,typeName:n.name}}:e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isIndexSignatureDeclaration(n)?function(t){var r;switch(n.kind){case 162:r=t.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 161:r=t.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 163:r=t.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:case 156:r=e.hasModifier(n,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:241===n.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 240:r=t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+n.kind)}return{diagnosticMessage:r,errorNode:n.name||n}}:e.isParameter(n)?e.isParameterPropertyDeclaration(n)&&e.hasModifier(n.parent,8)?t:function(t){var r=function(t){switch(n.parent.kind){case 158:return t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 162:case 167:return t.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 161:return t.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 163:return t.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:case 156:return e.hasModifier(n.parent,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:241===n.parent.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 240:case 166:return t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[n.parent.kind])}}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isTypeParameterDeclaration(n)?function(){var t;switch(n.parent.kind){case 241:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 242:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 182:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 167:case 162:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 161:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:case 156:t=e.hasModifier(n.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:241===n.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 166:case 240:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 243:t=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+n.parent.kind)}return{diagnosticMessage:t,errorNode:n,typeName:n.name}}:e.isExpressionWithTypeArguments(n)?function(){var t;t=241===n.parent.parent.kind?e.isHeritageClause(n.parent)&&110===n.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}:e.isImportEqualsDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}:e.isTypeAliasDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n.type,typeName:n.name}}:e.Debug.assertNever(n,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[n.kind]);function t(t){var r=function(t){return 238===n.kind||187===n.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:155===n.kind||190===n.kind||154===n.kind||152===n.kind&&e.hasModifier(n.parent,8)?e.hasModifier(n,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:241===n.parent.kind||152===n.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}}e.canProduceDiagnostics=function(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isBindingElement(n)||e.isSetAccessor(n)||e.isGetAccessor(n)||e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isParameter(n)||e.isTypeParameterDeclaration(n)||e.isExpressionWithTypeArguments(n)||e.isImportEqualsDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isConstructorDeclaration(n)||e.isIndexSignatureDeclaration(n)||e.isPropertyAccessExpression(n)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){var r=function(n){return e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:241===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isMethodSignature(t)||e.isMethodDeclaration(t)?function(n){var r=function(n){return e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:241===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:n(t)},e.createGetSymbolAccessibilityDiagnosticForNode=n}(u||(u={})),function(e){function n(n,t){var r=t.text.substring(n.pos,n.end);return e.stringContains(r,"@internal")}function t(t,r){var a=e.getParseTreeNode(t);if(a&&152===a.kind){var i=a.parent.parameters.indexOf(a),o=i>0?a.parent.parameters[i-1]:void 0,s=r.text,l=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return l&&l.length&&n(e.last(l),r)}var c=a&&e.getLeadingCommentRangesOfNode(a,r);return!!e.forEach(c,function(e){return n(e,r)})}e.getDeclarationDiagnostics=function(n,t,r){if(r&&e.isSourceFileJS(r))return[];var i=n.getCompilerOptions();return e.transformNodes(t,n,i,r?[r]:e.filter(n.getSourceFiles(),e.isSourceFileNotJS),[a],!1).diagnostics},e.isInternalDeclaration=t;var r=531469;function a(n){var a,d,u,m,p,f,g,_,y,v,h,b=function(){return e.Debug.fail("Diagnostic emitted without context")},E=b,T=!0,S=!1,L=!1,A=!1,x=!1,C=n.getEmitHost(),D={trackSymbol:function(e,n,t){if(262144&e.flags)return;w(R.isSymbolAccessible(e,n,t,!0)),N(R.getTypeReferenceDirectivesForSymbol(e,t))},reportInaccessibleThisError:function(){g&&n.addDiagnostic(e.createDiagnosticForNode(g,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(g),"this"))},reportInaccessibleUniqueSymbolError:function(){g&&n.addDiagnostic(e.createDiagnosticForNode(g,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(g),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(t){g&&n.addDiagnostic(e.createDiagnosticForNode(g,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){g&&n.addDiagnostic(e.createDiagnosticForNode(g,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(g),t))},moduleResolverHost:C,trackReferencedAmbientModule:function(n,t){var r=R.getTypeReferenceDirectivesForSymbol(t,67108863);if(e.length(r))return N(r);var a=e.getSourceFileOfNode(n);y.set(""+e.getOriginalNodeId(a),a)},trackExternalModuleSymbolOfImportTypeNode:function(e){S||(f||(f=[])).push(e)}},R=n.getEmitResolver(),M=n.getCompilerOptions(),I=e.getNewLineCharacter(M),O=M.noResolve,k=M.stripInternal;return function(t){if(285===t.kind&&(t.isDeclarationFile||e.isSourceFileJS(t)))return t;if(286===t.kind){S=!0,y=e.createMap(),v=e.createMap();var r=!1,i=e.createBundle(e.map(t.sourceFiles,function(t){if(!t.isDeclarationFile&&!e.isSourceFileJS(t)){if(r=r||t.hasNoDefaultLib,_=t,a=t,u=void 0,p=!1,m=e.createMap(),E=b,A=!1,x=!1,G(t,y),F(t,v),e.isExternalModule(t)){L=!1,T=!1;var i=e.visitNodes(t.statements,te),o=e.updateSourceFileNode(t,[e.createModuleDeclaration([],[e.createModifier(126)],e.createLiteral(e.getResolvedExternalModuleName(n.getEmitHost(),t)),e.createModuleBlock(e.setTextRange(e.createNodeArray(Z(i)),t.statements)))],!0,[],[],!1,[]);return o}T=!0;var s=e.visitNodes(t.statements,te);return e.updateSourceFileNode(t,Z(s),!0,[],[],!1,[])}}),e.mapDefined(t.prepends,function(n){if(288===n.kind){var t=e.createUnparsedSourceFile(n,"dts",k);return r=r||!!t.hasNoDefaultLib,G(t,y),N(t.typeReferenceDirectives),F(t,v),t}return n}));i.syntheticFileReferences=[],i.syntheticTypeReferences=B(),i.syntheticLibReferences=V(),i.hasNoDefaultLib=r;var l=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,C,!0).declarationFilePath)),c=H(i.syntheticFileReferences,l);return y.forEach(c),i}T=!0,A=!1,x=!1,a=t,_=t,E=b,S=!1,L=!1,p=!1,u=void 0,m=e.createMap(),d=void 0,y=G(_,e.createMap()),v=F(_,e.createMap());var g=[],D=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,C,!0).declarationFilePath)),R=H(g,D),I=e.visitNodes(t.statements,te),O=e.setTextRange(e.createNodeArray(Z(I)),t.statements);y.forEach(R),h=e.filter(O,e.isAnyImportSyntax),e.isExternalModule(t)&&(!L||A&&!x)&&(O=e.setTextRange(e.createNodeArray(o(O,[P()])),O));var w=e.updateSourceFileNode(t,O,!0,g,B(),t.hasNoDefaultLib,V());return w.exportedModulesFromDeclarationEmit=f,w;function V(){return e.map(e.arrayFrom(v.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function B(){return d?e.mapDefined(e.arrayFrom(d.keys()),U):[]}function U(n){if(h)for(var t=0,r=h;t<r.length;t++){var a=r[t];if(e.isImportEqualsDeclaration(a)&&e.isExternalModuleReference(a.moduleReference)){var i=a.moduleReference.expression;if(e.isStringLiteralLike(i)&&i.text===n)return}else if(e.isImportDeclaration(a)&&e.isStringLiteral(a.moduleSpecifier)&&a.moduleSpecifier.text===n)return}return{fileName:n,pos:-1,end:-1}}function H(n,r){return function(a){var i;if(a.isDeclarationFile)i=a.fileName;else{if(S&&e.contains(t.sourceFiles,a))return;var o=e.getOutputPathsFor(a,C,!0);i=o.declarationFilePath||o.jsFilePath||a.fileName}if(i){var l=e.moduleSpecifiers.getModuleSpecifier(s(s({},M),{baseUrl:M.baseUrl&&e.toPath(M.baseUrl,C.getCurrentDirectory(),C.getCanonicalFileName)}),_,e.toPath(r,C.getCurrentDirectory(),C.getCanonicalFileName),e.toPath(i,C.getCurrentDirectory(),C.getCanonicalFileName),C,C.getSourceFiles(),void 0,C.redirectTargetsMap);if(!e.pathIsRelative(l))return void N([l]);var c=e.getRelativePathToDirectoryOrUrl(r,i,C.getCurrentDirectory(),C.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||-1!==c.indexOf("/node_modules/"))return;n.push({pos:-1,end:-1,fileName:c})}}}};function N(n){if(n){d=d||e.createMap();for(var t=0,r=n;t<r.length;t++){var a=r[t];d.set(a,!0)}}}function w(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(u)for(var r=0,a=t.aliasesToMakeVisible;r<a.length;r++){var i=a[r];e.pushIfUnique(u,i)}else u=t.aliasesToMakeVisible}else{var o=E(t);o&&(o.typeName?n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),t.errorSymbolName,t.errorModuleName)):n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,t.errorSymbolName,t.errorModuleName)))}}function P(){return e.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0)}function G(n,t){return O||!e.isUnparsedSource(n)&&e.isSourceFileJS(n)?t:(e.forEach(n.referencedFiles,function(r){var a=C.getSourceFileFromReference(n,r);a&&t.set(""+e.getOriginalNodeId(a),a)}),t)}function F(n,t){return e.forEach(n.libReferenceDirectives,function(e){C.getLibFileFromReference(e)&&t.set(e.fileName.toLocaleLowerCase(),!0)}),t}function V(n,t,r){var a;p||(a=E,E=e.createGetSymbolAccessibilityDiagnosticForNode(n));var o=e.updateParameter(n,void 0,i(n,t),n.dotDotDotToken,function n(t){return 73===t.kind?t:186===t.kind?e.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):e.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(t){return 211===t.kind?t:e.updateBindingElement(t,t.dotDotDotToken,t.propertyName,n(t.name),B(t)?t.initializer:void 0)}}(n.name),R.isOptionalParameter(n)?n.questionToken||e.createToken(56):void 0,H(n,r||n.type,!0),U(n));return p||(E=a),o}function B(n){return function(n){switch(n.kind){case 155:case 154:return!e.hasModifier(n,8);case 152:case 238:return!0}return!1}(n)&&R.isLiteralConstDeclaration(e.getParseTreeNode(n))}function U(n){if(B(n))return R.createLiteralConstValue(e.getParseTreeNode(n),D)}function H(n,t,i){if((i||!e.hasModifier(n,8))&&!B(n)){var o,s=152===n.kind&&(R.isRequiredInitializedParameter(n)||R.isOptionalUninitializedParameterProperty(n));return t&&!s?e.visitNode(t,ne):e.getParseTreeNode(n)?160===n.kind?e.createKeywordTypeNode(121):(g=n.name,p||(o=E,E=e.createGetSymbolAccessibilityDiagnosticForNode(n)),238===n.kind||187===n.kind?l(R.createTypeOfDeclaration(n,a,r,D)):152===n.kind||155===n.kind||154===n.kind?n.initializer?l(R.createTypeOfDeclaration(n,a,r,D,s)||R.createTypeOfExpression(n.initializer,a,r,D)):l(R.createTypeOfDeclaration(n,a,r,D,s)):l(R.createReturnTypeOfSignatureDeclaration(n,a,r,D))):t?e.visitNode(t,ne):e.createKeywordTypeNode(121)}function l(n){return g=void 0,p||(E=o),n||e.createKeywordTypeNode(121)}}function K(n){switch((n=e.getParseTreeNode(n)).kind){case 240:case 245:case 242:case 241:case 243:case 244:return!R.isDeclarationVisible(n);case 238:return!j(n);case 249:case 250:case 256:case 255:return!1}return!1}function j(n){return!e.isOmittedExpression(n)&&(e.isBindingPattern(n.name)?e.some(n.name.elements,j):R.isDeclarationVisible(n))}function W(n,t,r){if(!e.hasModifier(n,8)){var a=e.map(t,function(e){return V(e,r)});if(a)return e.createNodeArray(a,t.hasTrailingComma)}}function q(n,t){var r;if(!t){var a=e.getThisParameter(n);a&&(r=[V(a)])}if(e.isSetAccessorDeclaration(n)){var i=void 0;if(!t){var o=e.getSetAccessorValueParameter(n);if(o)i=V(o,void 0,ce(n,R.getAllAccessorDeclarations(n)))}i||(i=e.createParameter(void 0,void 0,void 0,"value")),r=e.append(r,i)}return e.createNodeArray(r||e.emptyArray)}function z(n,t){return e.hasModifier(n,8)?void 0:e.visitNodes(t,ne)}function X(n){return e.isSourceFile(n)||e.isTypeAliasDeclaration(n)||e.isModuleDeclaration(n)||e.isClassDeclaration(n)||e.isInterfaceDeclaration(n)||e.isFunctionLike(n)||e.isIndexSignatureDeclaration(n)||e.isMappedTypeNode(n)}function J(e,n){w(R.isEntityNameVisible(e,n)),N(R.getTypeReferenceDirectivesForEntityName(e))}function Y(n,t){return e.hasJSDocNodes(n)&&e.hasJSDocNodes(t)&&(n.jsDoc=t.jsDoc),e.setCommentRange(n,e.getCommentRange(t))}function Q(t,r){if(r){if(L=L||245!==t.kind&&184!==t.kind,e.isStringLiteralLike(r))if(S){var a=e.getExternalModuleNameFromDeclaration(n.getEmitHost(),R,t);if(a)return e.createLiteral(a)}else{var i=R.getSymbolOfExternalModuleSpecifier(r);i&&(f||(f=[])).push(i)}return r}}function Z(n){for(;e.length(u);){var t=u.shift();if(!e.isLateVisibilityPaintedStatement(t))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[t.kind]:t.kind));var r=T;T=t.parent&&e.isSourceFile(t.parent)&&!(e.isExternalModule(t.parent)&&S);var a=ae(t);T=r,m.set(""+e.getOriginalNodeId(t),a)}return e.visitNodes(n,function(n){if(e.isLateVisibilityPaintedStatement(n)){var t=""+e.getOriginalNodeId(n);if(m.has(t)){var r=m.get(t);return m.delete(t),r&&((e.isArray(r)?e.some(r,ee):ee(r))&&(A=!0),e.isSourceFile(n.parent)&&(e.isArray(r)?e.some(r,$):$(r))&&(L=!0)),r}}return n})}function $(n){return e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasModifier(n,1)}function ee(n){return!(e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasModifier(n,1)||e.isAmbientModule(n))}function ne(t){if(!oe(t)){if(e.isDeclaration(t)){if(K(t))return;if(e.hasDynamicName(t)&&!R.isLateBound(e.getParseTreeNode(t)))return}if(!(e.isFunctionLike(t)&&R.isImplementationOfOverload(t)||e.isSemicolonClassElement(t))){var r;X(t)&&(r=a,a=t);var i=E,o=e.canProduceDiagnostics(t),s=p,l=(169===t.kind||182===t.kind)&&243!==t.parent.kind;if((e.isMethodDeclaration(t)||e.isMethodSignature(t))&&e.hasModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return T(e.createProperty(void 0,le(t),t.name,void 0,void 0,void 0))}if(o&&!p&&(E=e.createGetSymbolAccessibilityDiagnosticForNode(t)),e.isTypeQueryNode(t)&&J(t.exprName,a),l&&(p=!0),function(e){switch(e.kind){case 162:case 158:case 157:case 159:case 160:case 155:case 154:case 156:case 161:case 163:case 238:case 151:case 212:case 165:case 176:case 166:case 167:case 184:return!0}return!1}(t))switch(t.kind){case 212:(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression))&&J(t.expression,a);var c=e.visitEachChild(t,ne,n);return T(e.updateExpressionWithTypeArguments(c,e.parenthesizeTypeParameters(c.typeArguments),c.expression));case 165:J(t.typeName,a);c=e.visitEachChild(t,ne,n);return T(e.updateTypeReferenceNode(c,c.typeName,e.parenthesizeTypeParameters(c.typeArguments)));case 162:return T(e.updateConstructSignature(t,z(t,t.typeParameters),W(t,t.parameters),H(t,t.type)));case 158:var d=e.hasModifier(t,8),u=e.createSignatureDeclaration(158,d?void 0:z(t,t.typeParameters),d?void 0:W(t,t.parameters,0),void 0);return u.modifiers=e.createNodeArray(le(t)),T(u);case 157:var m=e.createSignatureDeclaration(156,z(t,t.typeParameters),W(t,t.parameters),H(t,t.type));return m.name=t.name,m.modifiers=e.createNodeArray(le(t)),m.questionToken=t.questionToken,T(m);case 159:if(4194304&t.flags){d=e.hasModifier(t,8);var f=ce(t,R.getAllAccessorDeclarations(t));return T(e.updateGetAccessor(t,void 0,le(t),t.name,q(t,d),d?void 0:H(t,f),void 0))}return T(de(t));case 160:return 4194304&t.flags?T(e.updateSetAccessor(t,void 0,le(t),t.name,q(t,e.hasModifier(t,8)),void 0)):T(de(t));case 155:return T(e.updateProperty(t,void 0,le(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:H(t,t.type),U(t)));case 154:return T(e.updatePropertySignature(t,le(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:H(t,t.type),U(t)));case 156:return T(e.updateMethodSignature(t,z(t,t.typeParameters),W(t,t.parameters),H(t,t.type),t.name,t.questionToken));case 161:return T(e.updateCallSignature(t,z(t,t.typeParameters),W(t,t.parameters),H(t,t.type)));case 163:return T(e.updateIndexSignature(t,void 0,le(t),W(t,t.parameters),e.visitNode(t.type,ne)||e.createKeywordTypeNode(121)));case 238:return e.isBindingPattern(t.name)?ie(t.name):(l=!0,p=!0,T(e.updateVariableDeclaration(t,t.name,H(t,t.type),U(t))));case 151:return function(n){return 157===n.parent.kind&&e.hasModifier(n.parent,8)}(t)&&(t.default||t.constraint)?T(e.updateTypeParameterDeclaration(t,t.name,void 0,void 0)):T(e.visitEachChild(t,ne,n));case 176:var _=e.visitNode(t.checkType,ne),y=e.visitNode(t.extendsType,ne),v=a;a=t.trueType;var h=e.visitNode(t.trueType,ne);a=v;var b=e.visitNode(t.falseType,ne);return T(e.updateConditionalTypeNode(t,_,y,h,b));case 166:return T(e.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,ne),W(t,t.parameters),e.visitNode(t.type,ne)));case 167:return T(e.updateConstructorTypeNode(t,e.visitNodes(t.typeParameters,ne),W(t,t.parameters),e.visitNode(t.type,ne)));case 184:return e.isLiteralImportTypeNode(t)?T(e.updateImportTypeNode(t,e.updateLiteralTypeNode(t.argument,Q(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,ne,e.isTypeNode),t.isTypeOf)):T(t);default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: "+e.SyntaxKind[t.kind])}return T(e.visitEachChild(t,ne,n))}}function T(n){return n&&o&&e.hasDynamicName(t)&&function(n){var t;p||(t=E,E=e.createGetSymbolAccessibilityDiagnosticForNodeName(n));g=n.name,e.Debug.assert(R.isLateBound(e.getParseTreeNode(n))),J(n.name.expression,a),p||(E=t);g=void 0}(t),X(t)&&(a=r),o&&!p&&(E=i),l&&(p=s),n===t?n:n&&e.setOriginalNode(Y(n,t),t)}}function te(n){if(function(e){switch(e.kind){case 240:case 245:case 249:case 242:case 241:case 243:case 244:case 220:case 250:case 256:case 255:return!0}return!1}(n)&&!oe(n)){switch(n.kind){case 256:return e.isSourceFile(n.parent)&&(L=!0),x=!0,e.updateExportDeclaration(n,void 0,n.modifiers,n.exportClause,Q(n,n.moduleSpecifier));case 255:if(e.isSourceFile(n.parent)&&(L=!0),x=!0,73===n.expression.kind)return n;var t=e.createOptimisticUniqueName("_default");E=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:n}};var a=e.createVariableDeclaration(t,R.createTypeOfExpression(n.expression,n,r,D),void 0);return[e.createVariableStatement(T?[e.createModifier(126)]:[],e.createVariableDeclarationList([a],2)),e.updateExportAssignment(n,n.decorators,n.modifiers,t)]}var i=ae(n);return m.set(""+e.getOriginalNodeId(n),i),n}}function re(n){if(e.isImportEqualsDeclaration(n)||e.hasModifier(n,512))return n;var t=e.getMutableClone(n),r=e.createModifiersFromModifierFlags(3070&e.getModifierFlags(n));return t.modifiers=r.length?e.createNodeArray(r):void 0,t}function ae(n){if(!oe(n)){switch(n.kind){case 249:return function(n){if(R.isDeclarationVisible(n)){if(260===n.moduleReference.kind){var t=e.getExternalModuleImportEqualsDeclarationExpression(n);return e.updateImportEqualsDeclaration(n,void 0,n.modifiers,n.name,e.updateExternalModuleReference(n.moduleReference,Q(n,t)))}var r=E;return E=e.createGetSymbolAccessibilityDiagnosticForNode(n),J(n.moduleReference,a),E=r,n}}(n);case 250:return function(n){if(!n.importClause)return e.updateImportDeclaration(n,void 0,n.modifiers,n.importClause,Q(n,n.moduleSpecifier));var t=n.importClause&&n.importClause.name&&R.isDeclarationVisible(n.importClause)?n.importClause.name:void 0;if(!n.importClause.namedBindings)return t&&e.updateImportDeclaration(n,void 0,n.modifiers,e.updateImportClause(n.importClause,t,void 0),Q(n,n.moduleSpecifier));if(252===n.importClause.namedBindings.kind){var r=R.isDeclarationVisible(n.importClause.namedBindings)?n.importClause.namedBindings:void 0;return t||r?e.updateImportDeclaration(n,void 0,n.modifiers,e.updateImportClause(n.importClause,t,r),Q(n,n.moduleSpecifier)):void 0}var a=e.mapDefined(n.importClause.namedBindings.elements,function(e){return R.isDeclarationVisible(e)?e:void 0});return a&&a.length||t?e.updateImportDeclaration(n,void 0,n.modifiers,e.updateImportClause(n.importClause,t,a&&a.length?e.updateNamedImports(n.importClause.namedBindings,a):void 0),Q(n,n.moduleSpecifier)):void 0}(n)}if(!(e.isDeclaration(n)&&K(n)||e.isFunctionLike(n)&&R.isImplementationOfOverload(n))){var t;X(n)&&(t=a,a=n);var i=e.canProduceDiagnostics(n),s=E;i&&(E=e.createGetSymbolAccessibilityDiagnosticForNode(n));var l=T;switch(n.kind){case 243:return ie(e.updateTypeAliasDeclaration(n,void 0,le(n),n.name,e.visitNodes(n.typeParameters,ne,e.isTypeParameterDeclaration),e.visitNode(n.type,ne,e.isTypeNode)));case 242:return ie(e.updateInterfaceDeclaration(n,void 0,le(n),n.name,z(n,n.typeParameters),ue(n.heritageClauses),e.visitNodes(n.members,ne)));case 240:var c=ie(e.updateFunctionDeclaration(n,void 0,le(n),void 0,n.name,z(n,n.typeParameters),W(n,n.parameters),H(n,n.type),void 0));if(c&&R.isExpandoFunctionDeclaration(n)){var d=R.getPropertiesOfContainerFunction(n),u=e.createModuleDeclaration(void 0,void 0,c.name||e.createIdentifier("_default"),e.createModuleBlock([]),16);u.flags^=8,u.parent=a,u.locals=e.createSymbolTable(d),u.symbol=d[0].parent;var p=e.mapDefined(d,function(n){if(e.isPropertyAccessExpression(n.valueDeclaration)){E=e.createGetSymbolAccessibilityDiagnosticForNode(n.valueDeclaration);var t=R.createTypeOfDeclaration(n.valueDeclaration,u,r,D);E=s;var a=e.createVariableDeclaration(e.unescapeLeadingUnderscores(n.escapedName),t,void 0);return e.createVariableStatement(void 0,e.createVariableDeclarationList([a]))}}),f=e.createModuleDeclaration(void 0,le(n),n.name,e.createModuleBlock(p),16);if(!e.hasModifier(c,512))return[c,f];var g=e.createModifiersFromModifierFlags(-514&e.getModifierFlags(c)|2),_=e.updateFunctionDeclaration(c,void 0,g,void 0,c.name,c.typeParameters,c.parameters,c.type,void 0),y=e.updateModuleDeclaration(f,void 0,g,f.name,f.body),v=e.createExportAssignment(void 0,void 0,!1,f.name);return e.isSourceFile(n.parent)&&(L=!0),x=!0,[_,y,v]}return c;case 245:T=!1;var h=n.body;if(h&&246===h.kind){var b=A,S=x;x=!1,A=!1;var C=Z(e.visitNodes(h.statements,te));4194304&n.flags&&(A=!1),e.isGlobalScopeAugmentation(n)||function(n){return e.some(n,se)}(C)||x||(C=A?e.createNodeArray(o(C,[P()])):e.visitNodes(C,re));var M=e.updateModuleBlock(h,C);T=l,A=b,x=S;var I=le(n);return ie(e.updateModuleDeclaration(n,void 0,I,e.isExternalModuleAugmentation(n)?Q(n,n.name):n.name,M))}T=l;I=le(n);T=!1,e.visitNode(h,te);var O=""+e.getOriginalNodeId(h);M=m.get(O);return m.delete(O),ie(e.updateModuleDeclaration(n,void 0,I,n.name,M));case 241:g=e.createNodeArray(le(n));var k=z(n,n.typeParameters),N=e.getFirstConstructorWithBody(n),w=void 0;if(N){var G=E;w=e.compact(e.flatMap(N.parameters,function(n){if(e.hasModifier(n,92)&&!oe(n))return E=e.createGetSymbolAccessibilityDiagnosticForNode(n),73===n.name.kind?Y(e.createProperty(void 0,le(n),n.name,n.questionToken,H(n,n.type),U(n)),n):function t(r){var a;for(var i=0,o=r.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(a=e.concatenate(a,t(s.name))),(a=a||[]).push(e.createProperty(void 0,le(n),s.name,void 0,H(s,void 0),void 0)))}return a}(n.name)})),E=G}var F=e.createNodeArray(e.concatenate(w,e.visitNodes(n.members,ne))),V=e.getEffectiveBaseTypeNode(n);if(V&&!e.isEntityNameExpression(V.expression)&&97!==V.expression.kind){var B=n.name?e.unescapeLeadingUnderscores(n.name.escapedText):"default",q=e.createOptimisticUniqueName(B+"_base");E=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:V,typeName:n.name}};var $=e.createVariableDeclaration(q,R.createTypeOfExpression(V.expression,n,r,D),void 0),ee=e.createVariableStatement(T?[e.createModifier(126)]:[],e.createVariableDeclarationList([$],2)),ae=e.createNodeArray(e.map(n.heritageClauses,function(n){if(87===n.token){var t=E;E=e.createGetSymbolAccessibilityDiagnosticForNode(n.types[0]);var r=e.updateHeritageClause(n,e.map(n.types,function(n){return e.updateExpressionWithTypeArguments(n,e.visitNodes(n.typeArguments,ne),q)}));return E=t,r}return e.updateHeritageClause(n,e.visitNodes(e.createNodeArray(e.filter(n.types,function(n){return e.isEntityNameExpression(n.expression)||97===n.expression.kind})),ne))}));return[ee,ie(e.updateClassDeclaration(n,void 0,g,n.name,k,ae,F))]}ae=ue(n.heritageClauses);return ie(e.updateClassDeclaration(n,void 0,g,n.name,k,ae,F));case 220:return ie(function(n){if(!e.forEach(n.declarationList.declarations,j))return;var t=e.visitNodes(n.declarationList.declarations,ne);if(!e.length(t))return;return e.updateVariableStatement(n,e.createNodeArray(le(n)),e.updateVariableDeclarationList(n.declarationList,t))}(n));case 244:return ie(e.updateEnumDeclaration(n,void 0,e.createNodeArray(le(n)),n.name,e.createNodeArray(e.mapDefined(n.members,function(n){if(!oe(n)){var t=R.getConstantValue(n);return Y(e.updateEnumMember(n,n.name,void 0!==t?e.createLiteral(t):void 0),n)}}))))}return e.Debug.assertNever(n,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[n.kind])}}function ie(r){return X(n)&&(a=t),i&&(E=s),245===n.kind&&(T=l),r===n?r:r&&e.setOriginalNode(Y(r,n),n)}}function ie(n){return e.flatten(e.mapDefined(n.elements,function(n){return function(n){if(211===n.kind)return;if(n.name){if(!j(n))return;return e.isBindingPattern(n.name)?ie(n.name):e.createVariableDeclaration(n.name,H(n,void 0),void 0)}}(n)}))}function oe(e){return!!k&&!!e&&t(e,_)}function se(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function le(n){var t=e.getModifierFlags(n),r=function(n){var t=2811,r=T&&!function(e){if(242===e.kind)return!0;return!1}(n)?2:0,a=285===n.parent.kind;(!a||S&&a&&e.isExternalModule(n.parent))&&(t^=2,r=0);return l(n,t,r)}(n);return t===r?n.modifiers:e.createModifiersFromModifierFlags(r)}function ce(n,t){var r=c(n);return r||n===t.firstAccessor||(r=c(t.firstAccessor),E=e.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)),!r&&t.secondAccessor&&n!==t.secondAccessor&&(r=c(t.secondAccessor),E=e.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)),r}function de(n){var t=R.getAllAccessorDeclarations(n);if(n.kind===t.firstAccessor.kind){var r=ce(n,t),a=e.createProperty(void 0,i(n,void 0,t.setAccessor?0:64),n.name,n.questionToken,H(n,r),void 0),s=t.secondAccessor&&e.getLeadingCommentRangesOfNode(t.secondAccessor,_);if(s)for(var l=function(n){if(3===n.kind){var t=_.text.slice(n.pos+2,n.end-2),r=t.split(/\r\n?|\n/g);if(r.length>1){var i=r.slice(1),s=e.guessIndentation(i);t=o([r[0]],e.map(i,function(e){return e.slice(s)})).join(I)}e.addSyntheticLeadingComment(a,n.kind,t,n.hasTrailingNewLine)}},c=0,d=s;c<d.length;c++){l(d[c])}return a}}function ue(n){return e.createNodeArray(e.filter(e.map(n,function(n){return e.updateHeritageClause(n,e.visitNodes(e.createNodeArray(e.filter(n.types,function(t){return e.isEntityNameExpression(t.expression)||87===n.token&&97===t.expression.kind})),ne))}),function(e){return e.types&&!!e.types.length}))}}function i(n,t,r){return e.createModifiersFromModifierFlags(l(n,t,r))}function l(n,t,r){void 0===t&&(t=3067),void 0===r&&(r=0);var a=e.getModifierFlags(n)&t|r;return 512&a&&!(1&a)&&(a^=1),512&a&&2&a&&(a^=2),a}function c(e){if(e)return 159===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=a}(u||(u={})),function(e){var n,t;function r(n,t){return function(r){var a=n(r);return"function"==typeof a?t(a):function(n){return function(t){return e.isBundle(t)?n.transformBundle(t):n.transformSourceFile(t)}}(a)}}function a(n){return r(n,e.chainBundle)}function i(n){return r(n,e.identity)}function s(e,n){return n}function l(e,n,t){t(e,n)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(n||(n={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(t||(t={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(n,t,r){return{scriptTransformers:function(n,t,r){if(r)return e.emptyArray;var i=n.jsx,o=e.getEmitScriptTarget(n),s=e.getEmitModuleKind(n),l=[];return e.addRange(l,t&&e.map(t.before,a)),l.push(e.transformTypeScript),l.push(e.transformClassFields),2===i&&l.push(e.transformJsx),o<99&&l.push(e.transformESNext),o<6&&l.push(e.transformES2019),o<5&&l.push(e.transformES2018),o<4&&l.push(e.transformES2017),o<3&&l.push(e.transformES2016),o<2&&(l.push(e.transformES2015),l.push(e.transformGenerators)),l.push(function(n){switch(n){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(s)),o<1&&l.push(e.transformES5),e.addRange(l,t&&e.map(t.after,a)),l}(n,t,r),declarationTransformers:function(n){var t=[];return t.push(e.transformDeclarations),e.addRange(t,n&&e.map(n.afterDeclarations,i)),t}(t)}},e.noEmitSubstitution=s,e.noEmitNotification=l,e.transformNodes=function(n,t,r,a,i,c){for(var d,u,m,p=new Array(320),f=[],g=[],_=0,y=!1,v=s,h=l,b=0,E=[],T={getCompilerOptions:function(){return r},getEmitResolver:function(){return n},getEmitHost:function(){return t},startLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),f[_]=d,g[_]=u,_++,d=void 0,u=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is already suspended."),y=!0},resumeLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(y,"Lexical environment is not suspended."),y=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),(d||u)&&(u&&(n=o(u)),d)){var t=e.createVariableStatement(void 0,e.createVariableDeclarationList(d));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}return d=f[--_],u=g[_],0===_&&(f=[],g=[]),n},hoistVariableDeclaration:function(n){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(e.createVariableDeclaration(n),64);d?d.push(t):d=[t]},hoistFunctionDeclaration:function(n){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),u?u.push(n):u=[n]},requestEmitHelper:function(n){e.Debug.assert(b>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!n.scoped,"Cannot request a scoped emit helper."),m=e.append(m,n)},readEmitHelpers:function(){e.Debug.assert(b>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed.");var n=m;return m=void 0,n},enableSubstitution:function(n){e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),p[n]|=1},enableEmitNotification:function(n){e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),p[n]|=2},isSubstitutionEnabled:R,isEmitNotificationEnabled:M,get onSubstituteNode(){return v},set onSubstituteNode(n){e.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),v=n},get onEmitNode(){return h},set onEmitNode(n){e.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),h=n},addDiagnostic:function(e){E.push(e)}},S=0,L=a;S<L.length;S++){var A=L[S];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(A)))}e.performance.mark("beforeTransform");var x=i.map(function(e){return e(T)}),C=function(e){for(var n=0,t=x;n<t.length;n++)e=(0,t[n])(e);return e};b=1;var D=e.map(a,c?C:function(n){return!n||e.isSourceFile(n)&&n.isDeclarationFile?n:C(n)});return b=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:D,substituteNode:function(n,t){return e.Debug.assert(b<3,"Cannot substitute a node after the result is disposed."),t&&R(t)&&v(n,t)||t},emitNodeWithNotification:function(n,t,r){e.Debug.assert(b<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(M(t)?h(n,t,r):r(n,t))},dispose:function(){if(b<3){for(var n=0,t=a;n<t.length;n++){var r=t[n];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(r)))}d=void 0,f=void 0,u=void 0,g=void 0,v=void 0,h=void 0,m=void 0,b=3}},diagnostics:E};function R(n){return 0!=(1&p[n.kind])&&0==(4&e.getEmitFlags(n))}function M(n){return 0!=(2&p[n.kind])||0!=(2&e.getEmitFlags(n))}}}(u||(u={})),function(e){var n,t,r=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function i(n,t,r,a,i,o){void 0===a&&(a=!1);var l=e.isArray(r)?r:e.getSourceFilesToEmit(n,r),d=n.getCompilerOptions();if(d.outFile||d.out){var u=n.getPrependNodes();if(l.length||u.length){var m=e.createBundle(l,u);if(g=t(c(m,n,a),m))return g}}else{if(!i)for(var p=0,f=l;p<f.length;p++){var g,_=f[p];if(g=t(c(_,n,a),_))return g}if(o){var y=s(n.getCompilerOptions());if(y)return t({buildInfoPath:y},void 0)}}}function s(n){var t=n.configFilePath;if(e.isIncrementalCompilation(n)){if(n.tsBuildInfoFile)return n.tsBuildInfoFile;var r,a=n.outFile||n.out;if(a)r=e.removeFileExtension(a);else{if(!t)return;var i=e.removeFileExtension(t);r=n.outDir?n.rootDir?e.resolvePath(n.outDir,e.getRelativePathFromDirectory(n.rootDir,i,!0)):e.combinePaths(n.outDir,e.getBaseFileName(i)):i}return r+".tsbuildinfo"}}function l(n,t){var r=n.outFile||n.out,a=n.emitDeclarationOnly?void 0:r,i=a&&d(a,n),o=t||e.getEmitDeclarations(n)?e.removeFileExtension(r)+".d.ts":void 0;return{jsFilePath:a,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&e.getAreDeclarationMapsEnabled(n)?o+".map":void 0,buildInfoPath:s(n)}}function c(n,t,r){var a=t.getCompilerOptions();if(286===n.kind)return l(a,r);var i=e.getOwnEmitOutputFilePath(n.fileName,t,u(n,a)),o=e.isJsonSourceFile(n)&&0===e.comparePaths(n.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=a.emitDeclarationOnly||o?void 0:i,c=!s||e.isJsonSourceFile(n)?void 0:d(s,a),m=e.isSourceFileJS(n),p=!r&&!e.getEmitDeclarations(a)||m?void 0:e.getDeclarationEmitOutputFilePath(n.fileName,t);return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:p,declarationMapPath:p&&e.getAreDeclarationMapsEnabled(a)?p+".map":void 0,buildInfoPath:void 0}}function d(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function u(n,t){if(e.isJsonSourceFile(n))return".json";if(1===t.jsx)if(e.isSourceFileJS(n)){if(e.fileExtensionIs(n.fileName,".jsx"))return".jsx"}else if(1===n.languageVariant)return".jsx";return".js"}function m(n,t,r,a){return a?e.resolvePath(a,e.getRelativePathFromDirectory(function(n){return n.options.rootDir||e.getDirectoryPath(e.Debug.assertDefined(n.options.configFilePath))}(t),n,r)):n}function p(n,t,r){return e.Debug.assert(!e.fileExtensionIs(n,".d.ts")&&e.hasTSFileExtension(n)),e.changeExtension(m(n,t,r,t.options.declarationDir||t.options.outDir),".d.ts")}function f(n,t,r){var a=e.fileExtensionIs(n,".json"),i=e.changeExtension(m(n,t,r,t.options.outDir),a?".json":e.fileExtensionIs(n,".tsx")&&1===t.options.jsx?".jsx":".js");return a&&0===e.comparePaths(n,i,e.Debug.assertDefined(t.options.configFilePath),r)?void 0:i}function g(n,t,r,a,o,s){var l,c,d=a.scriptTransformers,u=a.declarationTransformers,m=t.getCompilerOptions(),p=m.sourceMap||m.inlineSourceMap||e.getAreDeclarationMapsEnabled(m)?[]:void 0,f=m.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),y=e.getNewLineCharacter(m,function(){return t.getNewLine()}),h=e.createTextWriter(y),b=e.performance.createTimer("printTime","beforePrint","afterPrint"),E=b.enter,T=b.exit,S=!1;return E(),i(t,function(a,i){var s,p=a.jsFilePath,y=a.sourceMapFilePath,h=a.declarationFilePath,b=a.declarationMapPath,E=a.buildInfoPath;E&&i&&e.isBundle(i)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(E,t.getCurrentDirectory())),l={commonSourceDirectory:T(t.getCommonSourceDirectory()),sourceFiles:i.sourceFiles.map(function(n){return T(e.getNormalizedAbsolutePath(n.fileName,t.getCurrentDirectory()))})});(function(r,a,i,s){if(r&&!o&&a)if(a&&t.isEmitBlocked(a)||m.noEmit)S=!0;else{var c=e.transformNodes(n,t,m,[r],d,!1),u=v({removeComments:m.removeComments,newLine:m.newLine,noEmitHelpers:m.noEmitHelpers,module:m.module,target:m.target,sourceMap:m.sourceMap,inlineSourceMap:m.inlineSourceMap,inlineSources:m.inlineSources,extendedDiagnostics:m.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:n.hasGlobalName,onEmitNode:c.emitNodeWithNotification,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),A(a,i,c.transformed[0],u,m),c.dispose(),l&&(l.js=u.bundleFileInfo)}})(i,p,y,T),function(r,a,i,s){if(r&&a&&!e.isInJSFile(r)){var d=e.isSourceFile(r)?[r]:r.sourceFiles,p=e.filter(d,e.isSourceFileNotJS),f=m.outFile||m.out?[e.createBundle(p,e.isSourceFile(r)?void 0:r.prepends)]:p;o&&!e.getEmitDeclarations(m)&&p.forEach(L);var _=e.transformNodes(n,t,m,f,u,!1);if(e.length(_.diagnostics))for(var y=0,h=_.diagnostics;y<h.length;y++){var b=h[y];g.add(b)}var E=v({removeComments:m.removeComments,newLine:m.newLine,noEmitHelpers:!0,module:m.module,target:m.target,sourceMap:m.sourceMap,inlineSourceMap:m.inlineSourceMap,extendedDiagnostics:m.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:n.hasGlobalName,onEmitNode:_.emitNodeWithNotification,substituteNode:_.substituteNode}),T=!!_.diagnostics&&!!_.diagnostics.length||!!t.isEmitBlocked(a)||!!m.noEmit;if(S=S||T,(!T||o)&&(e.Debug.assert(1===_.transformed.length,"Should only see one output from the decl transform"),A(a,i,_.transformed[0],E,{sourceMap:m.declarationMap,sourceRoot:m.sourceRoot,mapRoot:m.mapRoot,extendedDiagnostics:m.extendedDiagnostics}),o&&285===_.transformed[0].kind)){var x=_.transformed[0];c=x.exportedModulesFromDeclarationEmit}_.dispose(),l&&(l.dts=E.bundleFileInfo)}}(i,h,b,T),function(n,a){if(a&&!r&&!S){var i=t.getProgramBuildInfo();t.isEmitBlocked(a)||m.noEmit?S=!0:e.writeFile(t,g,a,_({bundle:n,program:i,version:e.version}),!1)}}(l,E),!S&&f&&(o||(p&&f.push(p),y&&f.push(y),E&&f.push(E)),h&&f.push(h),b&&f.push(b));function T(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,n,t.getCanonicalFileName))}},e.getSourceFilesToEmit(t,r),o,s,!r),T(),{emitSkipped:S,diagnostics:g.getDiagnostics(),emittedFiles:f,sourceMaps:p,exportedModulesFromDeclarationEmit:c};function L(t){e.isExportAssignment(t)?73===t.expression.kind&&n.collectLinkedAliases(t.expression,!0):e.isExportSpecifier(t)?n.collectLinkedAliases(t.propertyName||t.name,!0):e.forEachChild(t,L)}function A(n,r,a,i,o){var s,l=286===a.kind?a:void 0,c=285===a.kind?a:void 0,d=l?l.sourceFiles:[c];if(function(n,t){return(n.sourceMap||n.inlineSourceMap)&&(285!==t.kind||!e.fileExtensionIs(t.fileName,".json"))}(o,a)&&(s=e.createSourceMapGenerator(t,e.getBaseFileName(e.normalizeSlashes(n)),function(n){var t=e.normalizeSlashes(n.sourceRoot||"");return t?e.ensureTrailingDirectorySeparator(t):t}(o),function(n,r,a){if(n.sourceRoot)return t.getCommonSourceDirectory();if(n.mapRoot){var i=e.normalizeSlashes(n.mapRoot);return a&&(i=e.getDirectoryPath(e.getSourceFilePathInNewDir(a.fileName,t,i))),0===e.getRootLength(i)&&(i=e.combinePaths(t.getCommonSourceDirectory(),i)),i}return e.getDirectoryPath(e.normalizePath(r))}(o,n,c),o)),l?i.writeBundle(l,h,s):i.writeFile(c,h,s),s){p&&p.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var u=function(n,r,a,i,o){if(n.inlineSourceMap){var s=r.toString(),l=e.base64encode(e.sys,s);return"data:application/json;base64,"+l}var c=e.getBaseFileName(e.normalizeSlashes(e.Debug.assertDefined(i)));if(n.mapRoot){var d=e.normalizeSlashes(n.mapRoot);return o&&(d=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,t,d))),0===e.getRootLength(d)?(d=e.combinePaths(t.getCommonSourceDirectory(),d),e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(a)),e.combinePaths(d,c),t.getCurrentDirectory(),t.getCanonicalFileName,!0)):e.combinePaths(d,c)}return c}(o,s,n,r,c);if(u&&(h.isAtStartOfLine()||h.rawWrite(y),h.writeComment("//# sourceMappingURL="+u)),r){var f=s.toString();e.writeFile(t,g,r,f,!1,d)}}else h.writeLine();e.writeFile(t,g,n,h.getText(),!!m.emitBOM,d),h.clear()}}function _(e){return JSON.stringify(e,void 0,2)}function y(e){return JSON.parse(e)}function v(n,t){void 0===n&&(n={}),void 0===t&&(t={});var i,o,s,l,c,d,u,m,p,f,g,_,y,v,h,b=t.hasGlobalName,E=t.onEmitNode,T=void 0===E?e.noEmitNotification:E,S=t.substituteNode,L=void 0===S?e.noEmitSubstitution:S,A=t.onBeforeEmitNodeArray,x=t.onAfterEmitNodeArray,C=t.onBeforeEmitToken,D=t.onAfterEmitToken,R=!!n.extendedDiagnostics,M=e.getNewLineCharacter(n),I=e.getEmitModuleKind(n),O=e.createMap(),k=function(e){p.write(e)},N=n.writeBundleFileInfo?{sections:[]}:void 0,w=N?e.Debug.assertDefined(n.relativeToBuildInfo):void 0,P=n.recordInternalSection,G=0,F="text",V=!0,B=-1,U=-1,H=-1,K=-1,j=!1,W=!!n.removeComments,q=e.performance.createTimerIf(R,"commentTime","beforeComment","afterComment"),z=q.enter,X=q.exit;return ue(),{printNode:function(n,t,r){switch(n){case 0:e.Debug.assert(e.isSourceFile(t),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(t),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 285:return Y(t);case 286:return J(t);case 287:return function(e,n){var t=p;de(n,void 0),le(4,e,void 0),ue(),p=t}(t,oe()),se()}return Q(n,t,r,oe()),se()},printList:function(e,n,t){return Z(e,n,t,oe()),se()},printFile:Y,printBundle:J,writeNode:Q,writeList:Z,writeFile:ie,writeBundle:ae,bundleFileInfo:N};function J(e){return ae(e,oe(),void 0),se()}function Y(e){return ie(e,oe(),void 0),se()}function Q(e,n,t,r){var a=p;de(r,void 0),le(e,n,t),ue(),p=a}function Z(e,n,t,r){var i=p;de(r,void 0),t&&ce(t),fn(a,n,e),ue(),p=i}function $(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function ee(n,t,r){var a=e.lastOrUndefined(N.sections);a&&a.kind===r?a.end=t:N.sections.push({pos:n,end:t,kind:r})}function ne(n){if(P&&N&&i&&(e.isDeclaration(n)||e.isVariableStatement(n))&&e.isInternalDeclaration(n,i)&&"internal"!==F){var t=F;return re(p.getTextPos()),G=$(),F="internal",t}}function te(e){e&&(re(p.getTextPos()),G=$(),F=e)}function re(e){return G<e&&(ee(G,e,F),!0)}function ae(t,r,a){var i;g=!1;var o=p;de(r,a),en(t),$e(t),Ee(t),function(n){Je(!!n.hasNoDefaultLib,n.syntheticFileReferences||[],n.syntheticTypeReferences||[],n.syntheticLibReferences||[]);for(var t=0,r=n.prepends;t<r.length;t++){var a=r[t];if(e.isUnparsedSource(a)&&a.syntheticReferences)for(var i=0,o=a.syntheticReferences;i<o.length;i++){var s=o[i];pe(s),Cn()}}}(t);for(var s=0,l=t.prepends;s<l.length;s++){var c=l[s];Cn();var d=p.getTextPos(),u=N&&N.sections;if(u&&(N.sections=[]),le(4,c,void 0),N){var m=N.sections;N.sections=u,c.oldFileOfCurrentEmit?(i=N.sections).push.apply(i,m):(m.forEach(function(n){return e.Debug.assert(e.isBundleFileTextLike(n))}),N.sections.push({pos:d,end:p.getTextPos(),kind:"prepend",data:w(c.fileName),texts:m}))}}G=$();for(var f=0,_=t.sourceFiles;f<_.length;f++){var y=_[f];le(0,y,y)}if(N&&t.sourceFiles.length&&re(p.getTextPos())){var v=function(n){for(var t,r=e.createMap(),a=0;a<n.sourceFiles.length;a++){for(var i=n.sourceFiles[a],o=void 0,s=0,l=0,c=i.statements;l<c.length;l++){var d=c[l];if(!e.isPrologueDirective(d))break;r.has(d.expression.text)||(r.set(d.expression.text,!0),(o||(o=[])).push({pos:d.pos,end:d.end,expression:{pos:d.expression.pos,end:d.expression.end,text:d.expression.text}}),s=s<d.end?d.end:s)}o&&(t||(t=[])).push({file:a,text:i.text.substring(0,s),directives:o})}return t}(t);v&&(N.sources||(N.sources={}),N.sources.prologues=v);var h=function(t){var r;if(I===e.ModuleKind.None||n.noEmitHelpers)return;for(var a=e.createMap(),i=0,o=t.sourceFiles;i<o.length;i++){var s=o[i],l=void 0!==e.getExternalHelpersModuleName(s),c=Te(s);if(c)for(var d=0,u=c;d<u.length;d++){var m=u[d];m.scoped||l||a.get(m.name)||(a.set(m.name,!0),(r||(r=[])).push(m.name))}}return r}(t);h&&(N.sources||(N.sources={}),N.sources.helpers=h)}ue(),p=o}function ie(e,n,t){g=!0;var r=p;de(n,t),en(e),$e(e),le(0,e,e),ue(),p=r}function oe(){return f||(f=e.createTextWriter(M))}function se(){var e=f.getText();return f.clear(),e}function le(e,n,t){t&&ce(t),_e(0,n)(e,n)}function ce(e){i=e,v=void 0,h=void 0,e&&At(e)}function de(t,r){t&&n.omitTrailingSemicolon&&(t=e.getTrailingSemicolonOmittingWriter(t)),_=r,V=!(p=t)||!_}function ue(){o=[],s=[],l=e.createMap(),c=[],d=0,u=[],i=void 0,v=void 0,h=void 0,de(void 0,void 0)}function me(){return v||(v=e.getLineStarts(i))}function pe(e){if(void 0!==e){var n=ne(e);_e(0,e)(4,e),te(n)}}function fe(e){void 0!==e&&_e(0,e)(2,e)}function ge(e){void 0!==e&&_e(0,e)(1,e)}function _e(n,t){switch(n){case 0:if(T!==e.noEmitNotification)return ve;case 1:if(L!==e.noEmitSubstitution)return be;case 2:if(!W&&285!==t.kind)return it;case 3:if(!V&&285!==t.kind&&!e.isInJsonFile(t))return Et;case 4:return he;default:return e.Debug.assertNever(n)}}function ye(e,n){return _e(e+1,n)}function ve(e,n){var t=ye(0,n);T(e,n,t)}function he(t,r){if(0===t)return function(n){Cn();var t=n.statements;if(ct){var r=0===t.length||!e.isPrologueDirective(t[0])||e.nodeIsSynthesized(t[0]);if(r)return void ct(n,t,Ye)}Ye(n)}(e.cast(r,e.isSourceFile));if(2===t)return Ae(e.cast(r,e.isIdentifier));if(3===t)return function(e){pe(e.name),An(),En("in"),An(),pe(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),De(!0);if(4===t){if(e.isKeyword(r.kind))return In(r,En);switch(r.kind){case 15:case 16:case 17:return Se(r);case 287:case 281:return function(e){for(var n=0,t=e.texts;n<t.length;n++){var r=t[n];Cn(),pe(r)}}(r);case 280:return Le(r);case 282:case 283:return s=r,l=$(),Le(s),void(N&&ee(l,p.getTextPos(),282===s.kind?"text":"internal"));case 284:return function(n){var t=$();if(Le(n),N){var r=e.clone(n.section);r.pos=t,r.end=p.getTextPos(),N.sections.push(r)}}(r);case 73:return Ae(r);case 149:return function(e){(function(e){73===e.kind?ge(e):pe(e)})(e.left),hn("."),pe(e.right)}(r);case 150:return function(e){hn("["),ge(e.expression),hn("]")}(r);case 151:return function(e){pe(e.name),e.constraint&&(An(),En("extends"),An(),pe(e.constraint));e.default&&(An(),Tn("="),An(),pe(e.default))}(r);case 152:return function(e){cn(e,e.decorators),tn(e,e.modifiers),pe(e.dotDotDotToken),nn(e.name,Sn),pe(e.questionToken),e.parent&&295===e.parent.kind&&!e.name?pe(e.type):rn(e.type);an(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)}(r);case 153:return o=r,hn("@"),void ge(o.expression);case 154:return function(e){cn(e,e.decorators),tn(e,e.modifiers),nn(e.name,xn),pe(e.questionToken),rn(e.type),bn()}(r);case 155:return function(e){cn(e,e.decorators),tn(e,e.modifiers),pe(e.name),pe(e.questionToken),pe(e.exclamationToken),rn(e.type),an(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),bn()}(r);case 156:return function(e){qn(e),cn(e,e.decorators),tn(e,e.modifiers),pe(e.name),pe(e.questionToken),un(e,e.typeParameters),mn(e,e.parameters),rn(e.type),bn(),zn(e)}(r);case 157:return function(e){cn(e,e.decorators),tn(e,e.modifiers),pe(e.asteriskToken),pe(e.name),pe(e.questionToken),Ne(e,we)}(r);case 158:return function(e){tn(e,e.modifiers),En("constructor"),Ne(e,we)}(r);case 159:case 160:return function(e){cn(e,e.decorators),tn(e,e.modifiers),En(159===e.kind?"get":"set"),An(),pe(e.name),Ne(e,we)}(r);case 161:return function(e){qn(e),cn(e,e.decorators),tn(e,e.modifiers),un(e,e.typeParameters),mn(e,e.parameters),rn(e.type),bn(),zn(e)}(r);case 162:return function(e){qn(e),cn(e,e.decorators),tn(e,e.modifiers),En("new"),An(),un(e,e.typeParameters),mn(e,e.parameters),rn(e.type),bn(),zn(e)}(r);case 163:return function(e){cn(e,e.decorators),tn(e,e.modifiers),n=e,t=e.parameters,fn(n,t,8848),rn(e.type),bn();var n,t}(r);case 164:return function(e){pe(e.parameterName),An(),En("is"),An(),pe(e.type)}(r);case 165:return function(e){pe(e.typeName),dn(e,e.typeArguments)}(r);case 166:return function(e){qn(e),un(e,e.typeParameters),pn(e,e.parameters),An(),hn("=>"),An(),pe(e.type),zn(e)}(r);case 295:return function(e){En("function"),mn(e,e.parameters),hn(":"),pe(e.type)}(r);case 167:return function(e){qn(e),En("new"),An(),un(e,e.typeParameters),mn(e,e.parameters),An(),hn("=>"),An(),pe(e.type),zn(e)}(r);case 168:return function(e){En("typeof"),An(),pe(e.exprName)}(r);case 169:return function(n){hn("{");var t=1&e.getEmitFlags(n)?768:32897;fn(n,n.members,524288|t),hn("}")}(r);case 170:return function(e){pe(e.elementType),hn("["),hn("]")}(r);case 171:return function(e){hn("["),fn(e,e.elementTypes,528),hn("]")}(r);case 172:return function(e){pe(e.type),hn("?")}(r);case 174:return function(e){fn(e,e.types,516)}(r);case 175:return function(e){fn(e,e.types,520)}(r);case 176:return function(e){pe(e.checkType),An(),En("extends"),An(),pe(e.extendsType),An(),hn("?"),An(),pe(e.trueType),An(),hn(":"),An(),pe(e.falseType)}(r);case 177:return function(e){En("infer"),An(),pe(e.typeParameter)}(r);case 178:return function(e){hn("("),pe(e.type),hn(")")}(r);case 212:return function(e){ge(e.expression),dn(e,e.typeArguments)}(r);case 179:return void En("this");case 180:return function(e){On(e.operator,En),An(),pe(e.type)}(r);case 181:return function(e){pe(e.objectType),hn("["),pe(e.indexType),hn("]")}(r);case 182:return function(n){var t=e.getEmitFlags(n);hn("{"),1&t?An():(Cn(),Dn());n.readonlyToken&&(pe(n.readonlyToken),134!==n.readonlyToken.kind&&En("readonly"),An());hn("["),_e(0,n.typeParameter)(3,n.typeParameter),hn("]"),n.questionToken&&(pe(n.questionToken),56!==n.questionToken.kind&&hn("?"));hn(":"),An(),pe(n.type),bn(),1&t?An():(Cn(),Rn());hn("}")}(r);case 183:return function(e){ge(e.literal)}(r);case 184:return function(e){e.isTypeOf&&(En("typeof"),An());En("import"),hn("("),pe(e.argument),hn(")"),e.qualifier&&(hn("."),pe(e.qualifier));dn(e,e.typeArguments)}(r);case 290:return void hn("*");case 291:return void hn("?");case 292:return function(e){hn("?"),pe(e.type)}(r);case 293:return function(e){hn("!"),pe(e.type)}(r);case 294:return function(e){pe(e.type),hn("=")}(r);case 173:case 296:return function(e){hn("..."),pe(e.type)}(r);case 185:return function(e){hn("{"),fn(e,e.elements,525136),hn("}")}(r);case 186:return function(e){hn("["),fn(e,e.elements,524880),hn("]")}(r);case 187:return function(e){pe(e.dotDotDotToken),e.propertyName&&(pe(e.propertyName),hn(":"),An());pe(e.name),an(e.initializer,e.name.end,e)}(r);case 217:return function(e){ge(e.expression),pe(e.literal)}(r);case 218:return void bn();case 219:return function(e){Ce(e,!e.multiLine&&Hn(e))}(r);case 220:return function(e){tn(e,e.modifiers),pe(e.declarationList),bn()}(r);case 221:return De(!1);case 222:return function(n){ge(n.expression),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(n.expression))&&bn()}(r);case 223:return function(e){var n=Ie(92,e.pos,En,e);An(),Ie(20,n,hn,e),ge(e.expression),Ie(21,e.expression.end,hn,e),ln(e,e.thenStatement),e.elseStatement&&(kn(e),Ie(84,e.thenStatement.end,En,e),223===e.elseStatement.kind?(An(),pe(e.elseStatement)):ln(e,e.elseStatement))}(r);case 224:return function(n){Ie(83,n.pos,En,n),ln(n,n.statement),e.isBlock(n.statement)?An():kn(n);Re(n,n.statement.end),hn(";")}(r);case 225:return function(e){Re(e,e.pos),ln(e,e.statement)}(r);case 226:return function(e){var n=Ie(90,e.pos,En,e);An();var t=Ie(20,n,hn,e);Me(e.initializer),t=Ie(26,e.initializer?e.initializer.end:t,hn,e),sn(e.condition),t=Ie(26,e.condition?e.condition.end:t,hn,e),sn(e.incrementor),Ie(21,e.incrementor?e.incrementor.end:t,hn,e),ln(e,e.statement)}(r);case 227:return function(e){var n=Ie(90,e.pos,En,e);An(),Ie(20,n,hn,e),Me(e.initializer),An(),Ie(94,e.initializer.end,En,e),An(),ge(e.expression),Ie(21,e.expression.end,hn,e),ln(e,e.statement)}(r);case 228:return function(e){var n=Ie(90,e.pos,En,e);An(),function(e){e&&(pe(e),An())}(e.awaitModifier),Ie(20,n,hn,e),Me(e.initializer),An(),Ie(148,e.initializer.end,En,e),An(),ge(e.expression),Ie(21,e.expression.end,hn,e),ln(e,e.statement)}(r);case 229:return function(e){Ie(79,e.pos,En,e),on(e.label),bn()}(r);case 230:return function(e){Ie(74,e.pos,En,e),on(e.label),bn()}(r);case 231:return function(e){Ie(98,e.pos,En,e),sn(e.expression),bn()}(r);case 232:return function(e){var n=Ie(109,e.pos,En,e);An(),Ie(20,n,hn,e),ge(e.expression),Ie(21,e.expression.end,hn,e),ln(e,e.statement)}(r);case 233:return function(e){var n=Ie(100,e.pos,En,e);An(),Ie(20,n,hn,e),ge(e.expression),Ie(21,e.expression.end,hn,e),An(),pe(e.caseBlock)}(r);case 234:return function(e){pe(e.label),Ie(57,e.label.end,hn,e),An(),pe(e.statement)}(r);case 235:return function(e){Ie(102,e.pos,En,e),sn(e.expression),bn()}(r);case 236:return function(e){Ie(104,e.pos,En,e),An(),pe(e.tryBlock),e.catchClause&&(kn(e),pe(e.catchClause));e.finallyBlock&&(kn(e),Ie(89,(e.catchClause||e.tryBlock).end,En,e),An(),pe(e.finallyBlock))}(r);case 237:return function(e){Mn(80,e.pos,En),bn()}(r);case 238:return function(e){pe(e.name),rn(e.type),an(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 239:return function(n){En(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),An(),fn(n,n.declarations,528)}(r);case 240:return function(e){Oe(e)}(r);case 241:return function(e){Ve(e)}(r);case 242:return function(e){cn(e,e.decorators),tn(e,e.modifiers),En("interface"),An(),pe(e.name),un(e,e.typeParameters),fn(e,e.heritageClauses,512),An(),hn("{"),fn(e,e.members,129),hn("}")}(r);case 243:return function(e){cn(e,e.decorators),tn(e,e.modifiers),En("type"),An(),pe(e.name),un(e,e.typeParameters),An(),hn("="),An(),pe(e.type),bn()}(r);case 244:return function(e){tn(e,e.modifiers),En("enum"),An(),pe(e.name),An(),hn("{"),fn(e,e.members,145),hn("}")}(r);case 245:return function(e){tn(e,e.modifiers),512&~e.flags&&(En(16&e.flags?"namespace":"module"),An());pe(e.name);var n=e.body;if(!n)return bn();for(;245===n.kind;)hn("."),pe(n.name),n=n.body;An(),pe(n)}(r);case 246:return function(n){qn(n),e.forEach(n.statements,Jn),Ce(n,Hn(n)),zn(n)}(r);case 247:return function(e){Ie(18,e.pos,hn,e),fn(e,e.clauses,129),Ie(19,e.clauses.end,hn,e,!0)}(r);case 248:return function(e){var n=Ie(86,e.pos,En,e);An(),n=Ie(120,n,En,e),An(),n=Ie(132,n,En,e),An(),pe(e.name),bn()}(r);case 249:return function(e){tn(e,e.modifiers),Ie(93,e.modifiers?e.modifiers.end:e.pos,En,e),An(),pe(e.name),An(),Ie(60,e.name.end,hn,e),An(),function(e){73===e.kind?ge(e):pe(e)}(e.moduleReference),bn()}(r);case 250:return function(e){tn(e,e.modifiers),Ie(93,e.modifiers?e.modifiers.end:e.pos,En,e),An(),e.importClause&&(pe(e.importClause),An(),Ie(145,e.importClause.end,En,e),An());ge(e.moduleSpecifier),bn()}(r);case 251:return function(e){pe(e.name),e.name&&e.namedBindings&&(Ie(27,e.name.end,hn,e),An());pe(e.namedBindings)}(r);case 252:return function(e){var n=Ie(40,e.pos,hn,e);An(),Ie(120,n,En,e),An(),pe(e.name)}(r);case 253:return function(e){Be(e)}(r);case 254:return function(e){Ue(e)}(r);case 255:return function(e){var n=Ie(86,e.pos,En,e);An(),e.isExportEquals?Ie(60,n,Tn,e):Ie(81,n,En,e);An(),ge(e.expression),bn()}(r);case 256:return function(e){var n=Ie(86,e.pos,En,e);An(),e.exportClause?pe(e.exportClause):n=Ie(40,n,hn,e);if(e.moduleSpecifier){An();var t=e.exportClause?e.exportClause.end:n;Ie(145,t,En,e),An(),ge(e.moduleSpecifier)}bn()}(r);case 257:return function(e){Be(e)}(r);case 258:return function(e){Ue(e)}(r);case 259:return;case 260:return function(e){En("require"),hn("("),ge(e.expression),hn(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 263:case 266:return function(n){hn("<"),e.isJsxOpeningElement(n)&&(He(n.tagName),dn(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&An(),pe(n.attributes));hn(">")}(r);case 264:case 267:return function(n){hn("</"),e.isJsxClosingElement(n)&&He(n.tagName);hn(">")}(r);case 268:return function(e){pe(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",hn,e.initializer,pe)}(r);case 269:return function(e){fn(e,e.properties,262656)}(r);case 270:return function(e){hn("{..."),ge(e.expression),hn("}")}(r);case 271:return function(e){e.expression&&(hn("{"),pe(e.dotDotDotToken),ge(e.expression),hn("}"))}(r);case 272:return function(e){Ie(75,e.pos,En,e),An(),ge(e.expression),Ke(e,e.statements,e.expression.end)}(r);case 273:return function(e){var n=Ie(81,e.pos,En,e);Ke(e,e.statements,n)}(r);case 274:return function(e){An(),On(e.token,En),An(),fn(e,e.types,528)}(r);case 275:return function(e){var n=Ie(76,e.pos,En,e);An(),e.variableDeclaration&&(Ie(20,n,hn,e),pe(e.variableDeclaration),Ie(21,e.variableDeclaration.end,hn,e),An());pe(e.block)}(r);case 276:return function(n){pe(n.name),hn(":"),An();var t=n.initializer;if(_t&&0==(512&e.getEmitFlags(t))){var r=e.getCommentRange(t);_t(r.pos)}ge(t)}(r);case 277:return function(e){pe(e.name),e.objectAssignmentInitializer&&(An(),hn("="),An(),ge(e.objectAssignmentInitializer))}(r);case 278:return function(e){e.expression&&(Ie(25,e.pos,hn,e),ge(e.expression))}(r);case 279:return function(e){pe(e.name),an(e.initializer,e.name.end,e)}(r);case 307:case 313:return function(e){qe(e.tagName),Xe(e.typeExpression),An(),e.isBracketed&&hn("[");pe(e.name),e.isBracketed&&hn("]");ze(e.comment)}(r);case 308:case 310:case 309:case 306:return qe((a=r).tagName),Xe(a.typeExpression),void ze(a.comment);case 302:return function(e){qe(e.tagName),An(),hn("{"),pe(e.class),hn("}"),ze(e.comment)}(r);case 311:return function(e){qe(e.tagName),Xe(e.constraint),An(),fn(e,e.typeParameters,528),ze(e.comment)}(r);case 312:return function(e){qe(e.tagName),e.typeExpression&&(289===e.typeExpression.kind?Xe(e.typeExpression):(An(),hn("{"),k("Object"),e.typeExpression.isArrayType&&(hn("["),hn("]")),hn("}")));e.fullName&&(An(),pe(e.fullName));ze(e.comment),e.typeExpression&&299===e.typeExpression.kind&&je(e.typeExpression)}(r);case 305:return function(e){qe(e.tagName),e.name&&(An(),pe(e.name));ze(e.comment),We(e.typeExpression)}(r);case 300:return We(r);case 299:return je(r);case 304:case 301:return function(e){qe(e.tagName),ze(e.comment)}(r);case 298:return function(e){if(k("/**"),e.comment)for(var n=e.comment.split(/\r\n?|\n/g),t=0,r=n;t<r.length;t++){var a=r[t];Cn(),An(),hn("*"),An(),k(a)}e.tags&&(1!==e.tags.length||310!==e.tags[0].kind||e.comment?fn(e,e.tags,33):(An(),pe(e.tags[0])));An(),k("*/")}(r)}if(e.isExpression(r))t=1,L!==e.noEmitSubstitution&&(r=L(t,r));else if(e.isToken(r))return In(r,hn)}var a,o,s,l;if(1===t)switch(r.kind){case 8:case 9:return function(e){Se(e)}(r);case 10:case 13:case 14:return Se(r);case 73:return Ae(r);case 88:case 97:case 99:case 103:case 101:case 93:return void In(r,En);case 188:return function(e){var n=e.elements,t=e.multiLine?65536:0;gn(e,n,8914|t)}(r);case 189:return function(n){e.forEach(n.properties,Yn);var t=65536&e.getEmitFlags(n);t&&Dn();var r=n.multiLine?65536:0,a=i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;fn(n,n.properties,526226|a|r),t&&Rn()}(r);case 190:return function(t){var r=!1,a=!1,o=e.skipTrivia(i.text,t.expression.end,!1,!0),s=e.skipTrivia(i.text,o),l=s+1;if(!(131072&e.getEmitFlags(t))){var c=e.createToken(24);c.pos=t.expression.end,c.end=l,r=Un(t,t.expression,c),a=Un(t,c,t.name)}ge(t.expression),wn(r,!1);var d=o!==s;!r&&function(t,r){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var a=Wn(t,!0);return!t.numericLiteralFlags&&!e.stringContains(a,e.tokenToString(24))&&(!r||n.removeComments)}if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)){var i=e.getConstantValue(t);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&n.removeComments}}(t.expression,d)&&hn(".");Ie(24,t.expression.end,hn,t),wn(a,!1),pe(t.name),Pn(r,a)}(r);case 191:return function(e){ge(e.expression),Ie(22,e.expression.end,hn,e),ge(e.argumentExpression),Ie(23,e.argumentExpression.end,hn,e)}(r);case 192:return function(e){ge(e.expression),dn(e,e.typeArguments),gn(e,e.arguments,2576)}(r);case 193:return function(e){Ie(96,e.pos,En,e),An(),ge(e.expression),dn(e,e.typeArguments),gn(e,e.arguments,18960)}(r);case 194:return function(e){ge(e.tag),dn(e,e.typeArguments),An(),ge(e.template)}(r);case 195:return function(e){hn("<"),pe(e.type),hn(">"),ge(e.expression)}(r);case 196:return function(e){var n=Ie(20,e.pos,hn,e);ge(e.expression),Ie(21,e.expression?e.expression.end:n,hn,e)}(r);case 197:return function(e){Qn(e.name),Oe(e)}(r);case 198:return function(e){cn(e,e.decorators),tn(e,e.modifiers),Ne(e,xe)}(r);case 199:return function(e){Ie(82,e.pos,En,e),An(),ge(e.expression)}(r);case 200:return function(e){Ie(105,e.pos,En,e),An(),ge(e.expression)}(r);case 201:return function(e){Ie(107,e.pos,En,e),An(),ge(e.expression)}(r);case 202:return function(e){Ie(123,e.pos,En,e),An(),ge(e.expression)}(r);case 203:return function(e){On(e.operator,Tn),function(e){var n=e.operand;return 203===n.kind&&(38===e.operator&&(38===n.operator||44===n.operator)||39===e.operator&&(39===n.operator||45===n.operator))}(e)&&An();ge(e.operand)}(r);case 204:return function(e){ge(e.operand),On(e.operator,Tn)}(r);case 205:return function(e){var n=27!==e.operatorToken.kind,t=Un(e,e.left,e.operatorToken),r=Un(e,e.operatorToken,e.right);ge(e.left),wn(t,n),ft(e.operatorToken.pos),In(e.operatorToken,94===e.operatorToken.kind?En:Tn),_t(e.operatorToken.end,!0),wn(r,!0),ge(e.right),Pn(t,r)}(r);case 206:return function(e){var n=Un(e,e.condition,e.questionToken),t=Un(e,e.questionToken,e.whenTrue),r=Un(e,e.whenTrue,e.colonToken),a=Un(e,e.colonToken,e.whenFalse);ge(e.condition),wn(n,!0),pe(e.questionToken),wn(t,!0),ge(e.whenTrue),Pn(n,t),wn(r,!0),pe(e.colonToken),wn(a,!0),ge(e.whenFalse),Pn(r,a)}(r);case 207:return function(e){pe(e.head),fn(e,e.templateSpans,262144)}(r);case 208:return function(e){Ie(118,e.pos,En,e),pe(e.asteriskToken),sn(e.expression)}(r);case 209:return function(e){Ie(25,e.pos,hn,e),ge(e.expression)}(r);case 210:return function(e){Qn(e.name),Ve(e)}(r);case 211:return;case 213:return function(e){ge(e.expression),e.type&&(An(),En("as"),An(),pe(e.type))}(r);case 214:return function(e){ge(e.expression),Tn("!")}(r);case 215:return function(e){Mn(e.keywordToken,e.pos,hn),hn("."),pe(e.name)}(r);case 261:return function(e){pe(e.openingElement),fn(e,e.children,262144),pe(e.closingElement)}(r);case 262:return function(e){hn("<"),He(e.tagName),dn(e,e.typeArguments),An(),pe(e.attributes),hn("/>")}(r);case 265:return function(e){pe(e.openingFragment),fn(e,e.children,262144),pe(e.closingFragment)}(r);case 316:return function(e){ge(e.expression)}(r);case 317:return function(e){gn(e,e.elements,528)}(r)}}function be(e,n){ye(1,n)(e,L(e,n))}function Ee(t){var r=!1,a=286===t.kind?t:void 0;if(!a||I!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,l=0;l<s;l++){var c=a?l<o?a.prepends[l]:a.sourceFiles[l-o]:t,d=e.isSourceFile(c)?c:e.isUnparsedSource(c)?void 0:i,u=n.noEmitHelpers||!!d&&e.hasRecordedExternalHelpers(d),m=(e.isSourceFile(c)||e.isUnparsedSource(c))&&!g,f=e.isUnparsedSource(c)?c.helpers:Te(c);if(f)for(var _=0,y=f;_<y.length;_++){var v=y[_];if(v.scoped){if(a)continue}else{if(u)continue;if(m){if(O.get(v.name))continue;O.set(v.name,!0)}}var h=$();"string"==typeof v.text?Nn(v.text):Nn(v.text(at)),N&&N.sections.push({pos:h,end:p.getTextPos(),kind:"emitHelpers",data:v.name}),r=!0}}return r}}function Te(n){var t=e.getEmitHelpers(n);return t&&e.stableSort(t,e.compareEmitHelpers)}function Se(t){var r,a=Wn(t,n.neverAsciiEscape);!n.sourceMap&&!n.inlineSourceMap||10!==t.kind&&!e.isTemplateLiteralKind(t.kind)?function(e){p.writeStringLiteral(e)}(a):(r=a,p.writeLiteral(r))}function Le(e){p.rawWrite(e.parent.text.substring(e.pos,e.end))}function Ae(e){(e.symbol?vn:k)(jn(e,!1),e.symbol),fn(e,e.typeArguments,53776)}function xe(e){un(e,e.typeParameters),pn(e,e.parameters),rn(e.type),An(),pe(e.equalsGreaterThanToken)}function Ce(n,t){Ie(18,n.pos,hn,n);var r=t||1&e.getEmitFlags(n)?768:129;fn(n,n.statements,r),Ie(19,n.statements.end,hn,n,!!(1&r))}function De(e){e?hn(";"):bn()}function Re(e,n){var t=Ie(108,n,En,e);An(),Ie(20,t,hn,e),ge(e.expression),Ie(21,e.expression.end,hn,e)}function Me(e){void 0!==e&&(239===e.kind?pe(e):ge(e))}function Ie(n,t,r,a,o){var s=e.getParseTreeNode(a),l=s&&s.kind===a.kind,c=t;if(l&&(t=e.skipTrivia(i.text,t)),ft&&l&&a.pos!==c){var d=o&&!e.positionsAreOnSameLine(c,t,i);d&&Dn(),ft(c),d&&Rn()}return t=On(n,r,t),_t&&l&&a.end!==t&&_t(t,!0),t}function Oe(e){cn(e,e.decorators),tn(e,e.modifiers),En("function"),pe(e.asteriskToken),An(),fe(e.name),Ne(e,we)}function ke(e,n){Pe(n)}function Ne(n,t){var r=n.body;if(r)if(e.isBlock(r)){var a=65536&e.getEmitFlags(n);a&&Dn(),qn(n),e.forEach(n.parameters,Jn),Jn(n.body),t(n),T?T(4,r,ke):Pe(r),zn(n),a&&Rn()}else t(n),An(),ge(r);else t(n),bn()}function we(e){un(e,e.typeParameters),mn(e,e.parameters),rn(e.type)}function Pe(n){An(),hn("{"),Dn();var t=function(n){if(1&e.getEmitFlags(n))return!0;if(n.multiLine)return!1;if(!e.nodeIsSynthesized(n)&&!e.rangeIsOnSingleLine(n,i))return!1;if(Gn(n,n.statements,2)||Vn(n,n.statements,2))return!1;for(var t,r=0,a=n.statements;r<a.length;r++){var o=a[r];if(Fn(t,o,2))return!1;t=o}return!0}(n)?Ge:Fe;ct?ct(n,n.statements,t):t(n),Rn(),Mn(19,n.statements.end,hn,n)}function Ge(e){Fe(e,!0)}function Fe(e,n){var t=Qe(e.statements),r=p.getTextPos();Ee(e),0===t&&r===p.getTextPos()&&n?(Rn(),fn(e,e.statements,768),Dn()):fn(e,e.statements,1,t)}function Ve(n){e.forEach(n.members,Yn),cn(n,n.decorators),tn(n,n.modifiers),En("class"),n.name&&(An(),fe(n.name));var t=65536&e.getEmitFlags(n);t&&Dn(),un(n,n.typeParameters),fn(n,n.heritageClauses,0),An(),hn("{"),fn(n,n.members,129),hn("}"),t&&Rn()}function Be(e){hn("{"),fn(e,e.elements,525136),hn("}")}function Ue(e){e.propertyName&&(pe(e.propertyName),An(),Ie(120,e.propertyName.end,En,e),An()),pe(e.name)}function He(e){73===e.kind?ge(e):pe(e)}function Ke(n,t,r){var a=163969;1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],i))?(Mn(57,r,hn,n),An(),a&=-130):Ie(57,r,hn,n),fn(n,t,a)}function je(n){fn(n,e.createNodeArray(n.jsDocPropertyTags),33)}function We(n){n.typeParameters&&fn(n,e.createNodeArray(n.typeParameters),33),n.parameters&&fn(n,e.createNodeArray(n.parameters),33),n.type&&(Cn(),An(),hn("*"),An(),pe(n.type))}function qe(e){hn("@"),pe(e)}function ze(e){e&&(An(),k(e))}function Xe(e){e&&(An(),hn("{"),pe(e.type),hn("}"))}function Je(e,n,t,r){if(e){var a=p.getTextPos();Ln('/// <reference no-default-lib="true"/>'),N&&N.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),Cn()}if(i&&i.moduleName&&(Ln('/// <amd-module name="'+i.moduleName+'" />'),Cn()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o<s.length;o++){var l=s[o];l.name?Ln('/// <amd-dependency name="'+l.name+'" path="'+l.path+'" />'):Ln('/// <amd-dependency path="'+l.path+'" />'),Cn()}for(var c=0,d=n;c<d.length;c++){var u=d[c];a=p.getTextPos();Ln('/// <reference path="'+u.fileName+'" />'),N&&N.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:u.fileName}),Cn()}for(var m=0,f=t;m<f.length;m++){u=f[m],a=p.getTextPos();Ln('/// <reference types="'+u.fileName+'" />'),N&&N.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:u.fileName}),Cn()}for(var g=0,_=r;g<_.length;g++){u=_[g],a=p.getTextPos();Ln('/// <reference lib="'+u.fileName+'" />'),N&&N.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:u.fileName}),Cn()}}function Ye(n){var t=n.statements;qn(n),e.forEach(n.statements,Jn),Ee(n);var r=e.findIndex(t,function(n){return!e.isPrologueDirective(n)});!function(e){e.isDeclarationFile&&Je(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(n),fn(n,t,1,-1===r?t.length:r),zn(n)}function Qe(n,t,r,a){for(var i=!!t,o=0;o<n.length;o++){var s=n[o];if(!e.isPrologueDirective(s))return o;if(!r||!r.has(s.expression.text)){i&&(i=!1,ce(t)),Cn();var l=p.getTextPos();pe(s),a&&N&&N.sections.push({pos:l,end:p.getTextPos(),kind:"prologue",data:s.expression.text}),r&&r.set(s.expression.text,!0)}}return n.length}function Ze(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];if(!n.has(a.data)){Cn();var i=p.getTextPos();pe(a),N&&N.sections.push({pos:i,end:p.getTextPos(),kind:"prologue",data:a.data}),n&&n.set(a.data,!0)}}}function $e(n){if(e.isSourceFile(n))Qe(n.statements,n);else{for(var t=e.createMap(),r=0,a=n.prepends;r<a.length;r++){Ze(a[r].prologues,t)}for(var i=0,o=n.sourceFiles;i<o.length;i++){var s=o[i];Qe(s.statements,s,t,!0)}ce(void 0)}}function en(n){if(e.isSourceFile(n)||e.isUnparsedSource(n)){var t=e.getShebang(n.text);if(t)return Ln(t),Cn(),!0}else{for(var r=0,a=n.prepends;r<a.length;r++){var i=a[r];if(e.Debug.assertNode(i,e.isUnparsedSource),en(i))return!0}for(var o=0,s=n.sourceFiles;o<s.length;o++){if(en(s[o]))return!0}}}function nn(e,n){if(e){var t=k;k=n,pe(e),k=t}}function tn(e,n){n&&n.length&&(fn(e,n,262656),An())}function rn(e){e&&(hn(":"),An(),pe(e))}function an(e,n,t){e&&(An(),Ie(60,n,Tn,t),An(),ge(e))}function on(e){e&&(An(),pe(e))}function sn(e){e&&(An(),ge(e))}function ln(n,t){if(e.isBlock(t)||1&e.getEmitFlags(n))An(),pe(t);else{if(Cn(),Dn(),e.isEmptyStatement(t))_e(0,t)(5,t);else pe(t);Rn()}}function cn(e,n){fn(e,n,49153)}function dn(e,n){fn(e,n,53776)}function un(n,t){if(e.isFunctionLike(n)&&n.typeArguments)return dn(n,n.typeArguments);fn(n,t,53776)}function mn(e,n){fn(e,n,2576)}function pn(n,t){!function(n,t){var r=e.singleOrUndefined(t);return r&&r.pos===n.pos&&e.isArrowFunction(n)&&!n.type&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!e.some(n.typeParameters)&&!e.some(r.decorators)&&!e.some(r.modifiers)&&!r.dotDotDotToken&&!r.questionToken&&!r.type&&!r.initializer&&e.isIdentifier(r.name)}(n,t)?mn(n,t):fn(n,t,528)}function fn(e,n,t,r,a){yn(pe,e,n,t,r,a)}function gn(e,n,t,r,a){yn(ge,e,n,t,r,a)}function _n(e){switch(60&e){case 0:break;case 16:hn(",");break;case 4:An(),hn("|");break;case 32:An(),hn("*"),An();break;case 8:An(),hn("&")}}function yn(n,t,a,i,o,s){void 0===o&&(o=0),void 0===s&&(s=a?a.length-o:0);var l=void 0===a;if(!(l&&16384&i)){var c=void 0===a||o>=a.length||0===s;if(c&&32768&i)return A&&A(a),void(x&&x(a));if(15360&i&&(hn(function(e){return r[15360&e][0]}(i)),c&&!l&&_t(a.pos,!0)),A&&A(a),c)1&i?Cn():256&i&&!(524288&i)&&An();else{var d=0==(262144&i),u=d;Gn(t,a,i)?(Cn(),u=!1):256&i&&An(),128&i&&Dn();for(var m=void 0,p=void 0,f=!1,g=0;g<s;g++){var _=a[o+g];if(32&i?(Cn(),_n(i)):m&&(60&i&&m.end!==t.end&&ft(m.end),_n(i),te(p),Fn(m,_,i)?(0==(131&i)&&(Dn(),f=!0),Cn(),u=!1):m&&512&i&&An()),p=ne(_),u){if(_t)_t(e.getCommentRange(_).pos)}else u=d;n(_),f&&(Rn(),f=!1),m=_}var y=64&i&&a.hasTrailingComma;16&i&&y&&hn(","),m&&60&i&&m.end!==t.end&&!(1024&e.getEmitFlags(m))&&ft(m.end),128&i&&Rn(),te(p),Vn(t,a,i)?Cn():256&i&&An()}x&&x(a),15360&i&&(c&&!l&&ft(a.end),hn(function(e){return r[15360&e][1]}(i)))}}function vn(e,n){p.writeSymbol(e,n)}function hn(e){p.writePunctuation(e)}function bn(){p.writeTrailingSemicolon(";")}function En(e){p.writeKeyword(e)}function Tn(e){p.writeOperator(e)}function Sn(e){p.writeParameter(e)}function Ln(e){p.writeComment(e)}function An(){p.writeSpace(" ")}function xn(e){p.writeProperty(e)}function Cn(){p.writeLine()}function Dn(){p.increaseIndent()}function Rn(){p.decreaseIndent()}function Mn(n,t,r,a){return V?On(n,r,t):function(n,t,r,a,i){if(V||n&&e.isInJsonFile(n))return i(t,r,a);var o=n&&n.emitNode,s=o&&o.flags||0,l=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=l&&l.source||y;a=Tt(c,l?l.pos:a),0==(128&s)&&a>=0&&Lt(c,a);a=i(t,r,a),l&&(a=l.end);0==(256&s)&&a>=0&&Lt(c,a);return a}(a,n,r,t,On)}function In(n,t){C&&C(n),t(e.tokenToString(n.kind)),D&&D(n)}function On(n,t,r){var a=e.tokenToString(n);return t(a),r<0?r:r+a.length}function kn(n){1&e.getEmitFlags(n)?An():Cn()}function Nn(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),a=0,i=t;a<i.length;a++){var o=i[a],s=r?o.slice(r):o;s.length&&(Cn(),k(s))}}function wn(e,n){e?(Dn(),Cn()):n&&An()}function Pn(e,n){e&&Rn(),n&&Rn()}function Gn(n,t,r){if(1&r)return!0;if(2&r){if(65536&r)return!0;var a=t[0];return void 0===a?!e.rangeIsOnSingleLine(n,i):e.positionIsSynthesized(n.pos)||e.nodeIsSynthesized(a)?Bn(a,r):!e.rangeStartPositionsAreOnSameLine(n,a,i)}return!1}function Fn(n,t,r){return!!(1&r)||(2&r?void 0!==n&&void 0!==t&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t)?Bn(n,r)||Bn(t,r):!e.rangeEndIsOnSameLineAsRangeStart(n,t,i)):e.getStartsOnNewLine(t))}function Vn(n,t,r){if(1&r)return 0==(131072&r);if(2&r){if(65536&r)return!0;var a=e.lastOrUndefined(t);return void 0===a?!e.rangeIsOnSingleLine(n,i):e.positionIsSynthesized(n.pos)||e.nodeIsSynthesized(a)?Bn(a,r):!e.rangeEndPositionsAreOnSameLine(n,a,i)}return!1}function Bn(n,t){if(e.nodeIsSynthesized(n)){var r=e.getStartsOnNewLine(n);return void 0===r?0!=(65536&t):r}return 0!=(65536&t)}function Un(n,t,r){return n=Kn(n),t=Kn(t),r=Kn(r),!!e.getStartsOnNewLine(r)||!(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.rangeEndIsOnSameLineAsRangeStart(t,r,i))}function Hn(n){return 0===n.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(n,n,i)}function Kn(n){for(;196===n.kind&&e.nodeIsSynthesized(n);)n=n.expression;return n}function jn(n,t){return e.isGeneratedIdentifier(n)?Zn(n):e.isIdentifier(n)&&(e.nodeIsSynthesized(n)||!n.parent||!i||n.parent&&i&&e.getSourceFileOfNode(n)!==e.getOriginalNode(i))?e.idText(n):10===n.kind&&n.textSourceNode?jn(n.textSourceNode,t):!e.isLiteralExpression(n)||!e.nodeIsSynthesized(n)&&n.parent?e.getSourceTextOfNodeFromSourceFile(i,n,t):n.text}function Wn(n,t){if(10===n.kind&&n.textSourceNode){var r=n.textSourceNode;return e.isIdentifier(r)?t||16777216&e.getEmitFlags(n)?'"'+e.escapeString(jn(r))+'"':'"'+e.escapeNonAsciiString(jn(r))+'"':Wn(r,t)}return e.getLiteralText(n,i,t)}function qn(n){n&&524288&e.getEmitFlags(n)||(c.push(d),d=0,u.push(m))}function zn(n){n&&524288&e.getEmitFlags(n)||(d=c.pop(),m=u.pop())}function Xn(n){m&&m!==e.lastOrUndefined(u)||(m=e.createMap()),m.set(n,!0)}function Jn(n){if(n)switch(n.kind){case 219:e.forEach(n.statements,Jn);break;case 234:case 232:case 224:case 225:Jn(n.statement);break;case 223:Jn(n.thenStatement),Jn(n.elseStatement);break;case 226:case 228:case 227:Jn(n.initializer),Jn(n.statement);break;case 233:Jn(n.caseBlock);break;case 247:e.forEach(n.clauses,Jn);break;case 272:case 273:e.forEach(n.statements,Jn);break;case 236:Jn(n.tryBlock),Jn(n.catchClause),Jn(n.finallyBlock);break;case 275:Jn(n.variableDeclaration),Jn(n.block);break;case 220:Jn(n.declarationList);break;case 239:e.forEach(n.declarations,Jn);break;case 238:case 152:case 187:case 241:Qn(n.name);break;case 240:Qn(n.name),524288&e.getEmitFlags(n)&&(e.forEach(n.parameters,Jn),Jn(n.body));break;case 185:case 186:e.forEach(n.elements,Jn);break;case 250:Jn(n.importClause);break;case 251:Qn(n.name),Jn(n.namedBindings);break;case 252:Qn(n.name);break;case 253:e.forEach(n.elements,Jn);break;case 254:Qn(n.propertyName||n.name)}}function Yn(e){if(e)switch(e.kind){case 276:case 277:case 155:case 157:case 159:case 160:Qn(e.name)}}function Qn(n){n&&(e.isGeneratedIdentifier(n)?Zn(n):e.isBindingPattern(n)&&Jn(n))}function Zn(n){if(4==(7&n.autoGenerateFlags))return $n(function(n){var t=n.autoGenerateId,r=n,a=r.original;for(;a&&(r=a,!(e.isIdentifier(r)&&4&r.autoGenerateFlags&&r.autoGenerateId!==t));)a=r.original;return r}(n),n.autoGenerateFlags);var t=n.autoGenerateId;return s[t]||(s[t]=function(n){switch(7&n.autoGenerateFlags){case 1:return tt(0,!!(8&n.autoGenerateFlags));case 2:return tt(268435456,!!(8&n.autoGenerateFlags));case 3:return rt(e.idText(n),32&n.autoGenerateFlags?nt:et,!!(16&n.autoGenerateFlags),!!(8&n.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(n))}function $n(n,t){var r=e.getNodeId(n);return o[r]||(o[r]=function(n,t){switch(n.kind){case 73:return rt(jn(n),et,!!(16&t),!!(8&t));case 245:case 244:return function(n){var t=jn(n.name);return function(n,t){for(var r=t;e.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var a=r.locals.get(e.escapeLeadingUnderscores(n));if(a&&3257279&a.flags)return!1}return!0}(t,n)?t:rt(t)}(n);case 250:case 256:return function(n){var t=e.getExternalModuleName(n);return rt(e.isStringLiteral(t)?e.makeIdentifierFromModuleName(t.text):"module")}(n);case 240:case 241:case 255:return rt("default");case 210:return rt("class");case 157:case 159:case 160:return function(n){if(e.isIdentifier(n.name))return $n(n.name);return tt(0)}(n);case 150:return tt(0,!0);default:return tt(0)}}(n,t))}function et(e){return nt(e)&&!l.has(e)&&!(m&&m.has(e))}function nt(n){return!i||e.isFileLevelUniqueName(i,n,b)}function tt(e,n){if(e&&!(d&e)&&et(t=268435456===e?"_i":"_n"))return d|=e,n&&Xn(t),t;for(;;){var t,r=268435455&d;if(d++,8!==r&&13!==r)if(et(t=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return n&&Xn(t),t}}function rt(e,n,t,r){if(void 0===n&&(n=et),t&&n(e))return r?Xn(e):l.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var a=1;;){var i=e+a;if(n(i))return r?Xn(i):l.set(i,!0),i;a++}}function at(e){return rt(e,nt,!0)}function it(n,t){z(),j=!1;var r=e.getEmitFlags(t),a=e.getCommentRange(t),i=a.pos,o=a.end,s=315!==t.kind,l=i<0||0!=(512&r)||11===t.kind,c=o<0||0!=(1024&r)||11===t.kind,d=U,u=H,m=K;(i>0||o>0)&&i!==o&&(l||dt(i,s),(!l||i>=0&&0!=(512&r))&&(U=i),(!c||o>=0&&0!=(1024&r))&&(H=o,239===t.kind&&(K=o))),e.forEach(e.getSyntheticLeadingComments(t),ot),X();var p=ye(2,t);2048&r?(W=!0,p(n,t),W=!1):p(n,t),z(),e.forEach(e.getSyntheticTrailingComments(t),st),(i>0||o>0)&&i!==o&&(U=d,H=u,K=m,!c&&s&&function(e){ht(e,gt)}(o)),X()}function ot(e){2===e.kind&&p.writeLine(),lt(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function st(e){p.isAtStartOfLine()||p.writeSpace(" "),lt(e),e.hasTrailingNewLine&&p.writeLine()}function lt(n){var t=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(n),r=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,r,p,0,t.length,M)}function ct(n,t,r){z();var a,o,s=t.pos,l=t.end,c=e.getEmitFlags(n),d=W||l<0||0!=(1024&c);s<0||0!=(512&c)||(a=t,(o=e.emitDetachedComments(i.text,me(),p,bt,a,M,W))&&(h?h.push(o):h=[o])),X(),2048&c&&!W?(W=!0,r(n),W=!1):r(n),z(),d||(dt(t.end,!0),j&&!p.isAtStartOfLine()&&p.writeLine()),X()}function dt(e,n){j=!1,n?vt(e,pt):0===e&&vt(e,ut)}function ut(n,t,r,a,o){(function(n,t){return e.isRecognizedTripleSlashComment(i.text,n,t)})(n,t)&&pt(n,t,r,a,o)}function mt(t,r){return!n.onlyPrintJsDocStyle||(e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r))}function pt(n,t,r,a,o){mt(i.text,n)&&(j||(e.emitNewLineBeforeLeadingCommentOfPosition(me(),p,o,n),j=!0),St(n),e.writeCommentRange(i.text,me(),p,n,t,M),St(t),a?p.writeLine():3===r&&p.writeSpace(" "))}function ft(e){W||-1===e||dt(e,!0)}function gt(n,t,r,a){mt(i.text,n)&&(p.isAtStartOfLine()||p.writeSpace(" "),St(n),e.writeCommentRange(i.text,me(),p,n,t,M),St(t),a&&p.writeLine())}function _t(e,n){W||(z(),ht(e,n?gt:yt),X())}function yt(n,t,r,a){St(n),e.writeCommentRange(i.text,me(),p,n,t,M),St(t),a?p.writeLine():p.writeSpace(" ")}function vt(n,t){!i||-1!==U&&n===U||(function(n){return void 0!==h&&e.last(h).nodePos===n}(n)?function(n){var t=e.last(h).detachedCommentEndPos;h.length-1?h.pop():h=void 0;e.forEachLeadingCommentRange(i.text,t,n,t)}(t):e.forEachLeadingCommentRange(i.text,n,t,n))}function ht(n,t){i&&(-1===H||n!==H&&n!==K)&&e.forEachTrailingCommentRange(i.text,n,t)}function bt(n,t,r,a,o,s){mt(i.text,a)&&(St(a),e.writeCommentRange(n,t,r,a,o,s),St(o))}function Et(n,t){var r=ye(3,t);if(e.isUnparsedSource(t)||e.isUnparsedPrepend(t))r(n,t);else if(e.isUnparsedNode(t)){var a=function(n){return void 0===n.parsedSourceMap&&void 0!==n.sourceMapText&&(n.parsedSourceMap=e.tryParseRawSourceMap(n.sourceMapText)||!1),n.parsedSourceMap||void 0}(t.parent);a&&_&&_.appendSourceMap(p.getLine(),p.getColumn(),a,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end)),r(n,t)}else{var i=e.getSourceMapRange(t),o=i.pos,s=i.end,l=i.source,c=void 0===l?y:l,d=e.getEmitFlags(t);315!==t.kind&&0==(16&d)&&o>=0&&Lt(c,Tt(c,o)),64&d?(V=!0,r(n,t),V=!1):r(n,t),315!==t.kind&&0==(32&d)&&s>=0&&Lt(c,s)}}function Tt(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function St(n){if(!(V||e.positionIsSynthesized(n)||xt(y))){var t=e.getLineAndCharacterOfPosition(y,n),r=t.line,a=t.character;_.addMapping(p.getLine(),p.getColumn(),B,r,a,void 0)}}function Lt(e,n){if(e!==y){var t=y;At(e),St(n),At(t)}else St(n)}function At(e){V||(y=e,xt(e)||(B=_.addSource(e.fileName),n.inlineSources&&_.setSourceContent(B,e.text)))}function xt(n){return e.fileExtensionIs(n.fileName,".json")}}e.isBuildInfoFile=function(n){return e.fileExtensionIs(n,".tsbuildinfo")},e.forEachEmittedFile=i,e.getOutputPathForBuildInfo=s,e.getOutputPathsForBundle=l,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getAllProjectOutputs=function(n,t){var r,a=function(e){return e&&(r||(r=[])).push(e)};if(n.options.outFile||n.options.out){var i=l(n.options,!1),o=i.jsFilePath,c=i.sourceMapFilePath,d=i.declarationFilePath,u=i.declarationMapPath,m=i.buildInfoPath;a(o),a(c),a(d),a(u),a(m)}else{for(var g=0,_=n.fileNames;g<_.length;g++){var y=_[g];if(!e.fileExtensionIs(y,".d.ts")){var v=f(y,n,t);if(a(v),!e.fileExtensionIs(y,".json")&&(n.options.sourceMap&&a(v+".map"),e.getEmitDeclarations(n.options)&&e.hasTSFileExtension(y))){var h=p(y,n,t);a(h),n.options.declarationMap&&a(h+".map")}}}a(s(n.options))}return r||e.emptyArray},e.getFirstProjectOutput=function(n,t){if(n.options.outFile||n.options.out){var r=l(n.options,!1).jsFilePath;return e.Debug.assertDefined(r,"project "+n.options.configFilePath+" expected to have at least one output")}for(var a=0,i=n.fileNames;a<i.length;a++){var o=i[a];if(!e.fileExtensionIs(o,".d.ts")&&(r=f(o,n,t)))return r}var c=s(n.options);return c||e.Debug.fail("project "+n.options.configFilePath+" expected to have at least one output")},e.emitFiles=g,e.getBuildInfoText=_,e.getBuildInfo=y,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented},e.emitUsingBuildInfo=function(n,t,r,a){var i=l(n.options,!1),s=i.buildInfoPath,c=i.jsFilePath,d=i.sourceMapFilePath,u=i.declarationFilePath,m=i.declarationMapPath,p=t.readFile(e.Debug.assertDefined(s));if(!p)return s;var f=t.readFile(e.Debug.assertDefined(c));if(!f)return c;var v=d&&t.readFile(d);if(d&&!v||n.options.inlineSourceMap)return d||"inline sourcemap decoding";var h=u&&t.readFile(u);if(u&&!h)return u;var b=m&&t.readFile(m);if(m&&!b||n.options.inlineSourceMap)return m||"inline sourcemap decoding";var E=y(p);if(!E.bundle||!E.bundle.js||h&&!E.bundle.dts)return s;var T=e.getDirectoryPath(e.getNormalizedAbsolutePath(s,t.getCurrentDirectory())),S=e.createInputFiles(f,h,d,v,m,b,c,u,s,E,!0),L=[],A=e.createPrependNodes(n.projectReferences,r,function(e){return t.readFile(e)}),x=function(n,t,r){var a=n.sourceFiles.map(function(n){var a=e.createNode(285,0,0);return a.fileName=e.getRelativePathFromDirectory(r.getCurrentDirectory(),e.getNormalizedAbsolutePath(n,t),!r.useCaseSensitiveFileNames()),a.text="",a.statements=e.createNodeArray(),a}),i=e.Debug.assertDefined(n.js);return e.forEach(i.sources&&i.sources.prologues,function(n){var t=a[n.file];t.text=n.text,t.end=n.text.length,t.statements=e.createNodeArray(n.directives.map(function(n){var t=e.createNode(222,n.pos,n.end);return t.expression=e.createNode(10,n.expression.pos,n.expression.end),t.expression.text=n.expression.text,t}))}),a}(E.bundle,T,t),C={getPrependNodes:e.memoize(function(){return o(A,[S])}),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(E.bundle.commonSourceDirectory,T)},getCompilerOptions:function(){return n.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return x},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,writeFile:function(n,t,r){switch(n){case c:if(f===t)return;break;case d:if(v===t)return;break;case s:var a=y(t);a.program=E.program;var i=E.bundle,o=i.js,l=i.dts,p=i.sourceFiles;return a.bundle.js.sources=o.sources,l&&(a.bundle.dts.sources=l.sources),a.bundle.sourceFiles=p,void L.push({name:n,text:_(a),writeByteOrderMark:r});case u:if(h===t)return;break;case m:if(b===t)return;break;default:e.Debug.fail("Unexpected path: "+n)}L.push({name:n,text:t,writeByteOrderMark:r})},isEmitBlocked:e.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},directoryExists:t.directoryExists&&function(e){return t.directoryExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap()};return g(e.notImplementedResolver,C,void 0,e.getTransformers(n.options,a)),L},function(e){e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"}(n||(n={})),e.createPrinter=v,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(t||(t={}))}(u||(u={})),function(e){var n;function t(e,n,t,r){return e.watchFile(n,t,r)}function r(e,n,t,r){return e.watchDirectory(n,t,0!=(1&r))}function a(e,t){switch(e){case n.None:return t;case n.TriggerOnly:return s;case n.Verbose:return t===r?o:i}}function i(e,n,t,r,a,i,o,c,d,u,m){d(u+":: Added:: "+l(n,r,i,o,m));var p=s(e,n,t,r,a,i,o,c,d,u,m);return{close:function(){d(u+":: Close:: "+l(n,r,i,o,m)),p.close()}}}function o(n,t,r,a,i,o,c,d,u,m,p){var f=m+":: Added:: "+l(t,a,o,c,p);u(f);var g=e.timestamp(),_=s(n,t,r,a,i,o,c,d,u,m,p),y=e.timestamp()-g;return u("Elapsed:: "+y+"ms "+f),{close:function(){var n=m+":: Close:: "+l(t,a,o,c,p);u(n);var r=e.timestamp();_.close();var i=e.timestamp()-r;u("Elapsed:: "+i+"ms "+n)}}}function s(n,t,r,a,i,o,s,c,d,u,m){return c(n,t,function(n,c){var p=u+":: Triggered with "+n+" "+(void 0!==c?c:"")+":: "+l(t,a,o,s,m);d(p);var f=e.timestamp();r(n,c,i);var g=e.timestamp()-f;d("Elapsed:: "+g+"ms "+p)},a)}function l(e,n,t,r,a){return"WatchInfo: "+e+" "+n+" "+(a?a(t,r):void 0===r?t:t+" "+r)}function c(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(n,t,r){if(n.getDirectories&&n.readDirectory){var a=e.createMap(),i=e.createGetCanonicalFileName(r);return{useCaseSensitiveFileNames:r,fileExists:function(e){var t=l(o(e));return t&&m(t.files,c(e))||n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:n.directoryExists&&function(t){var r=o(t);return a.has(e.ensureTrailingDirectorySeparator(r))||n.directoryExists(t)},getDirectories:function(e){var t=o(e),r=d(e,t);return r?r.directories.slice():n.getDirectories(e)},readDirectory:function(a,i,s,l,c){var u=o(a),m=d(a,u);return m?e.matchFiles(a,i,s,l,r,t,c,function(n){var t=o(n);return t===u?m:d(n,t)||e.emptyFileSystemEntries},f):n.readDirectory(a,i,s,l,c)},createDirectory:n.createDirectory&&function(e){var t=l(o(e)),r=c(e);t&&p(t.directories,r,!0),n.createDirectory(e)},writeFile:n.writeFile&&function(e,t,r){var a=l(o(e));return a&&g(a,c(e),!0),n.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(s(t))_();else{var r=l(t);if(r){if(n.directoryExists){var a=c(e),i={fileExists:n.fileExists(t),directoryExists:n.directoryExists(t)};return i.directoryExists||m(r.directories,a)?_():g(r,a,i.fileExists),i}_()}}},addOrDeleteFile:function(n,t,r){if(r!==e.FileWatcherEventKind.Changed){var a=l(t);a&&g(a,c(n),r===e.FileWatcherEventKind.Created)}},clearCache:_,realpath:n.realpath&&f}}function o(n){return e.toPath(n,t,i)}function s(n){return a.get(e.ensureTrailingDirectorySeparator(n))}function l(n){return s(e.getDirectoryPath(n))}function c(n){return e.getBaseFileName(e.normalizePath(n))}function d(t,r){var i=s(r=e.ensureTrailingDirectorySeparator(r));if(i)return i;try{return function(t,r){var i={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:n.getDirectories(t)||[]};return a.set(e.ensureTrailingDirectorySeparator(r),i),i}(t,r)}catch(n){return void e.Debug.assert(!a.has(e.ensureTrailingDirectorySeparator(r)))}}function u(e,n){return i(e)===i(n)}function m(n,t){return e.some(n,function(e){return u(e,t)})}function p(n,t,r){if(m(n,t)){if(!r)return e.filterMutate(n,function(e){return!u(e,t)})}else if(r)return n.push(t)}function f(e){return n.realpath?n.realpath(e):e}function g(e,n,t){p(e.files,n,t)}function _(){a.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=function(n,t,r){var a=n.getMissingFilePaths(),i=e.arrayToSet(a);e.mutateMap(t,i,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(n,t,r){function a(e,n){return{watcher:r(e,n),flags:n}}e.mutateMap(n,t,{createNewValue:a,onDeleteValue:c,onExistingValue:function(e,t,r){e.flags!==t&&(e.watcher.close(),n.set(r,a(r,t)))}})},e.isEmittedFileOfProgram=function(e,n){return!!e&&e.isEmittedFile(n)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(n=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(i,o,s){return function(t,r,i,o,s){var l=a(t,o),c=t===n.None?function(e,n,t,r,a){return o(e,n,function(e,n){return t(e,n,a)},r)}:l,d=a(t,s);return t===n.Verbose&&e.sysLog===e.noop&&(e.sysLog=function(e){return r(e)}),{watchFile:function(e,n,t,a,s,c){return l(e,n,t,a,void 0,s,c,o,r,"FileWatcher",i)},watchFilePath:function(e,n,t,a,s,l,d){return c(e,n,t,a,s,l,d,o,r,"FileWatcher",i)},watchDirectory:function(e,n,t,a,o,l){return d(e,n,t,a,void 0,o,l,s,r,"DirectoryWatcher",i)}}}(i,o,s,t,r)},e.closeFileWatcherOf=c}(u||(u={})),function(e){var n,t=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function r(n,t){var r=e.getDirectoryPath(t),a=e.isRootedDiskPath(n)?n:e.combinePaths(r,n);return e.normalizePath(a)}function a(n,t,r){var a;return e.forEach(n,function(n){var i=e.getNormalizedPathComponents(n,t);if(i.pop(),a){for(var o=Math.min(a.length,i.length),s=0;s<o;s++)if(r(a[s])!==r(i[s])){if(0===s)return!0;a.length=s;break}i.length<a.length&&(a.length=i.length)}else a=i})?"":a?e.getPathFromPathComponents(a):t}function i(e,n){return l(e,n)}function l(n,t,r){void 0===r&&(r=e.sys);var a,i=e.createMap(),o=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames);function s(n){n.length>e.getRootLength(n)&&!function(e){return!!i.has(e)||!!r.directoryExists(e)&&(i.set(e,!0),!0)}(n)&&(s(e.getDirectoryPath(n)),u.createDirectory?u.createDirectory(n):r.createDirectory(n))}function l(){return e.getDirectoryPath(e.normalizePath(r.getExecutingFilePath()))}var c=e.getNewLineCharacter(n,function(){return r.newLine}),d=r.realpath&&function(e){return r.realpath(e)},u={getSourceFile:function(n,r,a){var i;try{e.performance.mark("beforeIORead"),i=u.readFile(n),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),i=""}return void 0!==i?e.createSourceFile(n,i,r,t):void 0},getDefaultLibLocation:l,getDefaultLibFileName:function(n){return e.combinePaths(l(),e.getDefaultLibFileName(n))},writeFile:function(t,i,o,l){try{e.performance.mark("beforeIOWrite"),s(e.getDirectoryPath(e.normalizePath(t))),e.isWatchSet(n)&&r.createHash&&r.getModifiedTime?function(n,t,i){a||(a=e.createMap());var o=r.createHash(t),s=r.getModifiedTime(n);if(s){var l=a.get(n);if(l&&l.byteOrderMark===i&&l.hash===o&&l.mtime.getTime()===s.getTime())return}r.writeFile(n,t,i);var c=r.getModifiedTime(n)||e.missingFileModifiedTime;a.set(n,{hash:o,byteOrderMark:i,mtime:c})}(t,i,o):r.writeFile(t,i,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){l&&l(e.message)}},getCurrentDirectory:e.memoize(function(){return r.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return r.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return c},fileExists:function(e){return r.fileExists(e)},readFile:function(e){return r.readFile(e)},trace:function(e){return r.write(e+c)},directoryExists:function(e){return r.directoryExists(e)},getEnvironmentVariable:function(e){return r.getEnvironmentVariable?r.getEnvironmentVariable(e):""},getDirectories:function(e){return r.getDirectories(e)},realpath:d,readDirectory:function(e,n,t,a,i){return r.readDirectory(e,n,t,a,i)},createDirectory:function(e){return r.createDirectory(e)},createHash:e.maybeBind(r,r.createHash)};return u}function c(n,t){var r=e.diagnosticCategoryName(n)+" TS"+n.code+": "+E(n.messageText,t.getNewLine())+t.getNewLine();if(n.file){var a=e.getLineAndCharacterOfPosition(n.file,n.start),i=a.line,o=a.character,s=n.file.fileName;return e.convertToRelativePath(s,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)})+"("+(i+1)+","+(o+1)+"): "+r}return r}e.findConfigFile=function(n,t,r){return void 0===r&&(r="tsconfig.json"),e.forEachAncestorDirectory(n,function(n){var a=e.combinePaths(n,r);return t(a)?a:void 0})},e.resolveTripleslashReference=r,e.computeCommonSourceDirectoryOfFilenames=a,e.createCompilerHost=i,e.createCompilerHostWorker=l,e.changeCompilerHostLikeToUseCache=function(n,t,r){var a=n.readFile,i=n.fileExists,o=n.directoryExists,s=n.createDirectory,l=n.writeFile,c=e.createMap(),d=e.createMap(),u=e.createMap(),m=e.createMap(),p=function(e,t){var r=a.call(n,t);return c.set(e,void 0!==r&&r),r};n.readFile=function(r){var i=t(r),o=c.get(i);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(r,".json")||e.isBuildInfoFile(r)?p(i,r):a.call(n,r)};var f=r?function(n,a,i,o){var s=t(n),l=m.get(s);if(l)return l;var c=r(n,a,i,o);return c&&(e.isDeclarationFileName(n)||e.fileExtensionIs(n,".json"))&&m.set(s,c),c}:void 0;return n.fileExists=function(e){var r=t(e),a=d.get(r);if(void 0!==a)return a;var o=i.call(n,e);return d.set(r,!!o),o},l&&(n.writeFile=function(e,r,a,i,o){var s=t(e);d.delete(s);var u=c.get(s);if(void 0!==u&&u!==r)c.delete(s),m.delete(s);else if(f){var p=m.get(s);p&&p.text!==r&&m.delete(s)}l.call(n,e,r,a,i,o)}),o&&s&&(n.directoryExists=function(e){var r=t(e),a=u.get(r);if(void 0!==a)return a;var i=o.call(n,e);return u.set(r,!!i),i},n.createDirectory=function(e){var r=t(e);u.delete(r),s.call(n,e)}),{originalReadFile:a,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:l,getSourceFileWithCache:f,readFileWithCache:function(e){var n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:p(n,e)}}},e.getPreEmitDiagnostics=function(n,t,r){var a=o(n.getConfigFileParsingDiagnostics(),n.getOptionsDiagnostics(r),n.getSyntacticDiagnostics(t,r),n.getGlobalDiagnostics(r),n.getSemanticDiagnostics(t,r));return e.getEmitDeclarations(n.getCompilerOptions())&&e.addRange(a,n.getDeclarationDiagnostics(t,r)),e.sortAndDeduplicateDiagnostics(a)},e.formatDiagnostics=function(e,n){for(var t="",r=0,a=e;r<a.length;r++)t+=c(a[r],n);return t},e.formatDiagnostic=c,function(e){e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"}(n=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var d="[7m",u=" ",m="[0m",p="...",f="  ",g="    ";function _(t){switch(t){case e.DiagnosticCategory.Error:return n.Red;case e.DiagnosticCategory.Warning:return n.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return n.Blue}}function y(e,n){return n+e+m}function v(e,n){for(;e.length<n;)e=" "+e;return e}function h(n,t,r,a,i,o){var s=e.getLineAndCharacterOfPosition(n,t),l=s.line,c=s.character,f=e.getLineAndCharacterOfPosition(n,t+r),g=f.line,_=f.character,h=e.getLineAndCharacterOfPosition(n,n.text.length).line,b=g-l>=4,E=(g+1+"").length;b&&(E=Math.max(p.length,E));for(var T="",S=l;S<=g;S++){T+=o.getNewLine(),b&&l+1<S&&S<g-1&&(T+=a+y(v(p,E),d)+u+o.getNewLine(),S=g-1);var L=e.getPositionOfLineAndCharacter(n,S,0),A=S<h?e.getPositionOfLineAndCharacter(n,S+1,0):n.text.length,x=n.text.slice(L,A);if(x=(x=x.replace(/\s+$/g,"")).replace("\t"," "),T+=a+y(v(S+1+"",E),d)+u,T+=x+o.getNewLine(),T+=a+y(v("",E),d)+u,T+=i,S===l){var C=S===g?_:void 0;T+=x.slice(0,c).replace(/\S/g," "),T+=x.slice(c,C).replace(/./g,"~")}else T+=S===g?x.slice(0,_).replace(/./g,"~"):x.replace(/./g,"~");T+=m}return T}function b(t,r,a,i){void 0===i&&(i=y);var o=e.getLineAndCharacterOfPosition(t,r),s=o.line,l=o.character,c="";return c+=i(a?e.convertToRelativePath(t.fileName,a.getCurrentDirectory(),function(e){return a.getCanonicalFileName(e)}):t.fileName,n.Cyan),c+=":",c+=i(""+(s+1),n.Yellow),c+=":",c+=i(""+(l+1),n.Yellow)}function E(n,t,r){if(void 0===r&&(r=0),e.isString(n))return n;if(void 0===n)return"";var a="";if(r){a+=t;for(var i=0;i<r;i++)a+="  "}if(a+=n.messageText,r++,n.next)for(var o=0,s=n.next;o<s.length;o++){a+=E(s[o],t,r)}return a}function T(n,t,r,a){if(0===n.length)return[];for(var i=[],o=e.createMap(),s=0,l=n;s<l.length;s++){var c=l[s],d=void 0;o.has(c)?d=o.get(c):o.set(c,d=a(c,t,r)),i.push(d)}return i}function S(n,t){return void 0===t&&(t=n),{fileExists:function(e){return t.fileExists(e)},readDirectory:function(n,r,a,i,o){return e.Debug.assertDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,r,a,i,o)},readFile:function(e){return t.readFile(e)},useCaseSensitiveFileNames:n.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return n.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:n.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:n.trace?function(e){return n.trace(e)}:void 0}}function L(n,t,r){if(!n)return e.emptyArray;for(var a,i=0;i<n.length;i++){var o=n[i],s=t(o,i);if(o.prepend&&s&&s.options){if(!(s.options.outFile||s.options.out))continue;var l=e.getOutputPathsForBundle(s.options,!0),c=l.jsFilePath,d=l.sourceMapFilePath,u=l.declarationFilePath,m=l.declarationMapPath,p=l.buildInfoPath,f=e.createInputFiles(r,c,d,u,m,p);(a||(a=[])).push(f)}}return a||e.emptyArray}function A(n,t){var r=t||n;return e.resolveConfigFileProjectName(r.path)}function x(e){return e.declaration?"declaration":"composite"}function C(n,t){switch(t.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||a();case".js":return a();case".json":return n.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function r(){return n.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function a(){return n.allowJs||!e.getStrictOptionValue(n,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function D(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];10===o.kind&&r.push(o.text)}return r}e.formatColorAndReset=y,e.formatLocation=b,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var a="",i=0,o=t;i<o.length;i++){var s=o[i];if(s.file&&(a+=b(u=s.file,m=s.start,r),a+=" - "),a+=y(e.diagnosticCategoryName(s),_(s.category)),a+=y(" TS"+s.code+": ",n.Grey),a+=E(s.messageText,r.getNewLine()),s.file&&(a+=r.getNewLine(),a+=h(s.file,s.start,s.length,"",_(s.category),r),s.relatedInformation)){a+=r.getNewLine();for(var l=0,c=s.relatedInformation;l<c.length;l++){var d=c[l],u=d.file,m=d.start,p=d.length,v=d.messageText;u&&(a+=r.getNewLine(),a+=f+b(u,m,r),a+=h(u,m,p,g,n.Cyan,r)),a+=r.getNewLine(),a+=g+E(v,r.getNewLine())}}a+=r.getNewLine()}return a},e.flattenDiagnosticMessageText=E,e.loadWithLocalCache=T,e.isProgramUptoDate=function(n,t,r,a,i,o,s,l){if(!n||s)return!1;if(n.getRootFileNames().length!==t.length)return!1;var c;if(!e.arrayIsEqualTo(n.getProjectReferences(),l,function(t,r,a){return!!e.projectReferenceIsEqualTo(t,r)&&function n(t,r){return t?!!e.contains(c,t)||!!u(t.sourceFile)&&((c||(c=[])).push(t),!e.forEach(t.references,function(e,r){return!n(e,t.commandLine.projectReferences[r])})):!i(A(r))}(n.getResolvedProjectReferences()[a],t)}))return!1;if(n.getSourceFiles().some(function(e){return!u(e)||o(e.path)}))return!1;if(n.getMissingFilePaths().some(i))return!1;var d=n.getCompilerOptions();return!(!e.compareDataObjects(d,r)||d.configFile&&r.configFile&&d.configFile.text!==r.configFile.text);function u(e){return e.version===a(e.resolvedPath)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?o(e.options.configFile.parseDiagnostics,e.errors):e.errors},e.createProgram=function(n,l,c,d,u){var m,p,f,g,_,y,v,h,b=e.isArray(n)?function(e,n,t,r,a){return{rootNames:e,options:n,host:t,oldProgram:r,configFileParsingDiagnostics:a}}(n,l,c,d,u):n,E=b.rootNames,R=b.options,M=b.configFileParsingDiagnostics,I=b.projectReferences,O=b.oldProgram,k=e.createMap(),N={},w={},P=e.createMap(),G=e.createDiagnosticCollection(),F="number"==typeof R.maxNodeModuleJsDepth?R.maxNodeModuleJsDepth:0,V=0,B=e.createMap(),U=e.createMap();e.performance.mark("beforeProgram");var H,K,j,W,q=b.host||i(R),z=S(q),X=R.noLib,J=e.memoize(function(){return q.getDefaultLibFileName(R)}),Y=q.getDefaultLibLocation?q.getDefaultLibLocation():e.getDirectoryPath(J()),Q=e.createDiagnosticCollection(),Z=q.getCurrentDirectory(),$=e.getSupportedExtensions(R),ee=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(R,$),ne=e.createMap(),te=q.hasInvalidatedResolution||e.returnFalse;if(q.resolveModuleNames)j=function(n,t,r,a){return q.resolveModuleNames(e.Debug.assertEachDefined(n),t,r,a,R).map(function(n){if(!n||void 0!==n.extension)return n;var t=e.clone(n);return t.extension=e.extensionFromPath(n.resolvedFileName),t})};else{K=e.createModuleResolutionCache(Z,function(e){return q.getCanonicalFileName(e)},R);var re=function(n,t,r){return e.resolveModuleName(n,t,R,q,K,r).resolvedModule};j=function(n,t,r,a){return T(e.Debug.assertEachDefined(n),t,a,re)}}if(q.resolveTypeReferenceDirectives)W=function(n,t,r){return q.resolveTypeReferenceDirectives(e.Debug.assertEachDefined(n),t,r,R)};else{var ae=function(n,t,r){return e.resolveTypeReferenceDirective(n,t,R,q,r).resolvedTypeReferenceDirective};W=function(n,t,r){return T(e.Debug.assertEachDefined(n),t,r,ae)}}var ie,oe,se,le,ce,de=e.createMap(),ue=e.createMap(),me=e.createMultiMap(),pe=e.createMap(),fe=q.useCaseSensitiveFileNames()?e.createMap():void 0,ge=function(n,t){if(!n)return!1;var r=n.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some(function(n){return!e.isJsonEqual(e.getCompilerOptionValue(r,n),e.getCompilerOptionValue(t,n))})}(O,R);if(2!==(ce=function(){if(!O)return 0;var n=O.getCompilerOptions();if(e.changesAffectModuleResolution(n,R))return O.structureIsReused=0;e.Debug.assert(!(3&O.structureIsReused));var t=O.getRootFileNames();if(!e.arrayIsEqualTo(t,E))return O.structureIsReused=0;if(!e.arrayIsEqualTo(R.types,n.types))return O.structureIsReused=0;if(_n(O.getProjectReferences(),O.getResolvedProjectReferences(),function(e,n,t){var r=(t?t.commandLine.projectReferences:I)[n],a=xn(r);return e?!a||a.sourceFile!==e.sourceFile:void 0!==a},function(n,t){var r=t?yn(t.sourceFile.path).commandLine.projectReferences:I;return!e.arrayIsEqualTo(n,r,e.projectReferenceIsEqualTo)}))return O.structureIsReused=0;I&&(oe=I.map(xn));var r=[],a=[];if(O.structureIsReused=2,O.getMissingFilePaths().some(function(e){return q.fileExists(e)}))return O.structureIsReused=0;var i,o=O.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(i||(i={}));for(var s=e.createMap(),l=0,c=o;l<c.length;l++){var d=c[l],u=q.getSourceFileByPath?q.getSourceFileByPath(d.fileName,d.resolvedPath,R.target,void 0,ge):q.getSourceFile(d.fileName,R.target,void 0,ge);if(!u)return O.structureIsReused=0;e.Debug.assert(!u.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var m=void 0;if(d.redirectInfo){if(u!==d.redirectInfo.unredirected)return O.structureIsReused=0;m=!1,u=d}else if(O.redirectTargetsMap.has(d.path)){if(u!==d)return O.structureIsReused=0;m=!1}else m=u!==d;u.path=d.path,u.originalFileName=d.originalFileName,u.resolvedPath=d.resolvedPath,u.fileName=d.fileName;var p=O.sourceFileToPackageName.get(d.path);if(void 0!==p){var f=s.get(p),_=m?1:0;if(void 0!==f&&1===_||1===f)return O.structureIsReused=0;s.set(p,_)}if(m){if(!e.arrayIsEqualTo(d.libReferenceDirectives,u.libReferenceDirectives,tn))return O.structureIsReused=0;d.hasNoDefaultLib!==u.hasNoDefaultLib&&(O.structureIsReused=1),e.arrayIsEqualTo(d.referencedFiles,u.referencedFiles,tn)||(O.structureIsReused=1),an(u),e.arrayIsEqualTo(d.imports,u.imports,rn)||(O.structureIsReused=1),e.arrayIsEqualTo(d.moduleAugmentations,u.moduleAugmentations,rn)||(O.structureIsReused=1),(1572864&d.flags)!=(1572864&u.flags)&&(O.structureIsReused=1),e.arrayIsEqualTo(d.typeReferenceDirectives,u.typeReferenceDirectives,tn)||(O.structureIsReused=1),a.push({oldFile:d,newFile:u})}else te(d.path)&&(O.structureIsReused=1,a.push({oldFile:d,newFile:u}));r.push(u)}if(2!==O.structureIsReused)return O.structureIsReused;for(var y=a.map(function(e){return e.oldFile}),v=0,h=o;v<h.length;v++){var b=h[v];if(!e.contains(y,b))for(var T=0,S=b.ambientModuleNames;T<S.length;T++){var L=S[T];k.set(L,b.fileName)}}for(var A=0,x=a;A<x.length;A++){var C=x[A],d=C.oldFile,u=C.newFile,M=e.getNormalizedAbsolutePath(u.originalFileName,Z);if(j){var N=D(u),w=Pe(N,M,u),F=e.hasChangesInResolutions(N,w,d.resolvedModules,e.moduleResolutionIsEqualTo);F?(O.structureIsReused=1,u.resolvedModules=e.zipToMap(N,w)):u.resolvedModules=d.resolvedModules}if(W){var V=e.map(u.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),w=W(V,M,fn(u.originalFileName)),F=e.hasChangesInResolutions(V,w,d.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);F?(O.structureIsReused=1,u.resolvedTypeReferenceDirectiveNames=e.zipToMap(V,w)):u.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}}if(2!==O.structureIsReused)return O.structureIsReused;if(q.hasChangedAutomaticTypeDirectiveNames)return O.structureIsReused=1;ie=O.getMissingFilePaths();for(var B=0,H=r;B<H.length;B++){var u=H[B],K=u.path;dn(u,K,u.resolvedPath),O.isSourceFileFromExternalLibrary(O.getSourceFileByPath(u.resolvedPath))&&U.set(K,!0)}g=r,G=O.getFileProcessingDiagnostics();for(var z=0,X=a;z<X.length;z++){var J=X[z];G.reattachFileDiagnostics(J.newFile)}return P=O.getResolvedTypeReferenceDirectives(),ue=O.sourceFileToPackageName,me=O.redirectTargetsMap,O.structureIsReused=2}())){if(p=[],f=[],I&&(oe||(oe=I.map(xn)),E.length))for(var _e=0,ye=oe;_e<ye.length;_e++){var ve=ye[_e];if(ve){var he=ve.commandLine.options.outFile||ve.commandLine.options.out;if(he)sn(e.changeExtension(he,".d.ts"),!1,!1,void 0);else if(e.getEmitModuleKind(ve.commandLine.options)===e.ModuleKind.None)for(var be=0,Ee=ve.commandLine.fileNames;be<Ee.length;be++){var Te=Ee[be];!e.fileExtensionIs(Te,".d.ts")&&e.hasTSFileExtension(Te)&&sn(e.getOutputDeclarationFileName(Te,ve.commandLine,!q.useCaseSensitiveFileNames()),!1,!1,void 0)}}}e.forEach(E,function(e){return nn(e,!1,!1)});var Se=E.length?e.getAutomaticTypeDirectiveNames(R,q):e.emptyArray;if(Se.length)for(var Le=R.configFilePath?e.getDirectoryPath(R.configFilePath):q.getCurrentDirectory(),Ae=e.combinePaths(Le,"__inferred type names__.ts"),xe=W(Se,Ae),Ce=0;Ce<Se.length;Ce++)bn(Se[Ce],xe[Ce]);if(E.length&&!X){var De=J();!R.lib&&De?nn(De,!0,!1):e.forEach(R.lib,function(n){nn(e.combinePaths(Y,n),!0,!1)})}ie=e.arrayFrom(e.mapDefinedIterator(pe.entries(),function(e){var n=e[0];return void 0===e[1]?n:void 0})),g=e.stableSort(p,function(n,t){return e.compareValues(ke(n),ke(t))}).concat(f),p=void 0,f=void 0}if(e.Debug.assert(!!ie),O&&q.onReleaseOldSourceFile){for(var Re=0,Me=O.getSourceFiles();Re<Me.length;Re++){var Ie=Me[Re],Oe=je(Ie.resolvedPath);(ge||!Oe||Ie.resolvedPath===Ie.path&&Oe.resolvedPath!==Ie.path)&&q.onReleaseOldSourceFile(Ie,O.getCompilerOptions(),!!je(Ie.path))}O.forEachResolvedProjectReference(function(e,n){e&&!yn(n)&&q.onReleaseOldSourceFile(e.sourceFile,O.getCompilerOptions(),!1)})}return O=void 0,m={getRootFileNames:function(){return E},getSourceFile:Ke,getSourceFileByPath:je,getSourceFiles:function(){return g},getMissingFilePaths:function(){return ie},getCompilerOptions:function(){return R},getSyntacticDiagnostics:function(e,n){return We(e,qe,n)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(G.getGlobalDiagnostics(),e.concatenate(Q.getGlobalDiagnostics(),function(){if(!R.configFile)return e.emptyArray;var n=Q.getDiagnostics(R.configFile.fileName);return gn(function(t){t&&(n=e.concatenate(n,Q.getDiagnostics(t.sourceFile.fileName)))}),n}())))},getGlobalDiagnostics:function(){return E.length?e.sortAndDeduplicateDiagnostics(Be().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,n){return We(e,Xe,n)},getSuggestionDiagnostics:function(e,n){return ze(function(){return Be().getSuggestionDiagnostics(e,n)})},getDeclarationDiagnostics:function(e,n){var t=m.getCompilerOptions();return!e||t.out||t.outFile?Qe(e,n):We(e,en,n)},getTypeChecker:Ue,getClassifiableNames:function(){if(!h){Ue(),h=e.createUnderscoreEscapedMap();for(var n=0,t=g;n<t.length;n++){var r=t[n];e.copyEntries(r.classifiableNames,h)}}return h},getDiagnosticsProducingTypeChecker:Be,getCommonSourceDirectory:we,emit:function(n,t,r,a,i){return ze(function(){return function(n,t,r,a,i,s){var l=[];if(!i){if(R.noEmit)return{diagnostics:l,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(R.noEmitOnError){var c=o(n.getOptionsDiagnostics(a),n.getSyntacticDiagnostics(t,a),n.getGlobalDiagnostics(a),n.getSemanticDiagnostics(t,a));if(0===c.length&&e.getEmitDeclarations(n.getCompilerOptions())&&(l=n.getDeclarationDiagnostics(void 0,a)),c.length>0||l.length>0)return{diagnostics:e.concatenate(c,l),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var d=Be().getEmitResolver(R.outFile||R.out?void 0:t,a);e.performance.mark("beforeEmit");var u=e.emitFiles(d,Ge(r),t,e.getTransformers(R,s,i),i);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u}(m,n,t,r,a,i)})},getCurrentDirectory:function(){return Z},getNodeCount:function(){return Be().getNodeCount()},getIdentifierCount:function(){return Be().getIdentifierCount()},getSymbolCount:function(){return Be().getSymbolCount()},getTypeCount:function(){return Be().getTypeCount()},getRelationCacheSizes:function(){return Be().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return G},getResolvedTypeReferenceDirectives:function(){return P},isSourceFileFromExternalLibrary:Ve,isSourceFileDefaultLibrary:function(n){if(n.hasNoDefaultLib)return!0;if(!R.noLib)return!1;var t=q.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return R.lib?e.some(R.lib,function(r){return t(n.fileName,e.combinePaths(Y,r))}):t(n.fileName,J())},dropDiagnosticsProducingTypeChecker:function(){y=void 0},getSourceFileFromReference:function(e,n){return on(r(n.fileName,e.fileName),function(e){return pe.get(Ne(e))||void 0})},getLibFileFromReference:function(n){var t=n.fileName.toLocaleLowerCase(),r=e.libMap.get(t);if(r)return Ke(e.combinePaths(Y,r))},sourceFileToPackageName:ue,redirectTargetsMap:me,isEmittedFile:function(n){if(R.noEmit)return!1;var t=Ne(n);if(je(t))return!1;var r=R.outFile||R.out;if(r)return Gn(t,r)||Gn(t,e.removeFileExtension(r)+".d.ts");if(R.declarationDir&&e.containsPath(R.declarationDir,t,Z,!q.useCaseSensitiveFileNames()))return!0;if(R.outDir)return e.containsPath(R.outDir,t,Z,!q.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(t,e.supportedJSExtensions)||e.fileExtensionIs(t,".d.ts")){var a=e.removeFileExtension(t);return!!je(a+".ts")||!!je(a+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return M||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(n,t){return K&&e.resolveModuleNameFromCache(n,t,K)},getProjectReferences:function(){return I},getResolvedProjectReferences:function(){return oe},getProjectReferenceRedirect:un,getResolvedProjectReferenceToRedirect:fn,getResolvedProjectReferenceByPath:yn,forEachResolvedProjectReference:gn,emitBuildInfo:function(n){e.Debug.assert(!R.out&&!R.outFile),e.performance.mark("beforeEmit");var t=e.emitFiles(e.notImplementedResolver,Ge(n),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),t}},function(){if(R.strictPropertyInitialization&&!e.getStrictOptionValue(R,"strictNullChecks")&&Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),R.isolatedModules&&(e.getEmitDeclarations(R)&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,x(R),"isolatedModules"),R.out&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),R.outFile&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),R.inlineSourceMap&&(R.sourceMap&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),R.mapRoot&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),R.paths&&void 0===R.baseUrl&&Mn(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),R.composite&&(!1===R.declaration&&Mn(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===R.incremental&&Mn(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration")),R.tsBuildInfoFile?e.isIncrementalCompilation(R)||Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!R.incremental||R.outFile||R.out||R.configFilePath||Q.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),i=R.noEmit||R.suppressOutputPathCheck?void 0:e.getOutputPathForBuildInfo(R),_n(I,oe,function(n,t,r){var a=(r?r.commandLine.projectReferences:I)[t],o=r&&r.sourceFile;if(n){var s=n.commandLine.options;if(!s.composite){var l=r?r.commandLine.fileNames:E;l.length&&On(o,t,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path)}if(a.prepend){var c=s.outFile||s.out;c?q.fileExists(c)||On(o,t,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):On(o,t,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!r&&i&&i===e.getOutputPathForBuildInfo(s)&&(On(o,t,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,i,a.path),ne.set(Ne(i),!0))}else On(o,t,e.Diagnostics.File_0_not_found,a.path)}),R.composite)for(var n=E.map(Ne),t=0,r=g;t<r.length;t++){var a=r[t];e.sourceFileMayBeEmitted(a,R,Ve,fn)&&-1===n.indexOf(a.path)&&Q.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,a.fileName,R.configFilePath||""))}var i;if(R.paths)for(var o in R.paths)if(e.hasProperty(R.paths,o))if(e.hasZeroOrOneAsteriskCharacter(o)||Dn(!0,o,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,o),e.isArray(R.paths[o])){var s=R.paths[o].length;0===s&&Dn(!1,o,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o);for(var l=0;l<s;l++){var c=R.paths[o][l],d=typeof c;"string"===d?e.hasZeroOrOneAsteriskCharacter(c)||Cn(o,l,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,c,o):Cn(o,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,c,o,d)}}else Dn(!1,o,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,o);R.sourceMap||R.inlineSourceMap||(R.inlineSources&&Mn(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),R.sourceRoot&&Mn(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),R.out&&R.outFile&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!R.mapRoot||R.sourceMap||R.declarationMap||Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),R.declarationDir&&(e.getEmitDeclarations(R)||Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(R.out||R.outFile)&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",R.out?"out":"outFile")),R.declarationMap&&!e.getEmitDeclarations(R)&&Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),R.lib&&R.noLib&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),R.noImplicitUseStrict&&e.getStrictOptionValue(R,"alwaysStrict")&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var u=R.target||0,m=R.outFile||R.out,p=e.find(g,function(n){return e.isExternalModule(n)&&!n.isDeclarationFile});if(R.isolatedModules){R.module===e.ModuleKind.None&&u<2&&Mn(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var f=e.find(g,function(n){return!e.isExternalModule(n)&&!e.isSourceFileJS(n)&&!n.isDeclarationFile&&6!==n.scriptKind});if(f){var _=e.getErrorSpanForNode(f,f);Q.add(e.createFileDiagnostic(f,_.start,_.length,e.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided))}}else if(p&&u<2&&R.module===e.ModuleKind.None){var _=e.getErrorSpanForNode(p,p.externalModuleIndicator);Q.add(e.createFileDiagnostic(p,_.start,_.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(m&&!R.emitDeclarationOnly)if(R.module&&R.module!==e.ModuleKind.AMD&&R.module!==e.ModuleKind.System)Mn(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(void 0===R.module&&p){var _=e.getErrorSpanForNode(p,p.externalModuleIndicator);Q.add(e.createFileDiagnostic(p,_.start,_.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}if(R.resolveJsonModule&&(e.getEmitModuleResolutionKind(R)!==e.ModuleResolutionKind.NodeJs?Mn(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(R)||Mn(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),R.outDir||R.sourceRoot||R.mapRoot){var y=we();R.outDir&&""===y&&g.some(function(n){return e.getRootLength(n.fileName)>1})&&Mn(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!R.noEmit&&R.allowJs&&e.getEmitDeclarations(R)&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",x(R)),R.checkJs&&!R.allowJs&&Q.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(e.getEmitDeclarations(R)||Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&Mn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&Mn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(R.jsxFactory,u)||In("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!e.isIdentifierText(R.reactNamespace,u)&&In("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),!R.noEmit&&!R.suppressOutputPathCheck){var v=Ge(),h=e.createMap();e.forEachEmittedFile(v,function(e){R.emitDeclarationOnly||b(e.jsFilePath,h),b(e.declarationFilePath,h)})}function b(n,t){if(n){var r=Ne(n);if(pe.has(r)){var a=void 0;R.configFilePath||(a=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),a=e.chainDiagnosticMessages(a,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,n),Pn(n,e.createCompilerDiagnosticFromMessageChain(a))}var i=q.useCaseSensitiveFileNames()?r:r.toLocaleLowerCase();t.has(i)?Pn(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.set(i,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),m;function ke(n){if(e.containsPath(Y,n.fileName,!1)){var t=e.getBaseFileName(n.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;var r=e.removeSuffix(e.removePrefix(t,"lib."),".d.ts"),a=e.libs.indexOf(r);if(-1!==a)return a+1}return e.libs.length+2}function Ne(n){return e.toPath(n,Z,Sn)}function we(){if(void 0===_){var n=e.filter(g,function(n){return e.sourceFileMayBeEmitted(n,R,Ve,fn)});R.rootDir&&An(n,R.rootDir)?_=e.getNormalizedAbsolutePath(R.rootDir,Z):R.composite&&R.configFilePath?An(n,_=e.getDirectoryPath(e.normalizeSlashes(R.configFilePath))):(t=n,_=a(e.mapDefined(t,function(e){return e.isDeclarationFile?void 0:e.fileName}),Z,Sn)),_&&_[_.length-1]!==e.directorySeparator&&(_+=e.directorySeparator)}var t;return _}function Pe(n,t,r){if(0===ce&&!r.ambientModuleNames.length)return j(n,t,void 0,fn(r.originalFileName));var a,i,o,s=O&&O.getSourceFile(t);if(s!==r&&r.resolvedModules){for(var l=[],c=0,d=n;c<d.length;c++){var u=d[c],m=r.resolvedModules.get(u);l.push(m)}return l}for(var p={},f=0;f<n.length;f++){if(u=n[f],r===s&&!te(s.path)){var g=s&&s.resolvedModules.get(u);if(g){e.isTraceEnabled(R,q)&&e.trace(q,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,u,t),(i||(i=new Array(n.length)))[f]=g,(o||(o=[])).push(u);continue}}var _=!1;e.contains(r.ambientModuleNames,u)?(_=!0,e.isTraceEnabled(R,q)&&e.trace(q,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,t)):_=h(u),_?(i||(i=new Array(n.length)))[f]=p:(a||(a=[])).push(u)}var y=a&&a.length?j(a,t,o,fn(r.originalFileName)):e.emptyArray;if(!i)return e.Debug.assert(y.length===n.length),y;var v=0;for(f=0;f<i.length;f++)i[f]?i[f]===p&&(i[f]=void 0):(i[f]=y[v],v++);return e.Debug.assert(v===y.length),i;function h(n){var t=e.getResolvedModule(s,n),r=t&&O.getSourceFile(t.resolvedFileName);if(t&&r)return!1;var a=k.get(n);return!!a&&(e.isTraceEnabled(R,q)&&e.trace(q,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,n,a),!0)}}function Ge(n){return s(s({getPrependNodes:Fe,getCanonicalFileName:Sn,getCommonSourceDirectory:m.getCommonSourceDirectory,getCompilerOptions:m.getCompilerOptions,getCurrentDirectory:function(){return Z},getNewLine:function(){return q.getNewLine()},getSourceFile:m.getSourceFile,getSourceFileByPath:m.getSourceFileByPath,getSourceFiles:m.getSourceFiles,getLibFileFromReference:m.getLibFileFromReference,isSourceFileFromExternalLibrary:Ve,getResolvedProjectReferenceToRedirect:fn,writeFile:n||function(e,n,t,r,a){return q.writeFile(e,n,t,r,a)},isEmitBlocked:He,readFile:function(e){return q.readFile(e)},fileExists:function(n){var t=Ne(n);return!!je(t)||!e.contains(ie,t)&&q.fileExists(n)}},q.directoryExists?{directoryExists:function(e){return q.directoryExists(e)}}:{}),{useCaseSensitiveFileNames:function(){return q.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return m.getProgramBuildInfo&&m.getProgramBuildInfo()},getSourceFileFromReference:function(e,n){return m.getSourceFileFromReference(e,n)},redirectTargetsMap:me})}function Fe(){return L(I,function(e,n){return oe[n].commandLine},function(e){var n=Ne(e),t=je(n);return t?t.text:pe.has(n)?void 0:q.readFile(n)})}function Ve(e){return!!U.get(e.path)}function Be(){return y||(y=e.createTypeChecker(m,!0))}function Ue(){return v||(v=e.createTypeChecker(m,!1))}function He(e){return ne.has(Ne(e))}function Ke(e){return je(Ne(e))}function je(e){return pe.get(e)||void 0}function We(n,t,r){return n?t(n,r):e.sortAndDeduplicateDiagnostics(e.flatMap(m.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),t(e,r)}))}function qe(n){return e.isSourceFileJS(n)?(n.additionalSyntacticDiagnostics||(n.additionalSyntacticDiagnostics=function(n){return ze(function(){var t=[],r=n;return a(n),t;function a(n){switch(r.kind){case 152:case 155:if(r.questionToken===n)return void t.push(s(n,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 157:case 156:case 158:case 159:case 160:case 197:case 240:case 198:case 238:if(r.type===n)return void t.push(s(n,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(n.kind){case 249:return void t.push(s(n,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 255:if(n.isExportEquals)return void t.push(s(n,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 274:var o=n;if(110===o.token)return void t.push(s(n,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 242:return void t.push(s(n,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 245:return void t.push(s(n,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 243:return void t.push(s(n,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 244:return void t.push(s(n,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 214:return void t.push(s(n,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 213:return void t.push(s(n.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 195:e.Debug.fail()}var l=r;r=n,e.forEachChild(n,a,i),r=l}function i(n){switch(r.decorators!==n||R.experimentalDecorators||t.push(s(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),r.kind){case 241:case 157:case 156:case 158:case 159:case 160:case 197:case 240:case 198:if(n===r.typeParameters)return void t.push(o(n,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 220:if(n===r.modifiers)return function(n,r){for(var a=0,i=n;a<i.length;a++){var o=i[a];switch(o.kind){case 78:if(r)continue;case 116:case 114:case 115:case 134:case 126:case 119:t.push(s(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)))}}}(n,220===r.kind);break;case 155:if(n===r.modifiers){for(var i=0,l=n;i<l.length;i++){var c=l[i];117!==c.kind&&t.push(s(c,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(c.kind)))}return}break;case 152:if(n===r.modifiers)return void t.push(o(n,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 192:case 193:case 212:case 262:case 263:if(n===r.typeArguments)return void t.push(o(n,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var d=0,u=n;d<u.length;d++){var m=u[d];a(m)}}function o(t,r,a,i,o){var s=t.pos;return e.createFileDiagnostic(n,s,t.end-s,r,a,i,o)}function s(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(n,t,r,a,i,o)}})}(n)),e.concatenate(n.additionalSyntacticDiagnostics,n.parseDiagnostics)):n.parseDiagnostics}function ze(n){try{return n()}catch(n){throw n instanceof e.OperationCanceledException&&(v=void 0,y=void 0),n}}function Xe(e,n){return $e(e,n,N,Je)}function Je(n,t){return ze(function(){if(e.skipTypeChecking(n,R))return e.emptyArray;var r=Be();e.Debug.assert(!!n.bindDiagnostics);for(var a,i=e.isCheckJsEnabledForFile(n,R),o=3===n.scriptKind||4===n.scriptKind||5===n.scriptKind||i||7===n.scriptKind,s=0,l=[o?n.bindDiagnostics:e.emptyArray,o?r.getDiagnostics(n,t):e.emptyArray,G.getDiagnostics(n.fileName),Q.getDiagnostics(n.fileName),i?n.jsDocDiagnostics:void 0];s<l.length;s++){var c=l[s];if(c)for(var d=0,u=c;d<u.length;d++){var m=u[d];Ye(m)&&(a=e.append(a,m))}}return a})}function Ye(n){var r=n.file,a=n.start;if(r)for(var i=e.getLineStarts(r),o=e.computeLineAndCharacterOfPosition(i,a).line;o>0;){var s=r.text.slice(i[o-1],i[o]),l=t.exec(s);if(!l)return!0;if(l[3])return!1;o--}return!0}function Qe(e,n){return $e(e,n,w,Ze)}function Ze(n,t){return ze(function(){var r=Be().getEmitResolver(n,t);return e.getDeclarationDiagnostics(Ge(e.noop),r,n)})}function $e(n,t,r,a){var i=n?r.perFile&&r.perFile.get(n.path):r.allDiagnostics;if(i)return i;var o=a(n,t)||e.emptyArray;return n?(r.perFile||(r.perFile=e.createMap()),r.perFile.set(n.path,o)):r.allDiagnostics=o,o}function en(e,n){return e.isDeclarationFile?[]:Qe(e,n)}function nn(n,t,r){sn(e.normalizePath(n),t,r,void 0)}function tn(e,n){return e.fileName===n.fileName}function rn(e,n){return 73===e.kind?73===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function an(n){if(!n.imports){var t,r,a,i=e.isSourceFileJS(n),o=e.isExternalModule(n);if(R.importHelpers&&(R.isolatedModules||o)&&!n.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText),l=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(l,67108864),s.parent=l,l.parent=n,t=[s]}for(var c=0,d=n.statements;c<d.length;c++)u(d[c],!1);return(524288&n.flags||i)&&function(n){for(var r=/import|require/g;null!==r.exec(n.text);){var a=m(n,r.lastIndex);e.isRequireCall(a,!0)?t=e.append(t,a.arguments[0]):e.isImportCall(a)&&1===a.arguments.length&&e.isStringLiteralLike(a.arguments[0])?t=e.append(t,a.arguments[0]):e.isLiteralImportTypeNode(a)&&(t=e.append(t,a.argument.literal))}}(n),n.imports=t||e.emptyArray,n.moduleAugmentations=r||e.emptyArray,void(n.ambientModuleNames=a||e.emptyArray)}function u(i,s){if(e.isAnyImportOrReExport(i)){var l=e.getExternalModuleName(i);!(l&&e.isStringLiteral(l)&&l.text)||s&&e.isExternalModuleNameRelative(l.text)||(t=e.append(t,l))}else if(e.isModuleDeclaration(i)&&e.isAmbientModule(i)&&(s||e.hasModifier(i,2)||n.isDeclarationFile)){var c=e.getTextOfIdentifierOrLiteral(i.name);if(o||s&&!e.isExternalModuleNameRelative(c))(r||(r=[])).push(i.name);else if(!s){n.isDeclarationFile&&(a||(a=[])).push(c);var d=i.body;if(d)for(var m=0,p=d.statements;m<p.length;m++)u(p[m],!0)}}}function m(n,t){for(var r=n,a=function(e){if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e};;){var o=i&&e.hasJSDocNodes(r)&&e.forEach(r.jsDoc,a)||e.forEachChild(r,a);if(!o)return r;r=o}}}function on(n,t,r,a){if(e.hasExtension(n)){if(!R.allowNonTsExtensions&&!e.forEach(ee,function(t){return e.fileExtensionIs(q.getCanonicalFileName(n),t)}))return void(r&&r(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,n,"'"+$.join("', '")+"'"));var i=t(n);if(r)if(i)a&&q.getCanonicalFileName(n)===q.getCanonicalFileName(a.fileName)&&r(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var o=un(n);o?r(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,o,n):r(e.Diagnostics.File_0_not_found,n)}return i}var s=R.allowNonTsExtensions&&t(n);if(s)return s;if(!r||!R.allowNonTsExtensions){var l=e.forEach($,function(e){return t(n+e)});return r&&!l&&r(e.Diagnostics.File_0_not_found,n+".ts"),l}r(e.Diagnostics.File_0_not_found,n)}function sn(n,t,r,a,i,s,l){on(n,function(e){return cn(e,Ne(e),t,r,i,s,l,a)},function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];G.add(void 0!==i&&void 0!==l&&void 0!==s?e.createFileDiagnostic.apply(void 0,o([i,s,l-s,n],t)):e.createCompilerDiagnostic.apply(void 0,o([n],t)))},i)}function ln(n,t,r,a,i){void 0!==r&&void 0!==a&&void 0!==i?G.add(e.createFileDiagnostic(r,a,i-a,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,n,t)):G.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,n,t))}function cn(n,t,r,a,i,o,s,l){var c,d=n;if(pe.has(t)){var u=pe.get(t);if(u&&R.forceConsistentCasingInFileNames){var m=n,g=u.fileName;Ne(g)!==Ne(m)&&(m=un(n)||n),e.getNormalizedAbsolutePathWithoutRoot(g,Z)!==e.getNormalizedAbsolutePathWithoutRoot(m,Z)&&ln(m,g,i,o,s)}return u&&U.get(u.path)&&0===V?(U.set(u.path,!1),R.noResolve||(vn(u,r),hn(u)),R.noLib||En(u),B.set(u.path,!1),Ln(u)):u&&B.get(u.path)&&V<F&&(B.set(u.path,!1),Ln(u)),u||void 0}if(i){var _=mn(n);if(_){if(_.commandLine.options.outFile||_.commandLine.options.out)return;var y=pn(_,n);n=y,c=Ne(y)}}var v=q.getSourceFile(n,R.target,function(t){void 0!==i&&void 0!==o&&void 0!==s?G.add(e.createFileDiagnostic(i,o,s-o,e.Diagnostics.Cannot_read_file_0_Colon_1,n,t)):G.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t))},ge);if(l){var h=e.packageIdToString(l),b=de.get(h);if(b){var E=function(e,n,t,r,a,i){var o=Object.create(e);return o.fileName=t,o.path=r,o.resolvedPath=a,o.originalFileName=i,o.redirectInfo={redirectTarget:e,unredirected:n},U.set(r,V>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(b,v,n,t,Ne(n),d);return me.add(b.path,n),dn(E,t,c),ue.set(t,l.name),f.push(E),E}v&&(de.set(h,v),ue.set(t,l.name))}if(dn(v,t,c),v){if(U.set(t,V>0),v.path=t,v.resolvedPath=Ne(n),v.originalFileName=d,q.useCaseSensitiveFileNames()){var T=t.toLowerCase(),S=fe.get(T);S?ln(n,S.fileName,i,o,s):fe.set(T,v)}X=X||v.hasNoDefaultLib&&!a,R.noResolve||(vn(v,r),hn(v)),R.noLib||En(v),Ln(v),r?p.push(v):f.push(v)}return v}function dn(e,n,t){t?(pe.set(t,e),pe.set(n,e||!1)):pe.set(n,e)}function un(e){var n=mn(e);return n&&pn(n,e)}function mn(n){if(oe&&oe.length&&!e.fileExtensionIs(n,".d.ts")&&e.fileExtensionIsOneOf(n,e.supportedTSExtensions))return fn(n)}function pn(n,t){var r=n.commandLine.options.outFile||n.commandLine.options.out;return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!q.useCaseSensitiveFileNames())}function fn(n){void 0===le&&(le=e.createMap(),gn(function(e,n){e&&Ne(R.configFilePath)!==n&&e.commandLine.fileNames.forEach(function(e){return le.set(Ne(e),n)})}));var t=le.get(Ne(n));return t&&yn(t)}function gn(e){return _n(I,oe,function(n,t,r){var a=Ne(A((r?r.commandLine.projectReferences:I)[t]));return e(n,a)})}function _n(n,t,r,a){var i;return function n(t,r,a,o,s){if(s){var l=s(t,a);if(l)return l}return e.forEach(r,function(t,r){if(!e.contains(i,t)){var l=o(t,r,a);if(l)return l;if(t)return(i||(i=[])).push(t),n(t.commandLine.projectReferences,t.references,t,o,s)}})}(n,t,void 0,r,a)}function yn(e){if(se)return se.get(e)||void 0}function vn(n,t){e.forEach(n.referencedFiles,function(e){sn(r(e.fileName,n.originalFileName),t,!1,void 0,n,e.pos,e.end)})}function hn(n){var t=e.map(n.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(t)for(var r=W(t,n.originalFileName,fn(n.originalFileName)),a=0;a<t.length;a++){var i=n.typeReferenceDirectives[a],o=r[a],s=i.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(n,s,o),bn(s,o,n,i.pos,i.end)}}function bn(n,t,r,a,i){var o=P.get(n);if(!o||!o.primary){var s=!0;t?(t.isExternalLibraryImport&&V++,t.primary?sn(t.resolvedFileName,!1,!1,t.packageId,r,a,i):o?(t.resolvedFileName!==o.resolvedFileName&&q.readFile(t.resolvedFileName)!==Ke(o.resolvedFileName).text&&G.add(Tn(r,a,i,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,n,t.resolvedFileName,o.resolvedFileName)),s=!1):sn(t.resolvedFileName,!1,!1,t.packageId,r,a,i),t.isExternalLibraryImport&&V--):G.add(Tn(r,a,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,n)),s&&P.set(n,t)}}function En(n){e.forEach(n.libReferenceDirectives,function(t){var r=t.fileName.toLocaleLowerCase(),a=e.libMap.get(r);if(a)nn(e.combinePaths(Y,a),!0,!0);else{var i=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),o=e.getSpellingSuggestion(i,e.libs,e.identity),s=o?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;G.add(Tn(n,t.pos,t.end,s,r,o))}})}function Tn(n,t,r,a){for(var i=[],s=4;s<arguments.length;s++)i[s-4]=arguments[s];return void 0===n||void 0===t||void 0===r?e.createCompilerDiagnostic.apply(void 0,o([a],i)):e.createFileDiagnostic.apply(void 0,o([n,t,r-t,a],i))}function Sn(e){return q.getCanonicalFileName(e)}function Ln(n){if(an(n),n.imports.length||n.moduleAugmentations.length){var t=D(n),r=Pe(t,e.getNormalizedAbsolutePath(n.originalFileName,Z),n);e.Debug.assert(r.length===t.length);for(var a=0;a<t.length;a++){var i=r[a];if(e.setResolvedModule(n,t[a],i),i){var o=i.isExternalLibraryImport,s=!e.resolutionExtensionIsTSOrJson(i.extension),l=o&&s,c=i.resolvedFileName;o&&V++;var d=l&&V>F,u=c&&!C(R,i)&&!R.noResolve&&a<n.imports.length&&!d&&!(s&&!R.allowJs)&&(e.isInJSFile(n.imports[a])||!(2097152&n.imports[a].flags));d?B.set(n.path,!0):u&&cn(c,Ne(c),!1,!1,n,e.skipTrivia(n.text,n.imports[a].pos),n.imports[a].end,i.packageId),o&&V--}}}else n.resolvedModules=void 0}function An(n,t){for(var r=!0,a=q.getCanonicalFileName(e.getNormalizedAbsolutePath(t,Z)),i=0,o=n;i<o.length;i++){var s=o[i];s.isDeclarationFile||0!==q.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,Z)).indexOf(a)&&(Q.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,s.fileName,t)),r=!1)}return r}function xn(n){se||(se=e.createMap());var t,r,a=A(n),i=Ne(a),o=se.get(i);if(void 0!==o)return o||void 0;if(q.getParsedCommandLine){if(!(t=q.getParsedCommandLine(a)))return dn(void 0,i,void 0),void se.set(i,!1);r=e.Debug.assertDefined(t.options.configFile),e.Debug.assert(!r.path||r.path===i),dn(r,i,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(a),q.getCurrentDirectory());if(dn(r=q.getSourceFile(a,100),i,void 0),void 0===r)return void se.set(i,!1);t=e.parseJsonSourceFileConfigFileContent(r,z,s,void 0,a)}r.path=i,r.resolvedPath=i,r.originalFileName=a;var l={commandLine:t,sourceFile:r};return se.set(i,l),t.projectReferences&&(l.references=t.projectReferences.map(xn)),l}function Cn(n,t,r,a,i,o){for(var s=!0,l=0,c=Rn();l<c.length;l++){var d=c[l];if(e.isObjectLiteralExpression(d.initializer))for(var u=0,m=e.getPropertyAssignment(d.initializer,n);u<m.length;u++){var p=m[u].initializer;e.isArrayLiteralExpression(p)&&p.elements.length>t&&(Q.add(e.createDiagnosticForNodeInSourceFile(R.configFile,p.elements[t],r,a,i,o)),s=!1)}}s&&Q.add(e.createCompilerDiagnostic(r,a,i,o))}function Dn(n,t,r,a){for(var i=!0,o=0,s=Rn();o<s.length;o++){var l=s[o];e.isObjectLiteralExpression(l.initializer)&&wn(l.initializer,n,t,void 0,r,a)&&(i=!1)}i&&Q.add(e.createCompilerDiagnostic(r,a))}function Rn(){return function(n){var t=Nn();if(t)return e.getPropertyAssignment(t,n)}("paths")||e.emptyArray}function Mn(e,n,t,r){kn(!0,n,t,e,n,t,r)}function In(e,n,t){kn(!1,e,void 0,n,t)}function On(n,t,r,a,i){var o=e.firstDefined(e.getTsConfigPropArray(n||R.configFile,"references"),function(n){return e.isArrayLiteralExpression(n.initializer)?n.initializer:void 0});o&&o.elements.length>t?Q.add(e.createDiagnosticForNodeInSourceFile(n||R.configFile,o.elements[t],r,a,i)):Q.add(e.createCompilerDiagnostic(r,a,i))}function kn(n,t,r,a,i,o,s){var l=Nn();(!l||!wn(l,n,t,r,a,i,o,s))&&Q.add(e.createCompilerDiagnostic(a,i,o,s))}function Nn(){if(void 0===H){H=null;var n=e.getTsConfigObjectLiteralExpression(R.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t<r.length;t++){var a=r[t];if(e.isObjectLiteralExpression(a.initializer)){H=a.initializer;break}}}return H}function wn(n,t,r,a,i,o,s,l){for(var c=e.getPropertyAssignment(n,r,a),d=0,u=c;d<u.length;d++){var m=u[d];Q.add(e.createDiagnosticForNodeInSourceFile(R.configFile,t?m.name:m.initializer,i,o,s,l))}return!!c.length}function Pn(e,n){ne.set(Ne(e),!0),Q.add(n)}function Gn(n,t){return 0===e.comparePaths(n,t,Z,!q.useCaseSensitiveFileNames())}},e.parseConfigHostFromCompilerHostLike=S,e.createPrependNodes=L,e.resolveProjectReferencePath=A,e.getResolutionDiagnostic=C}(u||(u={})),function(e){e.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}},e.cloneMapOrUndefined=function(n){return n?e.cloneMap(n):void 0}}(u||(u={})),function(e){!function(n){function t(n){if(n.declarations&&n.declarations[0]){var t=e.getSourceFileOfNode(n.declarations[0]);return t&&t.resolvedPath}}function r(e,n){var r=e.getSymbolAtLocation(n);return r&&t(r)}function a(n,t,r,a){return e.toPath(n.getProjectReferenceRedirect(t)||t,r,a)}function i(n,t,i){var o;if(t.imports&&t.imports.length>0)for(var s=n.getTypeChecker(),l=0,c=t.imports;l<c.length;l++){var d=r(s,c[l]);d&&S(d)}var u=e.getDirectoryPath(t.path);if(t.referencedFiles&&t.referencedFiles.length>0)for(var m=0,p=t.referencedFiles;m<p.length;m++){var f=p[m];S(a(n,f.fileName,u,i))}if(t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach(function(e){if(e){var t=e.resolvedFileName;S(a(n,t,u,i))}}),t.moduleAugmentations.length){s=n.getTypeChecker();for(var g=0,_=t.moduleAugmentations;g<_.length;g++){var y=_[g];if(e.isStringLiteral(y)){var v=s.getSymbolAtLocation(y);v&&T(v)}}}for(var h=0,b=n.getTypeChecker().getAmbientModules();h<b.length;h++){var E=b[h];E.declarations.length>1&&T(E)}return o;function T(n){for(var r=0,a=n.declarations;r<a.length;r++){var i=a[r],o=e.getSourceFileOfNode(i);o&&o!==t&&S(o.resolvedPath)}}function S(n){o||(o=e.createMap()),o.set(n,!0)}}function o(e,n){return n&&!n.referencedMap==!e}function l(e,n){n.forEach(function(n,t){e.fileInfos.get(t).signature=n,e.hasCalledUpdateShapeSignature.set(t,!0)})}function c(n,r,a,i,o,s,l){if(e.Debug.assert(!!a),e.Debug.assert(!l||!!n.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),n.hasCalledUpdateShapeSignature.has(a.path)||i.has(a.path))return!1;var c=n.fileInfos.get(a.path);if(!c)return e.Debug.fail();var d,u=c.signature;if(a.isDeclarationFile){if(d=a.version,l&&d!==u){var m=n.referencedMap?n.referencedMap.get(a.path):void 0;l.set(a.path,m||!1)}}else{var p=e.getFileEmitOutput(r,a,!0,o);p.outputFiles&&p.outputFiles.length>0?(d=s(p.outputFiles[0].text),l&&d!==u&&function(n,r,a){if(!r)return void a.set(n.path,!1);var i;r.forEach(function(n){var r;(r=t(n))&&(i||(i=e.createMap()),i.set(r,!0))}),a.set(n.path,i||!1)}(a,p.exportedModulesFromDeclarationEmit,l)):d=u}return i.set(a.path,d),!u||d!==u}function d(n,t){if(!n.allFileNames){var r=t.getSourceFiles();n.allFileNames=r===e.emptyArray?e.emptyArray:r.map(function(e){return e.fileName})}return n.allFileNames}function u(n,t){return e.arrayFrom(e.mapDefinedIterator(n.referencedMap.entries(),function(e){var n=e[0];return e[1].has(t)?n:void 0}))}function m(n){return function(n){return e.some(n.moduleAugmentations,function(n){return e.isGlobalScopeAugmentation(n.parent)})}(n)||!e.isExternalModule(n)&&!function(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if(!e.isModuleWithStringLiteralName(a))return!1}return!0}(n)}function p(n,t,r){if(n.allFilesExcludingDefaultLibraryFile)return n.allFilesExcludingDefaultLibraryFile;var a;l(r);for(var i=0,o=t.getSourceFiles();i<o.length;i++){var s=o[i];s!==r&&l(s)}return n.allFilesExcludingDefaultLibraryFile=a||e.emptyArray,n.allFilesExcludingDefaultLibraryFile;function l(e){t.isSourceFileDefaultLibrary(e)||(a||(a=[])).push(e)}}n.canReuseOldState=o,n.create=function(n,t,r){for(var a=e.createMap(),s=n.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,l=s?e.createMap():void 0,c=e.createMap(),d=o(s,r),u=0,m=n.getSourceFiles();u<m.length;u++){var p=m[u],f=e.Debug.assertDefined(p.version,"Program intended to be used with Builder should have source files with versions set"),g=d?r.fileInfos.get(p.path):void 0;if(s){var _=i(n,p,t);if(_&&s.set(p.path,_),d){var y=r.exportedModulesMap.get(p.path);y&&l.set(p.path,y)}}a.set(p.path,{version:f,signature:g&&g.signature})}return{fileInfos:a,referencedMap:s,exportedModulesMap:l,hasCalledUpdateShapeSignature:c}},n.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},n.clone=function(n){var t=e.createMap();return n.fileInfos.forEach(function(e,n){t.set(n,s({},e))}),{fileInfos:t,referencedMap:e.cloneMapOrUndefined(n.referencedMap),exportedModulesMap:e.cloneMapOrUndefined(n.exportedModulesMap),hasCalledUpdateShapeSignature:e.cloneMap(n.hasCalledUpdateShapeSignature)}},n.getFilesAffectedBy=function(n,t,r,a,i,o,s){var d=o||e.createMap(),f=t.getSourceFileByPath(r);if(!f)return e.emptyArray;if(!c(n,t,f,d,a,i,s))return[f];var g=(n.referencedMap?function(n,t,r,a,i,o,s){if(m(r))return p(n,t,r);var l=t.getCompilerOptions();if(l&&(l.isolatedModules||l.out||l.outFile))return[r];var d=e.createMap();d.set(r.path,r);for(var f=u(n,r.resolvedPath);f.length>0;){var g=f.pop();if(!d.has(g)){var _=t.getSourceFileByPath(g);d.set(g,_),_&&c(n,t,_,a,i,o,s)&&f.push.apply(f,u(n,_.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(d.values(),function(e){return e}))}:function(e,n,t){var r=n.getCompilerOptions();return r&&(r.out||r.outFile)?[t]:p(e,n,t)})(n,t,f,d,a,i,s);return o||l(n,d),g},n.updateSignaturesFromCache=l,n.updateShapeSignature=c,n.updateExportedFilesMapFromCache=function(n,t){t&&(e.Debug.assert(!!n.exportedModulesMap),t.forEach(function(e,t){e?n.exportedModulesMap.set(t,e):n.exportedModulesMap.delete(t)}))},n.getAllDependencies=function(n,t,r){var a=t.getCompilerOptions();if(a.outFile||a.out)return d(n,t);if(!n.referencedMap||m(r))return d(n,t);for(var i=e.createMap(),o=[r.path];o.length;){var s=o.pop();if(!i.has(s)){i.set(s,!0);var l=n.referencedMap.get(s);if(l)for(var c=l.keys(),u=c.next();!u.done;u=c.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(i.keys(),function(e){var n=t.getSourceFileByPath(e);return n?n.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(u||(u={})),function(e){function n(n,r,a){var i=e.BuilderState.create(n,r,a);i.program=n;var o=n.getCompilerOptions();i.compilerOptions=o,o.outFile||o.out||o.isolatedModules||(i.semanticDiagnosticsPerFile=e.createMap()),i.changedFilesSet=e.createMap();var s=e.BuilderState.canReuseOldState(i.referencedMap,a),l=s?a.compilerOptions:void 0,c=s&&a.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,l);if(s){if(!a.currentChangedFilePath){var d=a.currentAffectedFilesSignatures;e.Debug.assert(!(a.affectedFiles||d&&d.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var u=a.changedFilesSet;c&&e.Debug.assert(!u||!e.forEachKey(u,function(e){return a.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),u&&e.copyEntries(u,i.changedFilesSet),o.outFile||o.out||!a.affectedFilesPendingEmit||(i.affectedFilesPendingEmit=a.affectedFilesPendingEmit,i.affectedFilesPendingEmitIndex=a.affectedFilesPendingEmitIndex)}var m=i.referencedMap,p=s?a.referencedMap:void 0,f=c&&!o.skipLibCheck==!l.skipLibCheck,g=f&&!o.skipDefaultLibCheck==!l.skipDefaultLibCheck;return i.fileInfos.forEach(function(o,l){var d,u,_,y;if(!s||!(d=a.fileInfos.get(l))||d.version!==o.version||(_=u=m&&m.get(l),y=p&&p.get(l),_!==y&&(void 0===_||void 0===y||_.size!==y.size||e.forEachKey(_,function(e){return!y.has(e)})))||u&&e.forEachKey(u,function(e){return!i.fileInfos.has(e)&&a.fileInfos.has(e)}))i.changedFilesSet.set(l,!0);else if(c){var v=n.getSourceFileByPath(l);if(v.isDeclarationFile&&!f)return;if(v.hasNoDefaultLib&&!g)return;var h=a.semanticDiagnosticsPerFile.get(l);h&&(i.semanticDiagnosticsPerFile.set(l,a.hasReusableDiagnostic?function(n,r,a){if(!n.length)return e.emptyArray;var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getOutputPathForBuildInfo(r.getCompilerOptions()),r.getCurrentDirectory()));return n.map(function(n){var a=t(n,r,o);a.reportsUnnecessary=n.reportsUnnecessary,a.source=n.source;var i=n.relatedInformation;return a.relatedInformation=i?i.length?i.map(function(e){return t(e,r,o)}):e.emptyArray:void 0,a});function o(n){return e.toPath(n,i,a)}}(h,n,r):h),i.semanticDiagnosticsFromOldState||(i.semanticDiagnosticsFromOldState=e.createMap()),i.semanticDiagnosticsFromOldState.set(l,!0))}}),l&&e.compilerOptionsAffectEmit(o,l)&&(_(i,n.getSourceFiles().map(function(e){return e.path})),e.Debug.assert(void 0===i.seenAffectedFiles),i.seenAffectedFiles=e.createMap()),i}function t(e,n,t){var r=e.file;return s(s({},e),{file:r?n.getSourceFileByPath(t(r)):void 0})}function r(n,t){e.Debug.assert(!t||!n.affectedFiles||n.affectedFiles[n.affectedFilesIndex-1]!==t||!n.semanticDiagnosticsPerFile.has(t.path))}function a(n,t,r){for(;;){var a=n.affectedFiles;if(a){for(var o=n.seenAffectedFiles,s=n.affectedFilesIndex;s<a.length;){var l=a[s];if(!o.has(l.path))return n.affectedFilesIndex=s,i(n,l,t,r),l;o.set(l.path,!0),s++}n.changedFilesSet.delete(n.currentChangedFilePath),n.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(n,n.currentAffectedFilesSignatures),n.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(n,n.currentAffectedFilesExportedModulesMap),n.affectedFiles=void 0}var c=n.changedFilesSet.keys().next();if(c.done)return;var d=e.Debug.assertDefined(n.program),u=d.getCompilerOptions();if(u.outFile||u.out)return e.Debug.assert(!n.semanticDiagnosticsPerFile),d;n.currentAffectedFilesSignatures=n.currentAffectedFilesSignatures||e.createMap(),n.exportedModulesMap&&(n.currentAffectedFilesExportedModulesMap=n.currentAffectedFilesExportedModulesMap||e.createMap()),n.affectedFiles=e.BuilderState.getFilesAffectedBy(n,d,c.value,t,r,n.currentAffectedFilesSignatures,n.currentAffectedFilesExportedModulesMap),n.currentChangedFilePath=c.value,n.affectedFilesIndex=0,n.seenAffectedFiles=n.seenAffectedFiles||e.createMap()}}function i(n,t,r,a){if(o(n,t.path),n.allFilesExcludingDefaultLibraryFile!==n.affectedFiles)!function(n,t,r){if(!n.exportedModulesMap||1===n.affectedFiles.length||!n.changedFilesSet.has(t.path))return;e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var a=e.createMap();if(e.forEachEntry(n.currentAffectedFilesExportedModulesMap,function(e,i){return e&&e.has(t.path)&&l(n,i,a,r)}))return;e.forEachEntry(n.exportedModulesMap,function(e,i){return!n.currentAffectedFilesExportedModulesMap.has(i)&&e.has(t.path)&&l(n,i,a,r)})}(n,t,function(n,t){return function(n,t,r,a){if(o(n,t),!n.changedFilesSet.has(t)){var i=e.Debug.assertDefined(n.program),s=i.getSourceFileByPath(t);s&&(e.BuilderState.updateShapeSignature(n,i,s,e.Debug.assertDefined(n.currentAffectedFilesSignatures),r,a,n.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(n.compilerOptions)&&_(n,[t]))}return!1}(n,t,r,a)});else if(!n.cleanedDiagnosticsOfLibFiles){n.cleanedDiagnosticsOfLibFiles=!0;var i=e.Debug.assertDefined(n.program),s=i.getCompilerOptions();e.forEach(i.getSourceFiles(),function(t){return i.isSourceFileDefaultLibrary(t)&&!e.skipTypeChecking(t,s)&&o(n,t.path)})}}function o(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function l(n,t,r,a){return e.forEachEntry(n.referencedMap,function(i,o){return i.has(t)&&function n(t,r,a,i){if(!e.addToSeen(a,r))return!1;if(i(t,r))return!0;e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);if(e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,o){return e&&e.has(r)&&n(t,o,a,i)}))return!0;if(e.forEachEntry(t.exportedModulesMap,function(e,o){return!t.currentAffectedFilesExportedModulesMap.has(o)&&e.has(r)&&n(t,o,a,i)}))return!0;return!!e.forEachEntry(t.referencedMap,function(e,n){return e.has(r)&&!a.has(n)&&i(t,n)})}(n,o,r,a)})}function c(e,n,t,r){r?e.emittedBuildInfo=!0:n===e.program?(e.changedFilesSet.clear(),e.programEmitComplete=!0):(e.seenAffectedFiles.set(n.path,!0),t?e.affectedFilesPendingEmitIndex++:e.affectedFilesIndex++)}function d(e,n,t,r,a){return c(e,t,r,a),{result:n,affected:t}}function u(n,t,r){var a=t.path;if(n.semanticDiagnosticsPerFile){var i=n.semanticDiagnosticsPerFile.get(a);if(i)return i}var o=e.Debug.assertDefined(n.program).getSemanticDiagnostics(t,r);return n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(a,o),o}function m(n,t){if(!n.compilerOptions.outFile&&!n.compilerOptions.out){var r=e.Debug.assertDefined(n.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getOutputPathForBuildInfo(n.compilerOptions),r)),i={};n.fileInfos.forEach(function(e,t){var r=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(t);i[d(t)]=void 0===r?e:{version:e.version,signature:r}});var o={fileInfos:i,options:function(n,t){var r={},a=e.getOptionNameMap().optionNameMap;for(var i in n)e.hasProperty(n,i)&&(r[i]=p(a.get(i.toLowerCase()),n[i],t));r.configFilePath&&(r.configFilePath=t(r.configFilePath));return r}(n.compilerOptions,function(n){return d(e.getNormalizedAbsolutePath(n,r))})};if(n.referencedMap){var s={};n.referencedMap.forEach(function(n,t){s[d(t)]=e.arrayFrom(n.keys(),d)}),o.referencedMap=s}if(n.exportedModulesMap){var l={};n.exportedModulesMap.forEach(function(t,r){var a=n.currentAffectedFilesExportedModulesMap&&n.currentAffectedFilesExportedModulesMap.get(r);void 0===a?l[d(r)]=e.arrayFrom(t.keys(),d):a&&(l[d(r)]=e.arrayFrom(a.keys(),d))}),o.exportedModulesMap=l}if(n.semanticDiagnosticsPerFile){var c=[];n.semanticDiagnosticsPerFile.forEach(function(t,r){return c.push(t.length?[d(r),n.hasReusableDiagnostic?t:function(n,t){return e.Debug.assert(!!n.length),n.map(function(n){var r=f(n,t);r.reportsUnnecessary=n.reportsUnnecessary,r.source=n.source;var a=n.relatedInformation;return r.relatedInformation=a?a.length?a.map(function(e){return f(e,t)}):e.emptyArray:void 0,r})}(t,d)]:d(r))}),o.semanticDiagnosticsPerFile=c}return o}function d(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(a,n,t))}}function p(e,n,t){if(e)if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function f(e,n){var t=e.file;return s(s({},e),{file:t?n(t.path):void 0})}var g;function _(n,t){n.affectedFilesPendingEmit=e.concatenate(n.affectedFilesPendingEmit,t),void 0===n.affectedFilesPendingEmitIndex&&(n.affectedFilesPendingEmitIndex=0)}function y(n,t){if(n){var r=e.createMap();for(var a in n)e.hasProperty(n,a)&&r.set(t(a),e.arrayToSet(n[a],t));return r}}function v(e,n,t){if(e)if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function h(n,t){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:r,getProgramOrUndefined:function(){return n.program},releaseProgram:function(){return n.program=void 0},getCompilerOptions:function(){return n.compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,n){return r().getSyntacticDiagnostics(e,n)},getDeclarationDiagnostics:function(e,n){return r().getDeclarationDiagnostics(e,n)},getSemanticDiagnostics:function(e,n){return r().getSemanticDiagnostics(e,n)},emit:function(e,n,t,a,i){return r().emit(e,n,t,a,i)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()}};function r(){return e.Debug.assertDefined(n.program)}}!function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(g=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(n,t,r,a,i,o){var s,l,c;return void 0===n?(e.Debug.assert(void 0===t),s=r,c=a,e.Debug.assert(!!c),l=c.getProgram()):e.isArray(n)?(c=a,l=e.createProgram({rootNames:n,options:t,host:r,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),s=r):(l=n,s=t,c=r,i=a),{host:s,newProgram:l,oldProgram:c,configFileParsingDiagnostics:i||e.emptyArray}},e.createBuilderProgram=function(t,i){var o=i.newProgram,s=i.host,l=i.oldProgram,p=i.configFileParsingDiagnostics,f=l&&l.getState();if(f&&o===f.program&&p===o.getConfigFileParsingDiagnostics())return o=void 0,f=void 0,l;var y,v=e.createGetCanonicalFileName(s.useCaseSensitiveFileNames()),b=s.createHash||e.generateDjb2Hash,E=n(o,v,f);o.getProgramBuildInfo=function(){return m(E,v)},o=void 0,l=void 0,f=void 0;var T=h(E,p);return T.getState=function(){return E},T.backupState=function(){e.Debug.assert(void 0===y),y=function(n){var t=e.BuilderState.clone(n);return t.semanticDiagnosticsPerFile=e.cloneMapOrUndefined(n.semanticDiagnosticsPerFile),t.changedFilesSet=e.cloneMap(n.changedFilesSet),t.affectedFiles=n.affectedFiles,t.affectedFilesIndex=n.affectedFilesIndex,t.currentChangedFilePath=n.currentChangedFilePath,t.currentAffectedFilesSignatures=e.cloneMapOrUndefined(n.currentAffectedFilesSignatures),t.currentAffectedFilesExportedModulesMap=e.cloneMapOrUndefined(n.currentAffectedFilesExportedModulesMap),t.seenAffectedFiles=e.cloneMapOrUndefined(n.seenAffectedFiles),t.cleanedDiagnosticsOfLibFiles=n.cleanedDiagnosticsOfLibFiles,t.semanticDiagnosticsFromOldState=e.cloneMapOrUndefined(n.semanticDiagnosticsFromOldState),t.program=n.program,t.compilerOptions=n.compilerOptions,t.affectedFilesPendingEmit=n.affectedFilesPendingEmit,t.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex,t.seenEmittedFiles=e.cloneMapOrUndefined(n.seenEmittedFiles),t.programEmitComplete=n.programEmitComplete,t}(E)},T.restoreState=function(){E=e.Debug.assertDefined(y),y=void 0},T.getAllDependencies=function(n){return e.BuilderState.getAllDependencies(E,e.Debug.assertDefined(E.program),n)},T.getSemanticDiagnostics=function(n,t){r(E,n);var a,i=e.Debug.assertDefined(E.program).getCompilerOptions();if(i.outFile||i.out)return e.Debug.assert(!E.semanticDiagnosticsPerFile),e.Debug.assertDefined(E.program).getSemanticDiagnostics(n,t);if(n)return u(E,n,t);for(;L(t););for(var o=0,s=e.Debug.assertDefined(E.program).getSourceFiles();o<s.length;o++){var l=s[o];a=e.addRange(a,u(E,l,t))}return a||e.emptyArray},T.emit=function(n,a,i,o,l){if(t===g.EmitAndSemanticDiagnosticsBuilderProgram&&(r(E,n),!n)){for(var c=[],d=!1,u=void 0,m=[],p=void 0;p=S(a,i,o,l);)d=d||p.result.emitSkipped,u=e.addRange(u,p.result.diagnostics),m=e.addRange(m,p.result.emittedFiles),c=e.addRange(c,p.result.sourceMaps);return{emitSkipped:d,diagnostics:u||e.emptyArray,emittedFiles:m,sourceMaps:c}}return e.Debug.assertDefined(E.program).emit(n,a||e.maybeBind(s,s.writeFile),i,o,l)},T.releaseProgram=function(){!function(n){e.BuilderState.releaseCache(n),n.program=void 0}(E),y=void 0},t===g.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=L:t===g.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=L,T.emitNextAffectedFile=S):e.notImplemented(),T;function S(n,t,r,i){var o=a(E,t,b),l=!1;if(!o)if(E.compilerOptions.out||E.compilerOptions.outFile){var c=e.Debug.assertDefined(E.program);if(E.programEmitComplete||!e.some(c.getProjectReferences(),function(e){return!!e.prepend}))return void(E.programEmitComplete=!0);o=c}else{if(!(o=function(n){var t=n.affectedFilesPendingEmit;if(t){for(var r=n.seenEmittedFiles||(n.seenEmittedFiles=e.createMap()),a=n.affectedFilesPendingEmitIndex;a<t.length;a++){var i=e.Debug.assertDefined(n.program).getSourceFileByPath(t[a]);if(i&&!r.has(i.path))return n.affectedFilesPendingEmitIndex=a,i}n.affectedFilesPendingEmit=void 0,n.affectedFilesPendingEmitIndex=void 0}}(E))){if(E.emittedBuildInfo)return;var u=e.Debug.assertDefined(E.program);return d(E,u.emitBuildInfo(n||e.maybeBind(s,s.writeFile),t),u,!1,!0)}l=!0}return d(E,e.Debug.assertDefined(E.program).emit(o===E.program?void 0:o,n||e.maybeBind(s,s.writeFile),t,r,i),o,l)}function L(e,n){for(;;){var r=a(E,e,b);if(!r)return;if(r===E.program)return d(E,E.program.getSemanticDiagnostics(void 0,e),r);if(t===g.EmitAndSemanticDiagnosticsBuilderProgram&&_(E,[r.path]),!n||!n(r))return d(E,u(E,r,e),r);c(E,r)}}},e.createBuildProgramUsingProgramBuildInfo=function(n,t,r){var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory())),i=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames()),o=e.createMap();for(var s in n.fileInfos)e.hasProperty(n.fileInfos,s)&&o.set(c(s),n.fileInfos[s]);var l={fileInfos:o,compilerOptions:function(n,t){var r={},a=e.getOptionNameMap().optionNameMap;for(var i in n)e.hasProperty(n,i)&&(r[i]=v(a.get(i.toLowerCase()),n[i],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}(n.options,function(n){return e.getNormalizedAbsolutePath(n,a)}),referencedMap:y(n.referencedMap,c),exportedModulesMap:y(n.exportedModulesMap,c),semanticDiagnosticsPerFile:n.semanticDiagnosticsPerFile&&e.arrayToMap(n.semanticDiagnosticsPerFile,function(n){return e.isString(n)?n:n[0]},function(n){return e.isString(n)?e.emptyArray:n[1]}),hasReusableDiagnostic:!0};return{getState:function(){return l},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return l.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented};function c(n){return e.toPath(n,a,i)}},e.createRedirectedBuilderProgram=h}(u||(u={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(n,t,r,a,i,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,a,i,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(n,t,r,a,i,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,a,i,o))},e.createAbstractBuilder=function(n,t,r,a,i,o){var s=e.getBuilderCreationParameters(n,t,r,a,i,o),l=s.newProgram,c=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram({program:l,compilerOptions:l.getCompilerOptions()},c)}}(u||(u={})),function(e){function n(n){return e.some(e.ignoredPaths,function(t){return e.stringContains(n,t)})}function t(n){var t=e.getRootLength(n);if(n.length===t)return!1;var r=n.indexOf(e.directorySeparator,t);if(-1===r)return!1;if(47!==n.charCodeAt(0)&&-1===n.substr(t,r).search(/users/i))return!0;for(var a=r+1,i=2;i>0;i--)if(0===(a=n.indexOf(e.directorySeparator,a)+1))return!1;return!0}e.isPathIgnored=n,e.canWatchDirectory=t,e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(r,a,i){var o,s,l,c=!1,d=e.createMultiMap(),u=e.memoize(function(){return r.getCurrentDirectory()}),m=r.getCachedDirectoryStructureHost(),p=e.createMap(),f=e.createCacheWithRedirects(),g=e.createCacheWithRedirects(),_=e.createModuleResolutionCacheWithMaps(f,g,u(),r.getCanonicalFileName),y=e.createMap(),v=e.createCacheWithRedirects(),h=[".ts",".tsx",".js",".jsx",".json"],b=e.createMap(),E=e.createMap(),T=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,u())),S=T&&r.toPath(T),L=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:R,finishCachingPerDirectoryResolution:function(){c=!1,l=void 0,R(),E.forEach(function(e,n){0===e.refCount&&(E.delete(n),e.watcher.close())})},resolveModuleNames:function(n,t,r,a){return I(n,t,a,p,f,M,A,function(n){return!n.resolvedModule||!e.resolutionExtensionIsTSOrJson(n.resolvedModule.extension)},r,i)},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){var t=p.get(r.toPath(n));return t&&t.get(e)},resolveTypeReferenceDirectives:function(n,t,r){return I(n,t,r,y,v,e.resolveTypeReferenceDirective,x,function(e){return void 0===e.resolvedTypeReferenceDirective},void 0,!1)},removeResolutionsFromProjectReferenceRedirects:function(n){if(e.fileExtensionIs(n,".json")){var t=r.getCurrentProgram();if(t){var a=t.getResolvedProjectReferenceByPath(n);a&&a.commandLine.fileNames.forEach(function(e){return W(r.toPath(e))})}}},removeResolutionsOfFile:W,invalidateResolutionOfFile:function(e){W(e),z(function(n,t){var a=t(n);return!!a&&r.toPath(a.resolvedFileName)===e})},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(n){e.Debug.assert(l===n||void 0===l),l=n},createHasInvalidatedResolution:function(n){if(c||n)return s=void 0,e.returnTrue;var t=s;return s=void 0,function(e){return!!t&&t.has(e)||D(e)}},updateTypeRootsWatch:function(){var n=r.getCompilationSettings();if(n.types)J();else{var t=e.getEffectiveTypeRoots(n,{directoryExists:Q,getCurrentDirectory:u});t?e.mutateMap(L,e.arrayToMap(t,function(e){return r.toPath(e)}),{createNewValue:Y,onDeleteValue:e.closeFileWatcher}):J()}},closeTypeRootsWatch:J,clear:function(){e.clearMap(E,e.closeFileWatcherOf),b.clear(),d.clear(),J(),p.clear(),y.clear(),c=!1,R()}};function A(e){return e.resolvedModule}function x(e){return e.resolvedTypeReferenceDirective}function C(n,t){return!(void 0===n||t.length<=n.length)&&e.startsWith(t,n)&&t[n.length]===e.directorySeparator}function D(e){if(!l)return!1;var n=l.get(e);return!!n&&!!n.length}function R(){f.clear(),g.clear(),v.clear(),d.forEach(B),d.clear()}function M(n,t,a,i,o){var s=e.resolveModuleName(n,t,a,i,_,o);if(!r.getGlobalCache)return s;var l=r.getGlobalCache();if(!(void 0===l||e.isExternalModuleNameRelative(n)||s.resolvedModule&&e.extensionIsTS(s.resolvedModule.extension))){var c=e.loadModuleFromGlobalCache(e.Debug.assertDefined(r.globalCacheResolutionModuleName)(n),r.projectName,a,i,l),d=c.resolvedModule,u=c.failedLookupLocations;if(d)return{resolvedModule:d,failedLookupLocations:e.addRange(s.failedLookupLocations,u)}}return s}function I(n,t,a,i,s,l,d,u,m,p){var f=r.toPath(t),g=i.get(f)||i.set(f,e.createMap()).get(f),_=e.getDirectoryPath(f),y=s.getOrCreateMapOfCacheRedirects(a),v=y.get(_);v||(v=e.createMap(),y.set(_,v));for(var h=[],b=r.getCompilationSettings(),E=p&&D(f),T=r.getCurrentProgram(),S=T&&T.getResolvedProjectReferenceToRedirect(t),L=S?!a||a.sourceFile.path!==S.sourceFile.path:!!a,A=e.createMap(),x=0,C=n;x<C.length;x++){var R=C[x],M=g.get(R);if(!A.has(R)&&c||L||!M||M.isInvalidated||E&&!e.isExternalModuleNameRelative(R)&&u(M)){var I=M,O=v.get(R);O?M=O:(M=l(R,t,b,r,a),v.set(R,M)),g.set(R,M),G(R,M),I&&H(I),p&&o&&!k(I,M)&&(o.push(f),p=!1)}e.Debug.assert(void 0!==M&&!M.isInvalidated),A.set(R,!0),h.push(d(M))}return g.forEach(function(n,t){A.has(t)||e.contains(m,t)||(H(n),g.delete(t))}),h;function k(e,n){if(e===n)return!0;if(!e||!n)return!1;var t=d(e),r=d(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function O(n){return e.endsWith(n,"/node_modules")}function k(n){return e.endsWith(n,"/node_modules/@types")}function N(n,t){if(C(S,t)){n=e.isRootedDiskPath(n)?e.normalizePath(n):e.getNormalizedAbsolutePath(n,u()),e.Debug.assert(n.length===t.length,"FailedLookup: "+n+" failedLookupLocationPath: "+t);var r=t.indexOf(e.directorySeparator,S.length+1);return-1!==r?{dir:n.substr(0,r),dirPath:t.substr(0,r)}:{dir:T,dirPath:S,nonRecursive:!1}}return w(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,u())),e.getDirectoryPath(t))}function w(n,r){for(;e.pathContainsNodeModules(r);)n=e.getDirectoryPath(n),r=e.getDirectoryPath(r);if(O(r))return t(e.getDirectoryPath(r))?{dir:n,dirPath:r}:void 0;var a,i,o=!0;if(void 0!==S)for(;!C(r,S);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,a=r,i=n,r=s,n=e.getDirectoryPath(n)}return t(r)?{dir:i||n,dirPath:a||r,nonRecursive:o}:void 0}function P(n){return e.fileExtensionIsOneOf(n,h)}function G(n,t){t.failedLookupLocations&&t.failedLookupLocations.length&&(t.refCount?t.refCount++:(t.refCount=1,e.isExternalModuleNameRelative(n)?F(t):d.add(n,t)))}function F(n){e.Debug.assert(!!n.refCount);for(var t=!1,a=0,i=n.failedLookupLocations;a<i.length;a++){var o=i[a],s=r.toPath(o),l=N(o,s);if(l){var c=l.dir,d=l.dirPath,u=l.nonRecursive;if(!P(s)){var m=b.get(s)||0;b.set(s,m+1)}d===S?(e.Debug.assert(!u),t=!0):U(c,d,u)}}t&&U(T,S,!0)}function V(e){e.refCount=void 0}function B(e,n){var t=r.getCurrentProgram(),a=t&&t.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?V:F;e.forEach(a)}function U(n,t,a){var i=E.get(t);i?(e.Debug.assert(!!a==!!i.nonRecursive),i.refCount++):E.set(t,{watcher:function(e,n,t){return r.watchDirectoryOfFailedLookupLocation(e,function(e){var t=r.toPath(e);m&&m.addOrDeleteFileOrDirectory(e,t),!c&&X(t,n===t)&&r.onInvalidatedResolution()},t?0:1)}(n,t,a),refCount:1,nonRecursive:a})}function H(n){if(n.refCount&&(n.refCount--,!n.refCount)){for(var t=!1,a=0,i=n.failedLookupLocations;a<i.length;a++){var o=i[a],s=r.toPath(o),l=N(o,s);if(l){var c=l.dirPath,d=b.get(s);d&&(1===d?b.delete(s):(e.Debug.assert(d>1),b.set(s,d-1))),c===S?t=!0:K(c)}}t&&K(S)}}function K(e){E.get(e).refCount--}function j(e,n){var t=e.get(n);t&&(t.forEach(H),e.delete(n))}function W(e){j(p,e),j(y,e)}function q(n,t,r){var a=e.createMap();n.forEach(function(n,i){var o=e.getDirectoryPath(i),l=a.get(o);l||(l=e.createMap(),a.set(o,l)),n.forEach(function(n,a){l.has(a)||(l.set(a,!0),!n.isInvalidated&&t(n,r)&&(n.isInvalidated=!0,(s||(s=e.createMap())).set(i,!0)))})})}function z(n){var t;t=r.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,p.size>t||y.size>t?c=!0:(q(p,n,A),q(y,n,x))}function X(t,a){var i;if(a)i=function(e){return C(t,r.toPath(e))};else{if(n(t))return!1;if(r.fileIsOpen(t))return!1;var o=e.getDirectoryPath(t);if(k(t)||O(t)||k(o)||O(o))i=function(n){return r.toPath(n)===t||e.startsWith(r.toPath(n),t)};else{if(!P(t)&&!b.has(t))return!1;if(e.isEmittedFileOfProgram(r.getCurrentProgram(),t))return!1;i=function(e){return r.toPath(e)===t}}}var l=s&&s.size;return z(function(n){return e.some(n.failedLookupLocations,i)}),c||s&&s.size!==l}function J(){e.clearMap(L,e.closeFileWatcher)}function Y(e,n){return r.watchTypeRootsDirectory(n,function(t){var a=r.toPath(t);m&&m.addOrDeleteFileOrDirectory(t,a),r.onChangedAutomaticTypeDirectiveNames();var i=function(e,n){if(!c){if(C(S,n))return S;var t=w(e,n);return t&&E.has(t.dirPath)?t.dirPath:void 0}}(n,e);i&&X(a,i===a)&&r.onInvalidatedResolution()},1)}function Q(n){var a=e.getDirectoryPath(e.getDirectoryPath(n)),i=r.toPath(a);return i===S||t(i)}}}(u||(u={})),function(e){!function(n){var t,r;function a(n,t,r){var a=n.importModuleSpecifierPreference,i=n.importModuleSpecifierEnding;return{relativePreference:"relative"===a?0:"non-relative"===a?1:2,ending:function(){switch(i){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return n=r.imports,e.firstDefined(n,function(n){var t=n.text;return e.pathIsRelative(t)?e.hasJSOrJsonFileExtension(t):void 0})?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs?1:0}var n}()}}function i(n,t,r,a,i,o,c){var d=s(t,a),u=p(i,t,r,d.getCanonicalFileName,a,o);return e.firstDefined(u,function(e){return g(e,d,a,n)})||l(r,d,n,c)}function s(n,t){return{getCanonicalFileName:e.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(n)}}function l(n,t,r,a){var i=t.getCanonicalFileName,o=t.sourceDirectory,s=a.ending,l=a.relativePreference,d=r.baseUrl,u=r.paths,m=r.rootDirs,p=m&&function(n,t,r,a,i,o){var s=_(t,n,a);if(void 0===s)return;var l=_(r,n,a),c=void 0!==l?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(l,s,a)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?y(c,i,o):e.removeFileExtension(c)}(m,n,o,i,s,r)||y(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,n,i)),s,r);if(!d||0===l)return p;var g=v(n,d,i);if(!g)return p;var b=y(g,s,r),E=u&&f(e.removeFileExtension(g),b,u),T=void 0===E?b:E;return 1===l?T:(2!==l&&e.Debug.assertNever(l),h(T)||c(p)<c(T)?p:T)}function c(n){for(var t=0,r=e.startsWith(n,"./")?2:0;r<n.length;r++)47===n.charCodeAt(r)&&t++;return t}function d(e,n,t){return t(e)===t(n)}function u(n,t){return"node_modules"===t(n)||e.startsWith(n,"@")}function m(n,t,r,a){for(var i=e.getPathComponents(e.toPath(n,r,a)),o=e.getPathComponents(e.toPath(t,r,a));!u(i[i.length-2],a)&&!u(o[o.length-2],a)&&d(i[i.length-1],o[o.length-1],a);)i.pop(),o.pop();return[e.getPathFromPathComponents(i),e.getPathFromPathComponents(o)]}function p(n,t,r,a,i,s){var l=s.get(r),c=l?o(l,[r]):[r],d=i.getCurrentDirectory?i.getCurrentDirectory():"",u=c.map(function(n){return e.getNormalizedAbsolutePath(n,d)}),p=function(n,t,r){for(var a=e.createMap(),i=0,o=e.flatten(e.mapDefined(n,function(n){return n.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(n.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})))}));i<o.length;i++){var s=o[i],l=m(s[0],s[1],r,t),c=l[0],d=l[1];a.set(d,c)}return a}(n,a,d),f=[],g=!i.useCaseSensitiveFileNames||i.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;return p.forEach(function(n,r){if(!e.startsWithDirectory(t,n,a)){var o=e.find(u,function(e){return 0===g(e.slice(0,n.length+1),n+"/")});if(void 0!==o){var s=e.getRelativePathFromDirectory(n,o,a),l=e.resolvePath(r,s);i.fileExists&&!i.fileExists(l)||f.push(l)}}}),f.push.apply(f,u),f}function f(n,t,r){for(var a in r)for(var i=0,o=r[a];i<o.length;i++){var s=o[i],l=e.removeFileExtension(e.normalizePath(s)),c=l.indexOf("*");if(-1!==c){var d=l.substr(0,c),u=l.substr(c+1);if(t.length>=d.length+u.length&&e.startsWith(t,d)&&e.endsWith(t,u)||!u&&t===e.removeTrailingDirectorySeparator(d)){var m=t.substr(d.length,t.length-u.length);return a.replace("*",m)}}else if(l===t||l===n)return a}}function g(n,t,r,a){var i=t.getCanonicalFileName,o=t.sourceDirectory;if(r.fileExists&&r.readFile){var s=function(n){var t,r=0,a=0,i=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(t||(t={}));var o=0,s=0,l=0;for(;s>=0;)switch(o=s,s=n.indexOf("/",o+1),l){case 0:n.indexOf(e.nodeModulesPathPart,o)===o&&(r=o,a=s,l=1);break;case 1:case 2:1===l&&"@"===n.charAt(o+1)?l=2:(i=s,l=3);break;case 3:l=n.indexOf(e.nodeModulesPathPart,o)===o?1:3}return l>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:a,packageRootIndex:i,fileNameIndex:o}:void 0}(n);if(s){var l=n.substring(0,s.packageRootIndex),c=e.combinePaths(l,"package.json"),d=r.fileExists(c)?JSON.parse(r.readFile(c)):void 0,u=d&&d.typesVersions?e.getPackageJsonTypesVersionsPaths(d.typesVersions):void 0;if(u){var m=n.slice(s.packageRootIndex+1),p=f(e.removeFileExtension(m),y(m,0,a),u.paths);void 0!==p&&(n=e.combinePaths(n.slice(0,s.packageRootIndex),p))}var g=function(n){if(d){var t=d.typings||d.types||d.main;if(t){var a=e.toPath(t,l,i);if(e.removeFileExtension(a)===e.removeFileExtension(i(n)))return l}}var o=e.removeFileExtension(n);if("/index"===i(o.substring(s.fileNameIndex))&&!function(n,t){if(!n.fileExists)return;for(var r=0,a=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);r<a.length;r++){var i=a[r],o=t+i;if(n.fileExists(o))return o}}(r,o.substring(0,s.fileNameIndex)))return o.substring(0,s.fileNameIndex);return o}(n);if(e.startsWith(o,i(g.substring(0,s.topLevelNodeModulesIndex)))){var _=g.substring(s.topLevelPackageNameIndex+1),v=e.getPackageNameFromTypesPackageName(_);return e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.NodeJs&&v===_?void 0:v}}}}function _(n,t,r){return e.firstDefined(t,function(e){var t=v(n,e,r);return h(t)?void 0:t})}function y(n,t,r){if(e.fileExtensionIs(n,".json"))return n;var a=e.removeFileExtension(n);switch(t){case 0:return e.removeSuffix(a,"/index");case 1:return a;case 2:return a+function(n,t){var r=e.extensionFromPath(n);switch(r){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return r;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+n);default:return e.Debug.assertNever(r)}}(n,r);default:return e.Debug.assertNever(t)}}function v(n,t,r){var a=e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1);return e.isRootedDiskPath(a)?void 0:a}function h(n){return e.startsWith(n,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Auto=2]="Auto"}(t||(t={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(r||(r={})),n.updateModuleSpecifier=function(n,t,r,a,o,s,l){var c=i(n,t,r,a,o,s,function(n,t){return{relativePreference:e.isExternalModuleNameRelative(t)?0:1,ending:e.hasJSOrJsonFileExtension(t)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs||e.endsWith(t,"index")?1:0}}(n,l));if(c!==l)return c},n.getModuleSpecifier=function(e,n,t,r,o,s,l,c){return void 0===l&&(l={}),i(e,t,r,o,s,c,a(l,e,n))},n.getModuleSpecifiers=function(n,t,r,i,o,c,d){var u=function(n){var t=e.find(n.declarations,function(n){return e.isNonGlobalAmbientModule(n)&&(!e.isExternalModuleAugmentation(n)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name)))});if(t)return t.name.text}(n);if(u)return[u];var m=s(r.path,i),f=e.getSourceFileOfNode(n.valueDeclaration||e.getNonAugmentationDeclaration(n)),_=p(o,r.path,f.originalFileName,m.getCanonicalFileName,i,d),y=a(c,t,r),v=e.mapDefined(_,function(e){return g(e,m,i,t)});return v.length?v:_.map(function(e){return l(e,m,t,y)})},n.countPathComponents=c}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(u||(u={})),function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function t(t,r){var a=t===e.sys?n:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!r)return function(n){return t.write(e.formatDiagnostic(n,a))};var i=new Array(1);return function(n){i[0]=n,t.write(e.formatDiagnosticsWithColorAndContext(i,a)+a.getNewLine()),i[0]=void 0}}function r(n,t,r){return!(!n.clearScreen||r.preserveWatchOutput||r.extendedDiagnostics||r.diagnostics||!e.contains(e.screenStartingMessageCodes,t.code))&&(n.clearScreen(),!0)}function a(n,t){return t?function(t,a,i){r(n,t,i);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+(a+a),n.write(o)}:function(t,a,i){var o="";r(n,t,i)||(o+=a),o+=(new Date).toLocaleTimeString()+" - ",o+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+function(n,t){return e.contains(e.screenStartingMessageCodes,n.code)?t+t:t}(t,a),n.write(o)}}function i(n){return e.countWhere(n,function(n){return n.category===e.DiagnosticCategory.Error})}function s(n){return 1===n?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function l(n,t){if(0===n)return"";var r=e.createCompilerDiagnostic(1===n?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,n);return""+t+e.flattenDiagnosticMessageText(r.messageText,t)+t+t}function c(n,t){n.getCompilerOptions().listFiles&&e.forEach(n.getSourceFiles(),function(e){t(e.fileName)})}function d(n,t,r,a,o,s,l,d){var u=n.getConfigFileParsingDiagnostics().slice(),m=u.length;e.addRange(u,n.getSyntacticDiagnostics(void 0,s)),u.length===m&&(e.addRange(u,n.getOptionsDiagnostics(s)),e.addRange(u,n.getGlobalDiagnostics(s)),u.length===m&&e.addRange(u,n.getSemanticDiagnostics(void 0,s)));var p=n.emit(void 0,o,s,l,d),f=p.emittedFiles,g=p.diagnostics;if(e.addRange(u,g),e.sortAndDeduplicateDiagnostics(u).forEach(t),r){var _=n.getCurrentDirectory();e.forEach(f,function(n){var t=e.getNormalizedAbsolutePath(n,_);r("TSFILE: "+t)}),c(n,r)}return a&&a(i(u)),{emitResult:p,diagnostics:u}}function u(n,t,r,a,i,o,s,l){var c=d(n,t,r,a,i,o,s,l),u=c.emitResult,m=c.diagnostics;return u.emitSkipped&&m.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:m.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function m(n,t){return void 0===n&&(n=e.sys),{onWatchStatusChange:t||a(n),watchFile:e.maybeBind(n,n.watchFile)||function(){return e.noopFileWatcher},watchDirectory:e.maybeBind(n,n.watchDirectory)||function(){return e.noopFileWatcher},setTimeout:e.maybeBind(n,n.setTimeout)||e.noop,clearTimeout:e.maybeBind(n,n.clearTimeout)||e.noop}}function p(n,t){var r=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getNewLine:function(){return n.newLine},getCurrentDirectory:e.memoize(function(){return n.getCurrentDirectory()}),getDefaultLibLocation:r,getDefaultLibFileName:function(n){return e.combinePaths(r(),e.getDefaultLibFileName(n))},fileExists:function(e){return n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:function(e){return n.directoryExists(e)},getDirectories:function(e){return n.getDirectories(e)},readDirectory:function(e,t,r,a,i){return n.readDirectory(e,t,r,a,i)},realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable),trace:function(e){return n.write(e+n.newLine)},createDirectory:function(e){return n.createDirectory(e)},writeFile:function(e,t,r){return n.writeFile(e,t,r)},onCachedDirectoryStructureHostCreate:function(e){return e||n},createHash:e.maybeBind(n,n.createHash),createProgram:t||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function f(n,t,r,a){void 0===n&&(n=e.sys);var i=function(e){return n.write(e+n.newLine)},o=p(n,t);return e.copyProperties(o,m(n,a)),o.afterProgramCreate=function(t){var a=t.getCompilerOptions(),l=e.getNewLineCharacter(a,function(){return n.newLine});d(t,r,i,function(n){return o.onWatchStatusChange(e.createCompilerDiagnostic(s(n),n),l,a)})},o}function g(n,t,r){t(r),n.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=t,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=function(n,t,r,a){var i=r;i.onUnRecoverableConfigFileDiagnostic=function(n){return g(e.sys,a,n)};var o=e.getParsedCommandLineOfConfigFile(n,t,i);return i.onUnRecoverableConfigFileDiagnostic=void 0,o},e.getErrorCountForSummary=i,e.getWatchErrorSummaryDiagnosticMessage=s,e.getErrorSummaryText=l,e.listFiles=c,e.emitFilesAndReportErrors=d,e.emitFilesAndReportErrorsAndGetExitStatus=u,e.noopFileWatcher={close:e.noop},e.createWatchHost=m,function(e){e.ConfigFile="Config file",e.SourceFile="Source file",e.MissingFile="Missing file",e.WildcardDirectory="Wild card directory",e.FailedLookupLocations="Failed Lookup Locations",e.TypeRoots="Type roots"}(e.WatchType||(e.WatchType={})),e.createWatchFactory=function(n,t){var r=n.trace?t.extendedDiagnostics?e.WatchLogLevel.Verbose:t.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,a=r!==e.WatchLogLevel.None?function(e){return n.trace(e)}:e.noop,i=e.getWatchFactory(r,a);return i.writeLog=a,i},e.createCompilerHostFromProgramHost=function(n,t,r){void 0===r&&(r=n);var a=n.useCaseSensitiveFileNames(),i=e.memoize(function(){return n.getNewLine()});return{getSourceFile:function(r,a,i){var o;try{e.performance.mark("beforeIORead"),o=n.readFile(r,t().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,a):void 0},getDefaultLibLocation:e.maybeBind(n,n.getDefaultLibLocation),getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,a,i){try{e.performance.mark("beforeIOWrite"),function t(r){if(r.length>e.getRootLength(r)&&!n.directoryExists(r)){var a=e.getDirectoryPath(r);t(a),n.createDirectory&&n.createDirectory(r)}}(e.getDirectoryPath(e.normalizePath(t))),n.writeFile(t,r,a),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){i&&i(e.message)}},getCurrentDirectory:e.memoize(function(){return n.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return a},getCanonicalFileName:e.createGetCanonicalFileName(a),getNewLine:function(){return e.getNewLineCharacter(t(),i)},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:e.maybeBind(n,n.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(n,n.createHash),readDirectory:e.maybeBind(n,n.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(n,t){var r=n.getSourceFile,a=t.createHash||e.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var s=r.call.apply(r,o([n],e));return s&&(s.version=a.call(t,s.text)),s}},e.createProgramHost=p,e.createWatchCompilerHostOfConfigFile=function(e,n,r,a,i,o){var s=i||t(r),l=f(r,a,s,o);return l.onUnRecoverableConfigFileDiagnostic=function(e){return g(r,s,e)},l.configFileName=e,l.optionsToExtend=n,l},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,n,r,a,i,o,s){var l=f(r,a,i||t(r),o);return l.rootFiles=e,l.options=n,l.projectReferences=s,l},e.performIncrementalCompilation=function(n){var r=n.system||e.sys,a=n.host||(n.host=e.createIncrementalCompilerHost(n.options,r)),i=e.createIncrementalProgram(n),o=u(i,n.reportDiagnostic||t(r),function(e){return a.trace&&a.trace(e)},n.reportErrorSummary||n.options.pretty?function(e){return r.write(l(e,r.newLine))}:void 0);return n.afterProgramEmitAndDiagnostics&&n.afterProgramEmitAndDiagnostics(i),o}}(u||(u={})),function(e){function n(n,t){if(!n.out&&!n.outFile){var r=e.getOutputPathForBuildInfo(n);if(r){var a=t.readFile(r);if(a){var i=e.getBuildInfo(a);if(i.version===e.version&&i.program)return e.createBuildProgramUsingProgramBuildInfo(i.program,r,t)}}}}function t(n,t){void 0===t&&(t=e.sys);var r=e.createCompilerHostWorker(n,void 0,t);return r.createHash=e.maybeBind(t,t.createHash),e.setGetSourceFileAsHashVersioned(r,t),e.changeCompilerHostLikeToUseCache(r,function(n){return e.toPath(n,r.getCurrentDirectory(),r.getCanonicalFileName)}),r}e.readBuilderProgram=n,e.createIncrementalCompilerHost=t,e.createIncrementalProgram=function(r){var a=r.rootNames,i=r.options,o=r.configFileParsingDiagnostics,s=r.projectReferences,l=r.host,c=r.createProgram;return l=l||t(i),(c=c||e.createEmitAndSemanticDiagnosticsBuilderProgram)(a,i,l,n(i,l),o,s)},e.createWatchCompilerHost=function(n,t,r,a,i,o,s){return e.isArray(n)?e.createWatchCompilerHostOfFilesAndCompilerOptions(n,t,r,a,i,o,s):e.createWatchCompilerHostOfConfigFile(n,t,r,a,i,o)},e.createWatchProgram=function(t){var r,a,i,s,l,c,d,u,m=e.createMap(),p=!1,f=!1,g=t.useCaseSensitiveFileNames(),_=t.getCurrentDirectory(),y=t.configFileName,v=t.optionsToExtend,h=void 0===v?{}:v,b=t.createProgram,E=t.rootFiles,T=t.options,S=t.projectReferences,L=!1,A=!1,x=void 0===y?void 0:e.createCachedDirectoryStructureHost(t,_,g);x&&t.onCachedDirectoryStructureHostCreate&&t.onCachedDirectoryStructureHostCreate(x);var C=x||t,D=e.parseConfigHostFromCompilerHostLike(t,C),R=W();y&&t.configFileParsingResult&&(te(t.configFileParsingResult),R=W()),Z(e.Diagnostics.Starting_compilation_in_watch_mode),y&&!t.configFileParsingResult&&(R=e.getNewLineCharacter(h,function(){return t.getNewLine()}),e.Debug.assert(!E),ne(),R=W());var M,I=e.createWatchFactory(t,T),O=I.watchFile,k=I.watchFilePath,N=I.watchDirectory,w=I.writeLog,P=e.createGetCanonicalFileName(g);w("Current directory: "+_+" CaseSensitiveFileNames: "+g),y&&(M=O(t,y,function(){e.Debug.assert(!!y),a=e.ConfigFileProgramReloadLevel.Full,$()},e.PollingInterval.High,"Config file"));var G=e.createCompilerHostFromProgramHost(t,function(){return T},C);e.setGetSourceFileAsHashVersioned(G,t);var F=G.getSourceFile;G.getSourceFile=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return J.apply(void 0,o([e,q(e)],n))},G.getSourceFileByPath=J,G.getNewLine=function(){return R},G.fileExists=X,G.onReleaseOldSourceFile=function(e,n,t){var r=m.get(e.resolvedPath);void 0!==r&&(z(r)?(c||(c=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),m.delete(e.resolvedPath),t||V.removeResolutionsOfFile(e.path)))},G.toPath=q,G.getCompilationSettings=function(){return T},G.watchDirectoryOfFailedLookupLocation=function(e,n,r){return N(t,e,n,r,"Failed Lookup Locations")},G.watchTypeRootsDirectory=function(e,n,r){return N(t,e,n,r,"Type roots")},G.getCachedDirectoryStructureHost=function(){return x},G.onInvalidatedResolution=$,G.onChangedAutomaticTypeDirectiveNames=function(){f=!0,$()},G.fileIsOpen=e.returnFalse,G.maxNumberOfFilesToIterateForInvalidation=t.maxNumberOfFilesToIterateForInvalidation,G.getCurrentProgram=K,G.writeLog=w;var V=e.createResolutionCache(G,y?e.getDirectoryPath(e.getNormalizedAbsolutePath(y,_)):_,!1);G.resolveModuleNames=t.resolveModuleNames?function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolveModuleNames.apply(t,e)}:function(e,n,t,r){return V.resolveModuleNames(e,n,t,r)},G.resolveTypeReferenceDirectives=t.resolveTypeReferenceDirectives?function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolveTypeReferenceDirectives.apply(t,e)}:function(e,n,t){return V.resolveTypeReferenceDirectives(e,n,t)};var B=!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives;return r=n(T,G),j(),se(),y?{getCurrentProgram:H,getProgram:j,close:U}:{getCurrentProgram:H,getProgram:j,updateRootFileNames:function(n){e.Debug.assert(!y,"Cannot update root file names with config file watch mode"),E=n,$()},close:U};function U(){V.clear(),e.clearMap(m,function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),M&&(M.close(),M=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),i&&(e.clearMap(i,e.closeFileWatcher),i=void 0)}function H(){return r}function K(){return r&&r.getProgramOrUndefined()}function j(){w("Synchronizing program");var n=H();p&&(R=W(),n&&e.changesAffectModuleResolution(n.getCompilerOptions(),T)&&V.clear());var a=V.createHasInvalidatedResolution(B);return e.isProgramUptoDate(K(),E,T,Q,X,a,f,S)?A&&(r=b(void 0,void 0,G,r,u,S),A=!1):function(n){w("CreatingProgramWith::"),w("  roots: "+JSON.stringify(E)),w("  options: "+JSON.stringify(T));var t=p||!K();if(p=!1,A=!1,V.startCachingPerDirectoryResolution(),G.hasInvalidatedResolution=n,G.hasChangedAutomaticTypeDirectiveNames=f,r=b(E,T,G,r,u,S),V.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(r.getProgram(),i||(i=e.createMap()),ie),t&&V.updateTypeRootsWatch(),c){for(var a=0,o=c;a<o.length;a++){var s=o[a];i.has(s)||m.delete(s)}c=void 0}}(a),t.afterProgramCreate&&t.afterProgramCreate(r),r}function W(){return e.getNewLineCharacter(T||h,function(){return t.getNewLine()})}function q(n){return e.toPath(n,_,P)}function z(e){return"boolean"==typeof e}function X(e){var n=q(e);return!!z(m.get(n))||C.fileExists(e)}function J(n,r,a,i,o){var s=m.get(r);if(!z(s)){if(void 0===s||o||function(e){return"boolean"==typeof e.version}(s)){var l=F(n,a,i);if(s)l?(s.sourceFile=l,s.version=l.version,s.fileWatcher||(s.fileWatcher=k(t,n,re,e.PollingInterval.Low,r,"Source file"))):(s.fileWatcher&&s.fileWatcher.close(),m.set(r,!1));else if(l){var c=k(t,n,re,e.PollingInterval.Low,r,"Source file");m.set(r,{sourceFile:l,version:l.version,fileWatcher:c})}else m.set(r,!1);return l}return s.sourceFile}}function Y(e){var n=m.get(e);void 0!==n&&(z(n)?m.set(e,{version:!1}):n.version=!1)}function Q(e){var n=m.get(e);return n&&n.version?n.version:void 0}function Z(n){t.onWatchStatusChange&&t.onWatchStatusChange(e.createCompilerDiagnostic(n),R,T||h)}function $(){t.setTimeout&&t.clearTimeout&&(l&&t.clearTimeout(l),w("Scheduling update"),l=t.setTimeout(ee,250))}function ee(){switch(l=void 0,Z(e.Diagnostics.File_change_detected_Starting_incremental_compilation),a){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){w("Reloading new file names and options");var n=e.getFileNamesFromConfigSpecs(d,e.getDirectoryPath(y),T,D);e.updateErrorForNoInputFiles(n,y,d,u,L)&&(A=!0),E=n.fileNames,j()}();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),w("Reloading config file: "+y),a=e.ConfigFileProgramReloadLevel.None,x&&x.clearCache(),ne(),p=!0,j(),se();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),j()}e.perfLogger.logStopUpdateProgram("Done")}function ne(){te(e.getParsedCommandLineOfConfigFile(y,h,D))}function te(n){E=n.fileNames,T=n.options,d=n.configFileSpecs,S=n.projectReferences,u=e.getConfigFileParsingDiagnostics(n).slice(),L=e.canJsonReportNoInutFiles(n.raw),A=!0}function re(n,t,r){ae(n,r,t),t===e.FileWatcherEventKind.Deleted&&m.has(r)&&V.invalidateResolutionOfFile(r),V.removeResolutionsFromProjectReferenceRedirects(r),Y(r),$()}function ae(e,n,t){x&&x.addOrDeleteFile(e,n,t)}function ie(n){return k(t,n,oe,e.PollingInterval.Medium,n,"Missing file")}function oe(n,t,r){ae(n,r,t),t===e.FileWatcherEventKind.Created&&i.has(r)&&(i.get(r).close(),i.delete(r),Y(r),$())}function se(){d?e.updateWatchingWildcardDirectories(s||(s=e.createMap()),e.createMapFromTemplate(d.wildcardDirectories),le):s&&e.clearMap(s,e.closeFileWatcherOf)}function le(n,r){return N(t,n,function(t){e.Debug.assert(!!y);var r=q(t);x&&x.addOrDeleteFileOrDirectory(t,r),Y(r),e.isPathIgnored(r)||(r===n||!e.hasExtension(r)||e.isSupportedSourceFileName(t,T)?a!==e.ConfigFileProgramReloadLevel.Full&&(a=e.ConfigFileProgramReloadLevel.Partial,$()):w("Project: "+y+" Detected file add/remove of non supported extension: "+t))},r,"Wild card directory")}}}(u||(u={})),function(e){!function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly"}(e.UpToDateStatusType||(e.UpToDateStatusType={})),e.resolveConfigFileProjectName=function(n){return e.fileExtensionIs(n,".json")?n:e.combinePaths(n,"tsconfig.json")}}(u||(u={})),function(e){var n,t,r=new Date(-864e13),a=new Date(864e13);function i(){return e.createMap()}function s(n,t){return function(e,n,t){var r,a=e.get(n);return a||(r=t(),e.set(n,r)),a||r}(n,t,e.createMap)}function l(e,n){return n>e?n:e}function c(n){return e.fileExtensionIs(n,".d.ts")}function d(n,t){return function(r){var a=t?"["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";a+=""+e.flattenDiagnosticMessageText(r.messageText,n.newLine)+(n.newLine+n.newLine),n.write(a)}}function u(n,t,r,a){var i=e.createProgramHost(n,t);return i.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:e.returnUndefined,i.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:e.noop,i.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:e.noop,i.reportDiagnostic=r||e.createDiagnosticReporter(n),i.reportSolutionBuilderStatus=a||d(n),i}function m(n,t,r,a){var o,s,l=t,c=t,d=l.getCurrentDirectory(),u=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),m=(o=a,s={},e.commonOptionsWithBuild.forEach(function(n){e.hasProperty(o,n.name)&&(s[n.name]=o[n.name])}),s),p=e.createCompilerHostFromProgramHost(l,function(){return S.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(p,l),p.getParsedCommandLine=function(e){return g(S,e,f(S,e))},p.resolveModuleNames=e.maybeBind(l,l.resolveModuleNames),p.resolveTypeReferenceDirectives=e.maybeBind(l,l.resolveTypeReferenceDirectives);var _=p.resolveModuleNames?void 0:e.createModuleResolutionCache(d,u);if(!p.resolveModuleNames){var y=function(n,t,r){return e.resolveModuleName(n,t,S.projectCompilerOptions,p,_,r).resolvedModule};p.resolveModuleNames=function(n,t,r,a){return e.loadWithLocalCache(e.Debug.assertEachDefined(n),t,a,y)}}var v=e.createWatchFactory(c,a),h=v.watchFile,b=v.watchFilePath,E=v.watchDirectory,T=v.writeLog,S={host:l,hostWithWatch:c,currentDirectory:d,getCanonicalFileName:u,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(l),writeFileName:l.trace?function(e){return l.trace(e)}:void 0,options:a,baseCompilerOptions:m,rootNames:r,resolvedConfigFilePaths:e.createMap(),configFileCache:i(),projectStatus:i(),buildInfoChecked:i(),extendedConfigCache:e.createMap(),builderPrograms:i(),diagnostics:i(),projectPendingBuild:i(),projectErrorsReported:i(),compilerHost:p,moduleResolutionCache:_,buildOrder:void 0,readFileWithCache:function(e){return l.readFile(e)},projectCompilerOptions:m,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:n,currentInvalidatedProject:void 0,watch:n,allWatchedWildcardDirectories:i(),allWatchedInputFiles:i(),allWatchedConfigFiles:i(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:h,watchFilePath:b,watchDirectory:E,writeLog:T};return S}function p(n,t){return e.toPath(t,n.currentDirectory,n.getCanonicalFileName)}function f(e,n){var t=e.resolvedConfigFilePaths,r=t.get(n);if(void 0!==r)return r;var a=p(e,n);return t.set(n,a),a}function g(n,t,r){var a,i=n.configFileCache,o=i.get(r);if(o)return o.options?o:void 0;var s,l=n.parseConfigFileHost,c=n.baseCompilerOptions,d=n.extendedConfigCache,u=n.host;return u.getParsedCommandLine?(s=u.getParsedCommandLine(t))||(a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t)):(l.onUnRecoverableConfigFileDiagnostic=function(e){return a=e},s=e.getParsedCommandLineOfConfigFile(t,c,l,d),l.onUnRecoverableConfigFileDiagnostic=e.noop),i.set(r,s||a),s}function _(n,t){return e.resolveConfigFileProjectName(e.resolvePath(n.currentDirectory,t))}function y(n,t){for(var r,a=e.createMap(),i=e.createMap(),o=[],s=0,l=t;s<l.length;s++){c(l[s])}return r||e.emptyArray;function c(t,s){var l=f(n,t);if(!i.has(l))if(a.has(l))s||Y(n,e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join("\r\n"));else{a.set(l,!0),o.push(t);var d=g(n,t,l);if(d&&d.projectReferences)for(var u=0,m=d.projectReferences;u<m.length;u++){var p=m[u];c(_(n,p.path),s||p.circular)}o.pop(),i.set(l,!0),(r||(r=[])).push(t)}}}function v(n){return n.buildOrder||function(n){var t=y(n,n.rootNames.map(function(e){return _(n,e)}));if(e.arrayIsEqualTo(n.buildOrder,t))return n.buildOrder;n.resolvedConfigFilePaths.clear();var r=e.arrayToSet(t,function(e){return f(n,e)}),a={onDeleteValue:e.noop};e.mutateMapSkippingNewValues(n.configFileCache,r,a),e.mutateMapSkippingNewValues(n.projectStatus,r,a),e.mutateMapSkippingNewValues(n.buildInfoChecked,r,a),e.mutateMapSkippingNewValues(n.builderPrograms,r,a),e.mutateMapSkippingNewValues(n.diagnostics,r,a),e.mutateMapSkippingNewValues(n.projectPendingBuild,r,a),e.mutateMapSkippingNewValues(n.projectErrorsReported,r,a),n.watch&&(e.mutateMapSkippingNewValues(n.allWatchedConfigFiles,r,{onDeleteValue:e.closeFileWatcher}),e.mutateMapSkippingNewValues(n.allWatchedWildcardDirectories,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(n.allWatchedInputFiles,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcher)}}));return n.buildOrder=t}(n)}function h(n,t,r){var a=t&&_(n,t),i=v(n);if(a){var o=f(n,a);if(-1===e.findIndex(i,function(e){return f(n,e)===o}))return}var s=a?y(n,[a]):i;return e.Debug.assert(!r||void 0!==a),e.Debug.assert(!r||s[s.length-1]===a),r?s.slice(0,s.length-1):s}function b(n){n.cache&&E(n);var t=n.compilerHost,r=n.host,a=n.readFileWithCache,i=t.getSourceFile,s=e.changeCompilerHostLikeToUseCache(r,function(e){return p(n,e)},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i.call.apply(i,o([t],e))}),l=s.originalReadFile,c=s.originalFileExists,d=s.originalDirectoryExists,u=s.originalCreateDirectory,m=s.originalWriteFile,f=s.getSourceFileWithCache,g=s.readFileWithCache;n.readFileWithCache=g,t.getSourceFile=f,n.cache={originalReadFile:l,originalFileExists:c,originalDirectoryExists:d,originalCreateDirectory:u,originalWriteFile:m,originalReadFileWithCache:a,originalGetSourceFile:i}}function E(e){if(e.cache){var n=e.cache,t=e.host,r=e.compilerHost,a=e.extendedConfigCache,i=e.moduleResolutionCache;t.readFile=n.originalReadFile,t.fileExists=n.originalFileExists,t.directoryExists=n.originalDirectoryExists,t.createDirectory=n.originalCreateDirectory,t.writeFile=n.originalWriteFile,r.getSourceFile=n.originalGetSourceFile,e.readFileWithCache=n.originalReadFileWithCache,a.clear(),i&&(i.directoryToModuleNameMap.clear(),i.moduleNameToDirectoryMap.clear()),e.cache=void 0}}function T(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function S(e,n,t){var r=e.projectPendingBuild,a=r.get(n);void 0===a?r.set(n,t):a<t&&r.set(n,t)}function L(n,t){n.allProjectBuildPending&&(n.allProjectBuildPending=!1,n.options.watch&&Q(n,e.Diagnostics.Starting_compilation_in_watch_mode),b(n),v(n).forEach(function(t){return n.projectPendingBuild.set(f(n,t),e.ConfigFileProgramReloadLevel.None)}),t&&t.throwIfCancellationRequested())}function A(n,t){return n.projectPendingBuild.delete(t),n.currentInvalidatedProject=void 0,n.diagnostics.has(t)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function x(e,n,r,a,i){var o=!0;return{kind:t.UpdateOutputFileStamps,project:n,projectPath:r,buildOrder:i,getCompilerOptions:function(){return a.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){P(e,a,r),o=!1},done:function(){return o&&P(e,a,r),A(e,r)}}}function C(i,s,d,u,m,y,v){var h;!function(e){e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.BuildInvalidatedProjectOfBundle=5]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=6]="QueueReferencingProjects",e[e.Done=7]="Done"}(h||(h={}));var b,E,T,S=i===t.Build?h.CreateProgram:h.EmitBundle;return i===t.Build?{kind:i,project:d,projectPath:u,buildOrder:v,getCompilerOptions:function(){return y.options},getCurrentDirectory:function(){return s.currentDirectory},getBuilderProgram:function(){return x(e.identity)},getProgram:function(){return x(function(e){return e.getProgramOrUndefined()})},getSourceFile:function(e){return x(function(n){return n.getSourceFile(e)})},getSourceFiles:function(){return D(function(e){return e.getSourceFiles()})},getOptionsDiagnostics:function(e){return D(function(n){return n.getOptionsDiagnostics(e)})},getGlobalDiagnostics:function(e){return D(function(n){return n.getGlobalDiagnostics(e)})},getConfigFileParsingDiagnostics:function(){return D(function(e){return e.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(e,n){return D(function(t){return t.getSyntacticDiagnostics(e,n)})},getAllDependencies:function(e){return D(function(n){return n.getAllDependencies(e)})},getSemanticDiagnostics:function(e,n){return D(function(t){return t.getSemanticDiagnostics(e,n)})},getSemanticDiagnosticsOfNextAffectedFile:function(e,n){return x(function(t){return t.getSemanticDiagnosticsOfNextAffectedFile&&t.getSemanticDiagnosticsOfNextAffectedFile(e,n)})},emit:function(e,n,t,r,a){return e||r?x(function(i){return i.emit(e,n,t,r,a)}):(U(h.SemanticDiagnostics,t),S===h.Emit?F(n,t,a):void 0)},done:L}:{kind:i,project:d,projectPath:u,buildOrder:v,getCompilerOptions:function(){return y.options},getCurrentDirectory:function(){return s.currentDirectory},emit:function(e,n){return S!==h.EmitBundle?T:B(e,n)},done:L};function L(e,n,t){return U(h.Done,e,n,t),A(s,u)}function x(e){return U(h.CreateProgram),b&&e(b)}function D(n){return x(n)||e.emptyArray}function R(){if(e.Debug.assert(void 0===b),s.options.dry)return Y(s,e.Diagnostics.A_non_dry_build_would_build_project_0,d),E=n.Success,void(S=h.QueueReferencingProjects);if(s.options.verbose&&Y(s,e.Diagnostics.Building_project_0,d),0===y.fileNames.length)return $(s,u,y.errors),E=n.None,void(S=h.QueueReferencingProjects);var t=s.host,r=s.compilerHost;s.projectCompilerOptions=y.options,function(n,t,r){if(!n.moduleResolutionCache)return;var a=n.moduleResolutionCache,i=p(n,t);if(0===a.directoryToModuleNameMap.redirectsMap.size)e.Debug.assert(0===a.moduleNameToDirectoryMap.redirectsMap.size),a.directoryToModuleNameMap.redirectsMap.set(i,a.directoryToModuleNameMap.ownMap),a.moduleNameToDirectoryMap.redirectsMap.set(i,a.moduleNameToDirectoryMap.ownMap);else{e.Debug.assert(a.moduleNameToDirectoryMap.redirectsMap.size>0);var o={sourceFile:r.options.configFile,commandLine:r};a.directoryToModuleNameMap.setOwnMap(a.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),a.moduleNameToDirectoryMap.setOwnMap(a.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}a.directoryToModuleNameMap.setOwnOptions(r.options),a.moduleNameToDirectoryMap.setOwnOptions(r.options)}(s,d,y),b=t.createProgram(y.fileNames,y.options,r,function(n,t,r){var a=n.options,i=n.builderPrograms,o=n.compilerHost;if(a.force)return;var s=i.get(t);return s||e.readBuilderProgram(r.options,o)}(s,u,y),y.errors,y.projectReferences),S++}function k(e,n,t){e.length?(E=O(s,u,b,e,n,t),S=h.QueueReferencingProjects):S++}function N(t){e.Debug.assertDefined(b),k(o(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(t),b.getGlobalDiagnostics(t),b.getSyntacticDiagnostics(void 0,t)),n.SyntaxErrors,"Syntactic")}function P(t){k(e.Debug.assertDefined(b).getSemanticDiagnostics(void 0,t),n.TypeErrors,"Semantic")}function F(t,a,i){var o;e.Debug.assertDefined(b),e.Debug.assert(S===h.Emit),b.backupState();var d=[],m=e.emitFilesAndReportErrors(b,function(e){return(o||(o=[])).push(e)},void 0,void 0,function(e,n,t){return d.push({name:e,text:n,writeByteOrderMark:t})},a,!1,i).emitResult;if(o)return b.restoreState(),E=O(s,u,b,o,n.DeclarationEmitErrors,"Declaration file"),S=h.QueueReferencingProjects,{emitSkipped:!0,diagnostics:m.diagnostics};var f=s.host,g=s.compilerHost,_=n.DeclarationOutputUnchanged,v=r,T=!1,L=e.createDiagnosticCollection(),A=e.createMap();return d.forEach(function(r){var a,i=r.name,o=r.text,d=r.writeByteOrderMark;!T&&c(i)&&(f.fileExists(i)&&s.readFileWithCache(i)===o?a=f.getModifiedTime(i):(_&=~n.DeclarationOutputUnchanged,T=!0)),A.set(p(s,i),i),e.writeFile(t?{writeFile:t}:g,L,i,o,d),void 0!==a&&(v=l(a,v))}),V(L,A,v,T,d.length?d[0].name:e.getFirstProjectOutput(y,!f.useCaseSensitiveFileNames()),_),m}function V(t,r,i,o,l,c){var d=t.getDiagnostics();if(d.length)return E=O(s,u,b,d,n.EmitErrors,"Emit"),S=h.QueueReferencingProjects,d;s.writeFileName&&(r.forEach(function(e){return M(s,y,e)}),b&&e.listFiles(b,s.writeFileName));var m=w(s,y,i,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,r);return s.diagnostics.delete(u),s.projectStatus.set(u,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:o?a:m,oldestOutputFileName:l}),b&&I(s,u,b),s.projectCompilerOptions=s.baseCompilerOptions,S=h.QueueReferencingProjects,E=c,d}function B(a,o){if(e.Debug.assert(i===t.UpdateBundle),s.options.dry)return Y(s,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,d),E=n.Success,void(S=h.QueueReferencingProjects);s.options.verbose&&Y(s,e.Diagnostics.Updating_output_of_project_0,d);var l=s.compilerHost;s.projectCompilerOptions=y.options;var c=e.emitUsingBuildInfo(y,l,function(e){var n=_(s,e.path);return g(s,n,f(s,n))},o);if(e.isString(c))return Y(s,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,d,J(s,c)),S=h.BuildInvalidatedProjectOfBundle,T=C(t.Build,s,d,u,m,y,v);e.Debug.assert(!!c.length);var b=e.createDiagnosticCollection(),L=e.createMap();return c.forEach(function(n){var t=n.name,r=n.text,i=n.writeByteOrderMark;L.set(p(s,t),t),e.writeFile(a?{writeFile:a}:l,b,t,r,i)}),{emitSkipped:!1,diagnostics:V(b,L,r,!1,c[0].name,n.DeclarationOutputUnchanged)}}function U(n,t,r,a){for(;S<=n&&S<h.Done;){var i=S;switch(S){case h.CreateProgram:R();break;case h.SyntaxDiagnostics:N(t);break;case h.SemanticDiagnostics:P(t);break;case h.Emit:F(r,t,a);break;case h.EmitBundle:B(r,a);break;case h.BuildInvalidatedProjectOfBundle:e.Debug.assertDefined(T).done(t),S=h.Done;break;case h.QueueReferencingProjects:G(s,d,u,m,y,v,e.Debug.assertDefined(E)),S++;break;case h.Done:default:e.assertType(S)}e.Debug.assert(S>i)}}}function D(n,t,r){var a=n.options;return!(t.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!a.force)||(0===r.fileNames.length||!!r.errors.length||!e.isIncrementalCompilation(r.options))}function R(n,r,a){if(n.projectPendingBuild.size){if(n.currentInvalidatedProject)return e.arrayIsEqualTo(n.currentInvalidatedProject.buildOrder,r)?n.currentInvalidatedProject:void 0;for(var i=n.options,o=n.projectPendingBuild,s=0;s<r.length;s++){var l=r[s],c=f(n,l),d=n.projectPendingBuild.get(c);if(void 0!==d){a&&(a=!1,te(n,r));var u=g(n,l,c);if(u){if(d===e.ConfigFileProgramReloadLevel.Full)j(n,l,c),q(n,l,c,u),z(n,l,c,u);else if(d===e.ConfigFileProgramReloadLevel.Partial){var m=e.getFileNamesFromConfigSpecs(u.configFileSpecs,e.getDirectoryPath(l),u.options,n.parseConfigFileHost);e.updateErrorForNoInputFiles(m,l,u.configFileSpecs,u.errors,e.canJsonReportNoInutFiles(u.raw)),u.fileNames=m.fileNames,z(n,l,c,u)}var p=N(n,u,c);if(re(n,l,p),!i.force){if(p.type===e.UpToDateStatusType.UpToDate){$(n,c,u.errors),o.delete(c),i.dry&&Y(n,e.Diagnostics.Project_0_is_up_to_date,l);continue}if(p.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return $(n,c,u.errors),x(n,l,c,u,r)}if(p.type!==e.UpToDateStatusType.UpstreamBlocked){if(p.type!==e.UpToDateStatusType.ContainerOnly)return C(D(n,p,u)?t.Build:t.UpdateBundle,n,l,c,s,u,r);$(n,c,u.errors),o.delete(c)}else $(n,c,u.errors),o.delete(c),i.verbose&&Y(n,e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,p.upstreamProjectName)}else ee(n,c),o.delete(c)}}}}function M(e,n,t){var r=e.writeFileName;r&&n.options.listEmittedFiles&&r("TSFILE: "+t)}function I(e,n,t){var r=e.host,a=e.watch,i=e.builderPrograms;r.afterProgramEmitAndDiagnostics&&r.afterProgramEmitAndDiagnostics(t),a&&(t.releaseProgram(),i.set(n,t))}function O(n,t,r,a,i,o){return $(n,t,a),r&&n.writeFileName&&e.listFiles(r,n.writeFileName),n.projectStatus.set(t,{type:e.UpToDateStatusType.Unbuildable,reason:o+" errors"}),r&&I(n,t,r),n.projectCompilerOptions=n.baseCompilerOptions,i}function k(n,t,r,a){if(r<(n.host.getModifiedTime(t)||e.missingFileModifiedTime))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:a,newerInputFileName:t}}function N(n,t,i){if(void 0===t)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=n.projectStatus.get(i);if(void 0!==o)return o;var s=function(n,t,i){for(var o=void 0,s=r,d=n.host,u=0,m=t.fileNames;u<m.length;u++){var p=m[u];if(!d.fileExists(p))return{type:e.UpToDateStatusType.Unbuildable,reason:p+" does not exist"};var _=d.getModifiedTime(p)||e.missingFileModifiedTime;_>s&&(o=p,s=_)}if(!t.fileNames.length&&!e.canJsonReportNoInutFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var y,v=e.getAllProjectOutputs(t,!d.useCaseSensitiveFileNames()),h="(none)",b=a,E="(none)",T=r,S=r,L=!1,A=0,x=v;A<x.length;A++){var C=x[A];if(!d.fileExists(C)){y=C;break}var D=d.getModifiedTime(C)||e.missingFileModifiedTime;if(D<b&&(b=D,h=C),D<s){L=!0;break}D>T&&(T=D,E=C),c(C)&&(S=l(S,d.getModifiedTime(C)||e.missingFileModifiedTime))}var R,M=!1,I=!1;if(t.projectReferences){n.projectStatus.set(i,{type:e.UpToDateStatusType.ComputingUpstream});for(var O=0,w=t.projectReferences;O<w.length;O++){var P=w[O];I=I||!!P.prepend;var G=e.resolveProjectReferencePath(P),F=f(n,G),V=N(n,g(n,G,F),F);if(V.type!==e.UpToDateStatusType.ComputingUpstream&&V.type!==e.UpToDateStatusType.ContainerOnly){if(V.type===e.UpToDateStatusType.Unbuildable)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:P.path};if(V.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:P.path};if(!y){if(V.newestInputFileTime&&V.newestInputFileTime<=b)continue;if(V.newestDeclarationFileContentChangedTime&&V.newestDeclarationFileContentChangedTime<=b){M=!0,R=P.path;continue}return e.Debug.assert(void 0!==h,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:h,newerProjectName:P.path}}}}}if(void 0!==y)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:y};if(L)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:h,newerInputFileName:o};var B=k(n,t.options.configFilePath,b,h);if(B)return B;var U=e.forEach(t.options.configFile.extendedSourceFiles||e.emptyArray,function(e){return k(n,e,b,h)});if(U)return U;if(!n.buildInfoChecked.has(i)){n.buildInfoChecked.set(i,!0);var H=e.getOutputPathForBuildInfo(t.options);if(H){var K=n.readFileWithCache(H),j=K&&e.getBuildInfo(K);if(j&&(j.bundle||j.program)&&j.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:j.version}}}return I&&M?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h,newerProjectName:R}:{type:M?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:s,newestOutputFileTime:T,newestInputFileName:o,newestOutputFileName:E,oldestOutputFileName:h}}(n,t,i);return n.projectStatus.set(i,s),s}function w(n,t,r,a,i){var o=n.host,s=e.getAllProjectOutputs(t,!o.useCaseSensitiveFileNames());if(!i||s.length!==i.size)for(var d=!!n.options.verbose,u=o.now?o.now():new Date,m=0,f=s;m<f.length;m++){var g=f[m];i&&i.has(p(n,g))||(d&&(d=!1,Y(n,a,t.options.configFilePath)),c(g)&&(r=l(r,o.getModifiedTime(g)||e.missingFileModifiedTime)),o.setModifiedTime(g,u),M(n,t,g))}return r}function P(n,t,a){if(n.options.dry)return Y(n,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);var i=w(n,t,r,e.Diagnostics.Updating_output_timestamps_of_project_0);n.projectStatus.set(a,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:i,oldestOutputFileName:e.getFirstProjectOutput(t,!n.host.useCaseSensitiveFileNames())})}function G(t,r,a,i,o,s,l){if(!(l&n.AnyErrors)&&o.options.composite)for(var c=i+1;c<s.length;c++){var d=s[c],u=f(t,d);if(!t.projectPendingBuild.has(u)){var m=g(t,d,u);if(m&&m.projectReferences)for(var p=0,y=m.projectReferences;p<y.length;p++){var v=y[p];if(f(t,_(t,v.path))===a){var h=t.projectStatus.get(u);if(h)switch(h.type){case e.UpToDateStatusType.UpToDate:if(l&n.DeclarationOutputUnchanged){v.prepend?t.projectStatus.set(u,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h.oldestOutputFileName,newerProjectName:r}):h.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:l&n.DeclarationOutputUnchanged||t.projectStatus.set(u,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:h.type===e.UpToDateStatusType.OutOfDateWithPrepend?h.outOfDateOutputFileName:h.oldestOutputFileName,newerProjectName:r});break;case e.UpToDateStatusType.UpstreamBlocked:f(t,_(t,h.upstreamProjectName))===a&&T(t,u)}S(t,u,e.ConfigFileProgramReloadLevel.None);break}}}}}function F(n,t,r,a){var i=h(n,t,a);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;L(n,r);for(var o=!0,s=0,l=0;;){var c=R(n,i,o);if(!c)break;o=!1,c.done(r),n.diagnostics.has(c.projectPath)?l++:s++}return E(n),ne(n,i),function(e,n){if(!e.watchAllProjectsPending)return;e.watchAllProjectsPending=!1;for(var t=0,r=n;t<r.length;t++){var a=r[t],i=f(e,a);j(e,a,i);var o=g(e,a,i);o&&(q(e,a,i,o),z(e,a,i,o))}}(n,i),l?s?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function V(n,t,r){var a=h(n,t,r);if(!a)return e.ExitStatus.InvalidProject_OutputsSkipped;for(var i=n.options,o=n.host,s=i.dry?[]:void 0,l=0,c=a;l<c.length;l++){var d=c[l],u=f(n,d),m=g(n,d,u);if(void 0!==m)for(var p=0,_=e.getAllProjectOutputs(m,!o.useCaseSensitiveFileNames());p<_.length;p++){var y=_[p];o.fileExists(y)&&(s?s.push(y):(o.deleteFile(y),B(n,u,e.ConfigFileProgramReloadLevel.None)))}else ee(n,u)}return s&&Y(n,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map(function(e){return"\r\n * "+e}).join("")),e.ExitStatus.Success}function B(n,t,r){n.host.getParsedCommandLine&&r===e.ConfigFileProgramReloadLevel.Partial&&(r=e.ConfigFileProgramReloadLevel.Full),r===e.ConfigFileProgramReloadLevel.Full&&(n.configFileCache.delete(t),n.buildOrder=void 0),n.needsSummary=!0,T(n,t),S(n,t,r),b(n)}function U(e,n,t){e.reportFileChangeDetected=!0,B(e,n,t),H(e)}function H(e){var n=e.hostWithWatch;n.setTimeout&&n.clearTimeout&&(e.timerToBuildInvalidatedProject&&n.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=n.setTimeout(K,250,e))}function K(n){n.timerToBuildInvalidatedProject=void 0,n.reportFileChangeDetected&&(n.reportFileChangeDetected=!1,n.projectErrorsReported.clear(),Q(n,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var t=v(n),r=R(n,t,!1);r&&(r.done(),n.projectPendingBuild.size)?n.watch&&!n.timerToBuildInvalidatedProject&&H(n):(E(n),ne(n,t))}function j(n,t,r){n.watch&&!n.allWatchedConfigFiles.has(r)&&n.allWatchedConfigFiles.set(r,n.watchFile(n.hostWithWatch,t,function(){U(n,r,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,"Config file",t))}function W(n,t,r){return 0===e.comparePaths(t,r,n.currentDirectory,!n.host.useCaseSensitiveFileNames())}function q(n,t,r,a){n.watch&&e.updateWatchingWildcardDirectories(s(n.allWatchedWildcardDirectories,r),e.createMapFromTemplate(a.configFileSpecs.wildcardDirectories),function(i,o){return n.watchDirectory(n.hostWithWatch,i,function(o){var s=p(n,o);s===p(n,i)||!e.hasExtension(s)||e.isSupportedSourceFileName(o,a.options)?!function(n,t,r){if(r.options.noEmit)return!1;if(!e.fileExtensionIs(t,".d.ts")&&(e.fileExtensionIs(t,".ts")||e.fileExtensionIs(t,".tsx")))return!1;var a=r.options.outFile||r.options.out;return!((!a||!W(n,t,a)&&!W(n,t,e.removeFileExtension(a)+".d.ts"))&&(!r.options.declarationDir||!e.containsPath(r.options.declarationDir,t,n.currentDirectory,!n.host.useCaseSensitiveFileNames()))&&(!r.options.outDir||!e.containsPath(r.options.outDir,t,n.currentDirectory,!n.host.useCaseSensitiveFileNames()))&&e.forEach(r.fileNames,function(e){return W(n,t,e)}))}(n,o,a)?U(n,r,e.ConfigFileProgramReloadLevel.Partial):n.writeLog(o+" is output file"):n.writeLog("Project: "+t+" Detected file add/remove of non supported extension: "+o)},o,"Wild card directory",t)})}function z(n,t,r,a){n.watch&&e.mutateMap(s(n.allWatchedInputFiles,r),e.arrayToMap(a.fileNames,function(e){return p(n,e)}),{createNewValue:function(a,i){return n.watchFilePath(n.hostWithWatch,i,function(){return U(n,r,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,a,"Source file",t)},onDeleteValue:e.closeFileWatcher})}function X(n,t,r,a){var i=m(n,t,r,a);return{build:function(e,n){return F(i,e,n)},clean:function(e){return V(i,e)},buildReferences:function(e,n){return F(i,e,n,!0)},cleanReferences:function(e){return V(i,e,!0)},getNextInvalidatedProject:function(e){return L(i,e),R(i,v(i),!1)},getBuildOrder:function(){return v(i)},getUpToDateStatusOfProject:function(e){var n=_(i,e),t=f(i,n);return N(i,g(i,n,t),t)},invalidateProject:function(n,t){return B(i,n,t||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return K(i)}}}function J(n,t){return e.convertToRelativePath(t,n.currentDirectory,function(e){return n.getCanonicalFileName(e)})}function Y(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,o([t],r)))}function Q(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n.hostWithWatch.onWatchStatusChange&&n.hostWithWatch.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,o([t],r)),n.host.getNewLine(),n.baseCompilerOptions)}function Z(e,n){var t=e.host;n.forEach(function(e){return t.reportDiagnostic(e)})}function $(e,n,t){Z(e,t),e.projectErrorsReported.set(n,!0),t.length&&e.diagnostics.set(n,t)}function ee(e,n){$(e,n,[e.configFileCache.get(n)])}function ne(n,t){if(n.needsSummary&&(n.watch||n.host.reportErrorSummary)){n.needsSummary=!1;var r=n.diagnostics;t.forEach(function(t){var a=f(n,t);n.projectErrorsReported.has(a)||Z(n,r.get(a)||e.emptyArray)});var a=0;r.forEach(function(n){return a+=e.getErrorCountForSummary(n)}),n.watch?Q(n,e.getWatchErrorSummaryDiagnosticMessage(a),a):n.host.reportErrorSummary(a)}}function te(n,t){n.options.verbose&&Y(n,e.Diagnostics.Projects_in_this_build_Colon_0,t.map(function(e){return"\r\n    * "+J(n,e)}).join(""))}function re(n,t,r){n.options.verbose&&function(n,t,r){switch(r.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Y(n,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,J(n,t),J(n,r.outOfDateOutputFileName),J(n,r.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Y(n,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,J(n,t),J(n,r.outOfDateOutputFileName),J(n,r.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Y(n,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,J(n,t),J(n,r.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==r.newestInputFileTime)return Y(n,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,J(n,t),J(n,r.newestInputFileName||""),J(n,r.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Y(n,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,J(n,t),J(n,r.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Y(n,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,J(n,t));case e.UpToDateStatusType.UpstreamOutOfDate:return Y(n,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,J(n,t),J(n,r.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Y(n,e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,J(n,t),J(n,r.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Y(n,e.Diagnostics.Failed_to_parse_file_0_Colon_1,J(n,t),r.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Y(n,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,J(n,t),r.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(r)}}(n,t,r)}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(n||(n={})),e.createBuilderStatusReporter=d,e.createSolutionBuilderHost=function(n,t,r,a,i){void 0===n&&(n=e.sys);var o=u(n,t,r,a);return o.reportErrorSummary=i,o},e.createSolutionBuilderWithWatchHost=function(n,t,r,a,i){void 0===n&&(n=e.sys);var o=u(n,t,r,a),s=e.createWatchHost(n,i);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,n,t){return X(!1,e,n,t)},e.createSolutionBuilderWithWatch=function(e,n,t){return X(!0,e,n,t)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(t=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}))}(u||(u={})),function(e){!function(n){n.ActionSet="action::set",n.ActionInvalidate="action::invalidate",n.ActionPackageInstalled="action::packageInstalled",n.EventTypesRegistry="event::typesRegistry",n.EventBeginInstallTypes="event::beginInstallTypes",n.EventEndInstallTypes="event::endInstallTypes",n.EventInitializationFailed="event::initializationFailed",function(e){e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}(n.Arguments||(n.Arguments={})),n.hasArgument=function(n){return e.sys.args.indexOf(n)>=0},n.findArgument=function(n){var t=e.sys.args.indexOf(n);return t>=0&&t<e.sys.args.length-1?e.sys.args[t+1]:void 0},n.nowString=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}}(e.server||(e.server={}))}(u||(u={})),function(e){!function(n){function t(n,t){return new e.Version(e.getProperty(t,"ts"+e.versionMajorMinor)||e.getProperty(t,"latest")).compareTo(n.version)<=0}function r(e){return n.nodeCoreModules.has(e)?"node":e}n.isTypingUpToDate=t,n.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"],n.nodeCoreModules=e.arrayToSet(n.nodeCoreModuleList),n.nonRelativeModuleNameForTypingCache=r,n.loadSafeList=function(n,t){var r=e.readConfigFile(t,function(e){return n.readFile(e)});return e.createMapFromTemplate(r.config)},n.loadTypesMap=function(n,t){var r=e.readConfigFile(t,function(e){return n.readFile(e)});if(r.config)return e.createMapFromTemplate(r.config.simpleMap)},n.discoverTypings=function(n,a,i,o,s,l,c,d,u){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var m=e.createMap();i=e.mapDefined(i,function(n){var t=e.normalizePath(n);if(e.hasJSFileExtension(t))return t});var p=[];c.include&&S(c.include,"Explicitly included types");var f=c.exclude||[],g=e.arrayToSet(i,e.getDirectoryPath);g.set(o,!0),g.forEach(function(n,t){L(e.combinePaths(t,"package.json"),p),L(e.combinePaths(t,"bower.json"),p),A(e.combinePaths(t,"bower_components"),p),A(e.combinePaths(t,"node_modules"),p)}),function(n){var t=e.mapDefined(n,function(n){if(e.hasJSFileExtension(n)){var t=e.removeFileExtension(e.getBaseFileName(n.toLowerCase())),r=e.removeMinAndVersionNumbers(t);return s.get(r)}});t.length&&S(t,"Inferred typings from file names"),e.some(n,function(n){return e.fileExtensionIs(n,".jsx")})&&(a&&a("Inferred 'react' typings due to presence of '.jsx' extension"),T("react"))}(i),d&&S(e.deduplicate(d.map(r),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),l.forEach(function(e,n){var r=u.get(n);m.has(n)&&void 0===m.get(n)&&void 0!==r&&t(e,r)&&m.set(n,e.typingLocation)});for(var _=0,y=f;_<y.length;_++){var v=y[_];m.delete(v)&&a&&a("Typing for "+v+" is in exclude list, will be ignored.")}var h=[],b=[];m.forEach(function(e,n){void 0!==e?b.push(e):h.push(n)});var E={cachedTypingPaths:b,newTypingNames:h,filesToWatch:p};return a&&a("Result: "+JSON.stringify(E)),E;function T(e){m.has(e)||m.set(e,void 0)}function S(n,t){a&&a(t+": "+JSON.stringify(n)),e.forEach(n,T)}function L(t,r){if(n.fileExists(t)){r.push(t);var a=e.readConfigFile(t,function(e){return n.readFile(e)}).config;S(e.flatMap([a.dependencies,a.devDependencies,a.optionalDependencies,a.peerDependencies],e.getOwnKeys),"Typing names in '"+t+"' dependencies")}}function A(t,r){if(r.push(t),n.directoryExists(t)){var i=n.readDirectory(t,[".json"],void 0,void 0,2);a&&a("Searching for typing names in "+t+"; all files: "+JSON.stringify(i));for(var o=[],s=0,l=i;s<l.length;s++){var c=l[s],d=e.normalizePath(c),u=e.getBaseFileName(d);if("package.json"===u||"bower.json"===u){var p=e.readConfigFile(d,function(e){return n.readFile(e)}).config;if(("package.json"!==u||!p._requiredBy||0!==e.filter(p._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&p.name){var f=p.types||p.typings;if(f){var g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(d));a&&a("    Package '"+p.name+"' provides its own types."),m.set(p.name,g)}else o.push(p.name)}}}S(o,"    Found package names")}}},function(e){e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"}(n.NameValidationResult||(n.NameValidationResult={}));var a=214;function i(n,t,r,i){var o=i?"Scope":"Package";switch(t){case 1:return"'"+n+"':: "+o+" name '"+r+"' cannot be empty";case 2:return"'"+n+"':: "+o+" name '"+r+"' should be less than "+a+" characters";case 3:return"'"+n+"':: "+o+" name '"+r+"' cannot start with '.'";case 4:return"'"+n+"':: "+o+" name '"+r+"' cannot start with '_'";case 5:return"'"+n+"':: "+o+" name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}n.validatePackageName=function(e){return function e(n,t){if(!n)return 1;if(n.length>a)return 2;if(46===n.charCodeAt(0))return 3;if(95===n.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(n);if(r){var i=e(r[1],!1);if(0!==i)return{name:r[1],isScopeName:!0,result:i};var o=e(r[2],!1);return 0!==o?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(n)!==n?5:0}(e,!0)},n.renderPackageNameValidationFailure=function(e,n){return"object"==typeof e?i(n,e.result,e.name,e.isScopeName):i(n,e,n,!1)}}(e.JsTyping||(e.JsTyping={}))}(u||(u={})),function(e){var n;function t(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:n.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1}}!function(e){var n=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}();e.fromString=function(e){return new n(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.emptyOptions={},function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(n=e.IndentStyle||(e.IndentStyle={})),e.getDefaultFormatCodeSettings=t,e.testFormatSettings=t("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(u||(u={})),function(e){function n(n){switch(n.kind){case 238:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?7:1;case 152:case 187:case 155:case 154:case 276:case 277:case 157:case 156:case 158:case 159:case 160:case 240:case 197:case 198:case 275:case 268:return 1;case 151:case 242:case 243:case 169:return 2;case 312:return void 0===n.name?3:2;case 279:case 241:return 3;case 245:return e.isAmbientModule(n)?5:1===e.getModuleInstanceState(n)?5:4;case 244:case 253:case 254:case 249:case 250:case 255:case 256:return 7;case 285:return 5}return 7}function t(n){for(;149===n.parent.kind;)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function r(e,n){var t=a(e);return!!t&&!!t.parent&&n(t.parent)&&t.parent.expression===t}function a(e){return s(e)?e.parent:e}function i(n){return 73===n.kind&&e.isBreakOrContinueStatement(n.parent)&&n.parent.label===n}function o(n){return 73===n.kind&&e.isLabeledStatement(n.parent)&&n.parent.label===n}function s(e){return e&&e.parent&&190===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(99,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=n,e.getMeaningFromLocation=function(r){return 285===r.kind?1:255===r.parent.kind||260===r.parent.kind?7:t(r)?function(n){var t=149===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&249===t.parent.kind?7:4}(r):e.isDeclarationName(r)?n(r.parent):function(n){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind){case 101:return!e.isExpressionNode(n);case 179:return!0}switch(n.parent.kind){case 165:return!0;case 184:return!n.parent.isTypeOf;case 212:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(r)?2:function(e){return function(e){var n=e,t=!0;if(149===n.parent.kind){for(;n.parent&&149===n.parent.kind;)n=n.parent;t=n.right===e}return 165===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(190===n.parent.kind){for(;n.parent&&190===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&212===n.parent.kind&&274===n.parent.parent.kind){var r=n.parent.parent.parent;return 241===r.kind&&110===n.parent.parent.token||242===r.kind&&87===n.parent.parent.token}return!1}(e)}(r)?4:e.isTypeParameterDeclaration(r.parent)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent.parent)),2):e.isLiteralTypeNode(r.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=t,e.isCallExpressionTarget=function(n){return r(n,e.isCallExpression)},e.isNewExpressionTarget=function(n){return r(n,e.isNewExpression)},e.isCallOrNewExpressionTarget=function(n){return r(n,e.isCallOrNewExpression)},e.climbPastPropertyAccess=a,e.getTargetLabel=function(e,n){for(;e;){if(234===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(n,t){return!!e.isPropertyAccessExpression(n.expression)&&n.expression.name.text===t},e.isJumpStatementTarget=i,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||i(e)},e.isTagName=function(n){return e.isJSDocTag(n.parent)&&n.parent.tagName===n},e.isRightSideOfQualifiedName=function(e){return 149===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 245===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(n){return 73===n.kind&&e.isFunctionLike(n.parent)&&n.parent.name===n},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(n){switch(n.parent.kind){case 155:case 154:case 276:case 279:case 157:case 156:case 159:case 160:case 245:return e.getNameOfDeclaration(n.parent)===n;case 191:return n.parent.argumentExpression===n;case 150:return!0;case 183:return 181===n.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n},e.getContainerNode=function(n){for(e.isJSDocTypeAlias(n)&&(n=n.parent.parent);;){if(!(n=n.parent))return;switch(n.kind){case 285:case 157:case 156:case 240:case 197:case 159:case 160:case 241:case 242:case 244:case 245:return n}}},e.getNodeKind=function n(t){switch(t.kind){case 285:return e.isExternalModule(t)?"module":"script";case 245:return"module";case 241:case 210:return"class";case 242:return"interface";case 243:case 305:case 312:return"type";case 244:return"enum";case 238:return o(t);case 187:return o(e.getRootDeclaration(t));case 198:case 240:case 197:return"function";case 159:return"getter";case 160:return"setter";case 157:case 156:return"method";case 155:case 154:return"property";case 163:return"index";case 162:return"construct";case 161:return"call";case 158:return"constructor";case 151:return"type parameter";case 279:return"enum member";case 152:return e.hasModifier(t,92)?"property":"parameter";case 249:case 254:case 258:case 252:return"alias";case 205:var r=e.getAssignmentDeclarationKind(t),a=t.right;switch(r){case 7:case 8:case 9:case 0:return"";case 1:case 2:var i=n(a);return""===i?"const":i;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(r),""}case 73:return e.isImportClause(t.parent)?"alias":"";default:return""}function o(n){return e.isVarConst(n)?"const":e.isLet(n)?"let":"var"}},e.isThis=function(n){switch(n.kind){case 101:return!0;case 73:return e.identifierIsThisKeyword(n)&&152===n.parent.kind;default:return!1}};var l=/^\/\/\/\s*</;function c(e,n){return u(e.pos,e.end,n)}function d(e,n){return e.pos<n&&n<e.end}function u(e,n,t){return e<=t.pos&&n>=t.end}function m(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function p(n,t,r){var a=n.getChildren(r);if(a.length){var i=e.last(a);if(i.kind===t)return!0;if(26===i.kind&&1!==a.length)return a[a.length-2].kind===t}return!1}function f(e,n,t){return!!g(e,n,t)}function g(n,t,r){return e.find(n.getChildren(r),function(e){return e.kind===t})}function _(n){var t=e.find(n.parent.getChildren(),function(t){return e.isSyntaxList(t)&&c(t,n)});return e.Debug.assert(!t||e.contains(t.getChildren(),n)),t}function y(e,n,t){return h(e,n,!1,t,!1)}function v(e,n){return h(e,n,!0,void 0,!1)}function h(e,n,t,r,a){var i=e;e:for(;;){for(var o=0,s=i.getChildren(e);o<s.length;o++){var l=s[o];if((t?l.getFullStart():l.getStart(e,!0))>n)break;var c=l.getEnd();if(n<c||n===c&&(1===l.kind||a)){i=l;continue e}if(r&&c===n){var d=b(n,e,l);if(d&&r(d))return d}}return i}}function b(n,t,r,a){var i=function i(o){if(E(o)&&1!==o.kind)return o;var s=o.getChildren(t);for(var l=0;l<s.length;l++){var c=s[l];if(n<c.end){var d=c.getStart(t,!a),u=d>=n||!R(c,t)||L(c);if(u){var m=S(s,l,t);return m&&T(m,t)}return i(c)}}e.Debug.assert(void 0!==r||285===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var p=S(s,s.length,t);return p&&T(p,t)}(r||t);return e.Debug.assert(!(i&&L(i))),i}function E(n){return e.isToken(n)&&!L(n)}function T(e,n){if(E(e))return e;var t=e.getChildren(n),r=S(t,t.length,n);return r&&T(r,n)}function S(n,t,r){for(var a=t-1;a>=0;a--){if(L(n[a]))e.Debug.assert(a>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(R(n[a],r))return n[a]}}function L(n){return e.isJsxText(n)&&n.containsOnlyTriviaWhiteSpaces}function A(e,n,t){for(var r=e.kind,a=0;;){var i=b(e.getFullStart(),t);if(!i)return;if((e=i).kind===n){if(0===a)return e;a--}else e.kind===r&&a++}}function x(n,t,r){var a=r.getTypeAtLocation(n);return(e.isNewExpression(n.parent)?a.getConstructSignatures():a.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=t})}function C(n,t){for(var r=n,a=0,i=0;r;){switch(r.kind){case 28:if(!(r=b(r.getFullStart(),t))||!e.isIdentifier(r))return;if(!a)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};a--;break;case 48:a=3;break;case 47:a=2;break;case 30:a++;break;case 19:if(!(r=A(r,18,t)))return;break;case 21:if(!(r=A(r,20,t)))return;break;case 23:if(!(r=A(r,22,t)))return;break;case 27:i++;break;case 37:case 73:case 10:case 8:case 9:case 103:case 88:case 105:case 87:case 130:case 24:case 50:case 56:case 57:break;default:if(e.isTypeNode(r))break;return}r=b(r.getFullStart(),t)}}function D(n,t,r){return e.formatting.getRangeOfEnclosingComment(n,t,void 0,r)}function R(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function M(e,n,t){var r=D(e,n,void 0);return!!r&&t===l.test(e.text.substring(r.pos,r.end))}function I(e,n){return{span:e,newText:n}}function O(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function k(n,t,r,a){return e.createImportDeclaration(void 0,void 0,n||t?e.createImportClause(n,t&&t.length?e.createNamedImports(t):void 0):void 0,"string"==typeof r?N(r,a):r)}function N(n,t){return e.createLiteral(n,0===t)}function w(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function P(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,function(n){var t=e.getNameOfDeclaration(n);return t&&73===t.kind?t.escapedText:void 0})}function G(n,t,r,a){var i=e.createMap();return function n(o){if(!(96&o.flags&&e.addToSeen(i,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,function(i){return e.firstDefined(e.getAllSuperTypeNodes(i),function(i){var o=r.getTypeAtLocation(i),s=o&&o.symbol&&r.getPropertyOfType(o,t);return o&&s&&(e.firstDefined(r.getRootSymbols(s),a)||n(o.symbol))})})}(n)}function F(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function V(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}e.getLineStartPositionForPosition=function(n,t){return e.getLineStarts(t)[t.getLineAndCharacterOfPosition(n).line]},e.rangeContainsRange=c,e.rangeContainsRangeExclusive=function(e,n){return d(e,n.pos)&&d(e,n.end)},e.rangeContainsPosition=function(e,n){return e.pos<=n&&n<=e.end},e.rangeContainsPositionExclusive=d,e.startEndContainsRange=u,e.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},e.rangeOverlapsWithStartEnd=function(e,n,t){return m(e.pos,e.end,n,t)},e.nodeOverlapsWithStartEnd=function(e,n,t,r){return m(e.getStart(n),e.end,t,r)},e.startEndOverlapsWithStartEnd=m,e.positionBelongsToNode=function(n,t,r){return e.Debug.assert(n.pos<=t),t<n.end||!function n(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 241:case 242:case 244:case 189:case 185:case 169:case 219:case 246:case 247:case 253:case 257:return p(t,19,r);case 275:return n(t.block,r);case 193:if(!t.arguments)return!0;case 192:case 196:case 178:return p(t,21,r);case 166:case 167:return n(t.type,r);case 158:case 159:case 160:case 240:case 197:case 157:case 156:case 162:case 161:case 198:return t.body?n(t.body,r):t.type?n(t.type,r):f(t,21,r);case 245:return!!t.body&&n(t.body,r);case 223:return t.elseStatement?n(t.elseStatement,r):n(t.thenStatement,r);case 222:return n(t.expression,r)||f(t,26,r);case 188:case 186:case 191:case 150:case 171:return p(t,23,r);case 163:return t.type?n(t.type,r):f(t,23,r);case 272:case 273:return!1;case 226:case 227:case 228:case 225:return n(t.statement,r);case 224:return f(t,108,r)?p(t,21,r):n(t.statement,r);case 168:return n(t.exprName,r);case 200:case 199:case 201:case 208:case 209:var a=t;return n(a.expression,r);case 194:return n(t.template,r);case 207:var i=e.lastOrUndefined(t.templateSpans);return n(i,r);case 217:return e.nodeIsPresent(t.literal);case 256:case 250:return e.nodeIsPresent(t.moduleSpecifier);case 203:return n(t.operand,r);case 205:return n(t.right,r);case 206:return n(t.whenFalse,r);default:return!0}}(n,r)},e.findListItemInfo=function(n){var t=_(n);if(t){var r=t.getChildren();return{listItemIndex:e.indexOfNode(r,n),list:t}}},e.hasChildOfKind=f,e.findChildOfKind=g,e.findContainingList=_,e.getTouchingPropertyName=function(n,t){return y(n,t,function(n){return e.isPropertyNameLiteral(n)||e.isKeyword(n.kind)})},e.getTouchingToken=y,e.getTokenAtPosition=v,e.findTokenOnLeftOfPosition=function(n,t){var r=v(n,t);return e.isToken(r)&&t>r.getStart(n)&&t<r.getEnd()?r:b(t,n)},e.findNextToken=function(n,t,r){return function t(a){return e.isToken(a)&&a.pos===n.end?a:e.firstDefined(a.getChildren(),function(e){var a=e.pos<=n.pos&&e.end>n.end||e.pos===n.end;return a&&R(e,r)?t(e):void 0})}(t)},e.findPrecedingToken=b,e.isInString=function(n,t,r){if(void 0===r&&(r=b(t,n)),r&&e.isStringTextContainingNode(r)){var a=r.getStart(n),i=r.getEnd();if(a<t&&t<i)return!0;if(t===i)return!!r.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,n){var t=v(e,n);return!!t&&(11===t.kind||28===t.kind&&11===t.parent.kind||28===t.kind&&271===t.parent.kind||!(!t||19!==t.kind||271!==t.parent.kind)||28===t.kind&&264===t.parent.kind)},e.isInTemplateString=function(n,t){var r=v(n,t);return e.isTemplateLiteralKind(r.kind)&&t>r.getStart(n)},e.isInJSXText=function(n,t){var r=v(n,t);return!!e.isJsxText(r)||!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(28!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent))},e.findPrecedingMatchingToken=A,e.isPossiblyTypeArgumentPosition=function n(t,r,a){var i=C(t,r);return void 0!==i&&(e.isPartOfTypeNode(i.called)||0!==x(i.called,i.nTypeArguments,a).length||n(i.called,r,a))},e.getPossibleGenericSignatures=x,e.getPossibleTypeArgumentsInfo=C,e.isInComment=D,e.hasDocComment=function(n,t){var r=v(n,t);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(n){var t=e.isDeclaration(n)?e.getCombinedModifierFlags(n):0,r=[];return 8&t&&r.push("private"),16&t&&r.push("protected"),4&t&&r.push("public"),32&t&&r.push("static"),128&t&&r.push("abstract"),1&t&&r.push("export"),4194304&n.flags&&r.push("declare"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 165===n.kind||192===n.kind?n.typeArguments:e.isFunctionLike(n)||241===n.kind||242===n.kind?n.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(n){return!(10!==n&&13!==n&&!e.isTemplateLiteralKind(n))},e.isPunctuation=function(e){return 18<=e&&e<=72},e.isInsideTemplateLiteral=function(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)<t&&t<n.end||!!n.isUnterminated&&t===n.end},e.isAccessibilityModifier=function(e){switch(e){case 116:case 114:case 115:return!0}return!1},e.cloneCompilerOptions=function(n){var t=e.clone(n);return e.setConfigFileInOptions(t,n&&n.configFile),t},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(n){if(188===n.kind||189===n.kind){if(205===n.parent.kind&&n.parent.left===n&&60===n.parent.operatorToken.kind)return!0;if(228===n.parent.kind&&n.parent.initializer===n)return!0;if(e(276===n.parent.kind?n.parent.parent:n.parent))return!0}return!1},e.isInReferenceComment=function(e,n){return M(e,n,!0)},e.isInNonReferenceComment=function(e,n){return M(e,n,!1)},e.createTextSpanFromNode=function(n,t,r){return e.createTextSpanFromBounds(n.getStart(t),(r||n).getEnd())},e.createTextRangeFromNode=function(n,t){return e.createRange(n.getStart(t),n.end)},e.createTextSpanFromRange=function(n){return e.createTextSpanFromBounds(n.pos,n.end)},e.createTextRangeFromSpan=function(n){return e.createRange(n.start,n.start+n.length)},e.createTextChangeFromStartLength=function(n,t,r){return I(e.createTextSpan(n,t),r)},e.createTextChange=I,e.typeKeywords=[121,147,124,88,130,133,97,136,137,134,139,140,103,107,142,143,144],e.isTypeKeyword=function(n){return e.contains(e.typeKeywords,n)},e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var n=[];return function(t){var r=e.getNodeId(t);return!n[r]&&(n[r]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,n){for(var t="",r=0;r<n;r++)t+=e;return t},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(n){return 150===n.kind?e.isStringOrNumericLiteralLike(n.expression)?n.expression.text:void 0:e.getTextOfIdentifierOrLiteral(n)},e.programContainsEs6Modules=function(e){return e.getSourceFiles().some(function(n){return!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator})},e.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||e.target>=2||!!e.noEmit},e.hostUsesCaseSensitiveFileNames=O,e.hostGetCanonicalFileName=function(n){return e.createGetCanonicalFileName(O(n))},e.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?k(e,n,t,r):void 0},e.makeImport=k,e.makeStringLiteral=N,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=w,e.getQuotePreference=function(n,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;var r=n.imports&&e.find(n.imports,e.isStringLiteral);return r?w(r,n):1},e.getQuoteFromPreference=function(n){switch(n){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(n)}},e.symbolNameNoDefault=function(n){var t=P(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)},e.symbolEscapedNameNoDefault=P,e.isObjectBindingElementWithoutPropertyName=function(n){return e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)&&e.isIdentifier(n.name)&&!n.propertyName},e.getPropertySymbolFromBindingElement=function(e,n){var t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)},e.getPropertySymbolsFromBaseTypes=G,e.isMemberSymbolInBaseType=function(e,n){return G(e.parent,e.name,n,function(e){return!0})||!1},e.getParentNodeInSpan=function(n,t,r){if(n)for(;n.parent;){if(e.isSourceFile(n.parent)||!F(r,n.parent,t))return n;n=n.parent}},e.findModifier=function(n,t){return n.modifiers&&e.find(n.modifiers,function(e){return e.kind===t})},e.insertImport=function(n,t,r){var a=e.findLast(t.statements,e.isAnyImportSyntax);a?n.insertNodeAfter(t,a,r):n.insertNodeAtTopOfFile(t,r,!0)},e.textSpansEqual=V,e.documentSpansEqual=function(e,n){return e.fileName===n.fileName&&V(e.textSpan,n.textSpan)}}(u||(u={})),function(e){function n(e){return e.declarations&&e.declarations.length>0&&152===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=n;var t=function(){var n,t,i,o,s=10*e.defaultMaximumTruncationLength;m();var c=function(n){return u(n,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var t=n.length&&n[n.length-1].text;return o>s&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(a(" ",e.SymbolDisplayPartKind.space)),n.push(a("...",e.SymbolDisplayPartKind.punctuation))),n},writeKeyword:function(n){return u(n,e.SymbolDisplayPartKind.keyword)},writeOperator:function(n){return u(n,e.SymbolDisplayPartKind.operator)},writePunctuation:function(n){return u(n,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(n){return u(n,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(n){return u(n,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(n){return u(n,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(n){return u(n,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(n){return u(n,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(n){return u(n,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){if(o>s)return;d(),o+=e.length,n.push(r(e,t))},writeLine:function(){if(o>s)return;o+=1,n.push(l()),t=!0},write:c,writeComment:c,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return i},increaseIndent:function(){i++},decreaseIndent:function(){i--},clear:m,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function d(){if(!(o>s)&&t){var r=e.getIndentString(i);r&&(o+=r.length,n.push(a(r,e.SymbolDisplayPartKind.space))),t=!1}}function u(e,t){o>s||(d(),o+=e.length,n.push(a(e,t)))}function m(){n=[],t=!0,i=0,o=0}}();function r(t,r){return a(t,function(t){var r=t.flags;if(3&r)return n(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&r)return e.SymbolDisplayPartKind.propertyName;if(32768&r)return e.SymbolDisplayPartKind.propertyName;if(65536&r)return e.SymbolDisplayPartKind.propertyName;if(8&r)return e.SymbolDisplayPartKind.enumMemberName;if(16&r)return e.SymbolDisplayPartKind.functionName;if(32&r)return e.SymbolDisplayPartKind.className;if(64&r)return e.SymbolDisplayPartKind.interfaceName;if(384&r)return e.SymbolDisplayPartKind.enumName;if(1536&r)return e.SymbolDisplayPartKind.moduleName;if(8192&r)return e.SymbolDisplayPartKind.methodName;if(262144&r)return e.SymbolDisplayPartKind.typeParameterName;if(524288&r)return e.SymbolDisplayPartKind.aliasName;if(2097152&r)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(r))}function a(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function i(n){return a(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function o(n){return a(n,e.SymbolDisplayPartKind.text)}e.symbolPart=r,e.displayPart=a,e.spacePart=function(){return a(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=i,e.punctuationPart=function(n){return a(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return a(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?o(n):i(t)},e.textPart=o;var s="\r\n";function l(){return a("\n",e.SymbolDisplayPartKind.lineBreak)}function c(e){try{return e(t),t.displayParts()}finally{t.clear()}}function d(n,t){return e.ensureScriptKind(n,t&&t.getScriptKind&&t.getScriptKind(n))}function u(e){return 0!=(33554432&e.flags)}function m(e){return 0!=(2097152&e.flags)}function p(e,n){void 0===n&&(n=!0);var t=e&&g(e);return t&&!n&&_(t),t}function f(n,t,r,a,i){var o;if(void 0===t&&(t=!0),r&&a&&e.isBindingElement(n)&&e.isIdentifier(n.name)&&e.isObjectBindingPattern(n.parent))(l=(s=a.getSymbolAtLocation(n.name))&&r.get(String(e.getSymbolId(s))))&&l.text!==(n.name||n.propertyName).getText()&&(o=e.createBindingElement(n.dotDotDotToken,n.propertyName||n.name,l,n.initializer));else if(r&&a&&e.isIdentifier(n)){var s,l;(l=(s=a.getSymbolAtLocation(n))&&r.get(String(e.getSymbolId(s))))&&(o=e.createIdentifier(l.text))}return o||(o=g(n,r,a,i)),o&&!t&&_(o),i&&o&&i(n,o),o}function g(n,t,r,a){var i=t||r||a?e.visitEachChild(n,function(e){return f(e,!0,t,r,a)},e.nullTransformationContext):e.visitEachChild(n,p,e.nullTransformationContext);if(i===n){var o=e.getSynthesizedClone(n);return e.isStringLiteral(o)?o.textSourceNode=n:e.isNumericLiteral(o)&&(o.numericLiteralFlags=n.numericLiteralFlags),e.setTextRange(o,n)}return i.parent=void 0,i}function _(e){y(e),v(e)}function y(e){h(e,512,b)}function v(n){h(n,1024,e.getLastChild)}function h(n,t,r){e.addEmitFlags(n,t);var a=r(n);a&&h(a,t,r)}function b(e){return e.forEachChild(function(e){return e})}function E(e,n,t,r,a){return function(i,o,s,l){3===s?(i+=2,o-=2):i+=2,a(e,t||s,n.text.slice(i,o),void 0!==r?r:l)}}function T(n,t){if(e.startsWith(n,t))return 0;var r=n.indexOf(" "+t);return-1===r&&(r=n.indexOf("."+t)),-1===r&&(r=n.indexOf('"'+t)),-1===r?-1:r+1}function S(e){switch(e){case 35:case 33:case 36:case 34:return!0;default:return!1}}function L(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function A(e){return 220===e||222===e||224===e||229===e||230===e||231===e||235===e||237===e||155===e||243===e||250===e||249===e||256===e}e.getNewLineOrDefaultFromHost=function(e,n){return n&&n.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=l,e.mapToDisplayParts=c,e.typeToDisplayParts=function(e,n,t,r){return void 0===r&&(r=0),c(function(a){e.writeType(n,t,17408|r,a)})},e.symbolToDisplayParts=function(e,n,t,r,a){return void 0===a&&(a=0),c(function(i){e.writeSymbol(n,t,r,8|a,i)})},e.signatureToDisplayParts=function(e,n,t,r){return void 0===r&&(r=0),r|=25632,c(function(a){e.writeSignature(n,t,r,void 0,a)})},e.isImportOrExportSpecifierName=function(n){return!!n.parent&&e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n},e.scriptKindIs=function(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var i=d(n,t);return e.some(r,function(e){return e===i})},e.getScriptKind=d,e.getSymbolTarget=function(n,t){for(var r=n;m(r)||u(r)&&r.target;)r=u(r)&&r.target?r.target:e.skipAlias(r,t);return r},e.getUniqueSymbolId=function(n,t){return e.getSymbolId(e.skipAlias(n,t))},e.getFirstNonSpaceCharacterPosition=function(n,t){for(;e.isWhiteSpaceLike(n.charCodeAt(t));)t+=1;return t},e.getPrecedingNonSpaceCharacterPosition=function(n,t){for(;t>-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));)t-=1;return t+1},e.getSynthesizedDeepClone=p,e.getSynthesizedDeepCloneWithRenames=f,e.getSynthesizedDeepClones=function(n,t){return void 0===t&&(t=!0),n&&e.createNodeArray(n.map(function(e){return p(e,t)}),n.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=_,e.suppressLeadingTrivia=y,e.suppressTrailingTrivia=v,e.getUniqueName=function(n,t){for(var r=n,a=1;!e.isFileLevelUniqueName(t,r);a++)r=n+"_"+a;return r},e.getRenameLocation=function(n,t,r,a){for(var i=0,o=-1,s=0,l=n;s<l.length;s++){var c=l[s],d=c.fileName,u=c.textChanges;e.Debug.assert(d===t);for(var m=0,p=u;m<p.length;m++){var f=p[m],g=f.span,_=f.newText,y=T(_,r);if(-1!==y&&(o=g.start+i+y,!a))return o;i+=_.length-g.length}}return e.Debug.assert(a),e.Debug.assert(o>=0),o},e.copyLeadingComments=function(n,t,r,a,i){e.forEachLeadingCommentRange(r.text,n.pos,E(t,r,a,i,e.addSyntheticLeadingComment))},e.copyTrailingComments=function(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.end,E(t,r,a,i,e.addSyntheticTrailingComment))},e.copyTrailingAsLeadingComments=function(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.pos,E(t,r,a,i,e.addSyntheticLeadingComment))},e.getContextualTypeFromParent=function(e,n){var t=e.parent;switch(t.kind){case 193:return n.getContextualType(t);case 205:var r=t,a=r.left,i=r.operatorToken,o=r.right;return S(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 272:return t.expression===e?L(t,n):void 0;default:return n.getContextualType(e)}},e.quote=function(n,t){if(/^\d+$/.test(n))return n;var r=t.quotePreference||"auto",a=JSON.stringify(n);switch(r){case"auto":case"double":return a;case"single":return"'"+e.stripQuotes(a).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(r)}},e.isEqualityOperatorKind=S,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 207:case 194:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=L,e.getTypeNodeIfAccessible=function(e,n,t,r){var a=t.getTypeChecker(),i=!0,o=function(){i=!1},s=a.typeToTypeNode(e,n,void 0,{trackSymbol:function(e,n,t){i=i&&0===a.isSymbolAccessible(e,n,t,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:{readFile:r.readFile,fileExists:r.fileExists,directoryExists:r.directoryExists,getSourceFiles:t.getSourceFiles,getCurrentDirectory:t.getCurrentDirectory,getCommonSourceDirectory:t.getCommonSourceDirectory}});return i?s:void 0},e.syntaxUsuallyHasTrailingSemicolon=A,e.probablyUsesSemicolons=function(n){var t=0,r=0;return e.forEachChild(n,function a(i){if(A(i.kind)){var o=i.getLastToken(n);o&&26===o.kind?t++:r++}return t+r>=5||e.forEachChild(i,a)}),0===t&&r<=1||t/r>.2}}(u||(u={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(a,s,l){var c=0,d=0,u=[],m=function(n){switch(n){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(n)}}(s),p=m.prefix,f=m.pushTemplate;a=p+a;var g=p.length;f&&u.push(15),o.setText(a);var _=0,y=[],v=0;do{c=o.scan(),e.isTrivia(c)||(E(),d=c);var h=o.getTextPos();if(r(o.getTokenPos(),h,g,i(c),y),h>=a.length){var b=t(o,c,e.lastOrUndefined(u));void 0!==b&&(_=b)}}while(1!==c);function E(){switch(c){case 42:case 65:n[d]||13!==o.reScanSlashToken()||(c=13);break;case 28:73===d&&v++;break;case 30:v>0&&v--;break;case 121:case 139:case 136:case 124:case 140:v>0&&!l&&(c=73);break;case 15:u.push(c);break;case 18:u.length>0&&u.push(c);break;case 19:if(u.length>0){var t=e.lastOrUndefined(u);15===t?17===(c=o.reScanTemplateToken())?u.pop():e.Debug.assertEqual(c,16,"Should have been a template middle."):(e.Debug.assertEqual(t,18,"Should have been an open brace"),u.pop())}break;default:if(!e.isKeyword(c))break;24===d?c=73:e.isKeyword(d)&&e.isKeyword(c)&&!function(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 127:case 138:case 125:case 117:return!0;default:return!1}}(d,c)&&(c=73)}}return{endOfLineState:_,spans:y}}return{getClassificationsForLine:function(n,t,r){return function(n,t){for(var r=[],i=n.spans,o=0,s=0;s<i.length;s+=3){var l=i[s],c=i[s+1],d=i[s+2];if(o>=0){var u=l-o;u>0&&r.push({length:u,classification:e.TokenClass.Whitespace})}r.push({length:c,classification:a(d)}),o=l+c}var m=t.length-o;return m>0&&r.push({length:m,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:n.endOfLineState}}(s(n,t,r),n)},getEncodedLexicalClassifications:s}};var n=e.arrayToNumericMap([73,10,8,9,13,101,44,45,21,23,19,103,88],function(e){return e},function(){return!0});function t(n,t,r){switch(t){case 10:if(!n.isUnterminated())return;for(var a=n.getTokenText(),i=a.length-1,o=0;92===a.charCodeAt(i-o);)o++;if(0==(1&o))return;return 34===a.charCodeAt(0)?3:2;case 3:return n.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(t)){if(!n.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}function r(e,n,t,r,a){if(8!==r){0===e&&t>0&&(e+=t);var i=n-e;i>0&&a.push(e-t,i,r)}}function a(n){switch(n){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function i(n){if(e.isKeyword(n))return 3;if(function(e){switch(e){case 40:case 42:case 43:case 38:case 39:case 46:case 47:case 48:case 28:case 30:case 31:case 32:case 95:case 94:case 120:case 33:case 34:case 35:case 36:case 49:case 51:case 50:case 54:case 55:case 71:case 70:case 72:case 67:case 68:case 69:case 61:case 62:case 63:case 65:case 66:case 60:case 27:return!0;default:return!1}}(n)||function(e){switch(e){case 38:case 39:case 53:case 52:case 44:case 45:return!0;default:return!1}}(n))return 5;if(n>=18&&n<=72)return 10;switch(n){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 73:default:return e.isTemplateLiteralKind(n)?6:2}}function o(e,n){switch(n){case 245:case 241:case 242:case 240:e.throwIfCancellationRequested()}}function s(n,t,r,a,i){var s=[];return r.forEachChild(function l(c){if(c&&e.textSpanIntersectsWith(i,c.pos,c.getFullWidth())){if(o(t,c.kind),e.isIdentifier(c)&&!e.nodeIsMissing(c)&&a.has(c.escapedText)){var d=n.getSymbolAtLocation(c),u=d&&function n(t,r,a){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(n){return e.some(n.declarations,function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)})}(t)?14:void 0:2097152&i?n(a.getAliasedSymbol(t),r,a):2&r?64&i?13:262144&i?15:void 0:void 0}(d,e.getMeaningFromLocation(c),n);u&&function(e,n,t){s.push(e),s.push(n-e),s.push(t)}(c.getStart(r),c.getEnd(),u)}c.forEachChild(l)}}),{spans:s,endOfLineState:0}}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function c(n){e.Debug.assert(n.spans.length%3==0);for(var t=n.spans,r=[],a=0;a<t.length;a+=3)r.push({textSpan:e.createTextSpan(t[a],t[a+1]),classificationType:l(t[a+2])});return r}function d(n,t,r){var a=r.start,i=r.length,s=e.createScanner(99,!1,t.languageVariant,t.text),l=e.createScanner(99,!1,t.languageVariant,t.text),c=[];return v(t),{spans:c,endOfLineState:0};function d(e,n,t){c.push(e),c.push(n),c.push(t)}function u(n,r,a,i){if(3===r){var o=e.parseIsolatedJSDocComment(t.text,a,i);if(o&&o.jsDoc)return o.jsDoc.parent=n,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&&m(n,a.pos-n),d(a.pos,1,10),d(a.tagName.pos,a.tagName.end-a.tagName.pos,18),n=a.tagName.end,a.kind){case 307:i(a);break;case 311:p(a),n=a.end;break;case 310:case 308:v(a.typeExpression),n=a.end}}n!==e.end&&m(n,e.end-n);return;function i(e){e.isNameFirst&&(m(n,e.name.pos-n),d(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end),e.typeExpression&&(m(n,e.typeExpression.pos-n),v(e.typeExpression),n=e.typeExpression.end),e.isNameFirst||(m(n,e.name.pos-n),d(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end)}}(o.jsDoc)}else if(2===r&&function(n,r){var a=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,i=t.text.substr(n,r),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(i);if(!o)return!1;if(!(o[3]&&o[3]in e.commentPragmas))return!1;var s=n;m(s,o[1].length),d(s+=o[1].length,o[2].length,10),d(s+=o[2].length,o[3].length,21),s+=o[3].length;var l=o[4],c=s;for(;;){var u=a.exec(l);if(!u)break;var p=s+u.index;p>c&&(m(c,p-c),c=p),d(c,u[1].length,22),c+=u[1].length,u[2].length&&(m(c,u[2].length),c+=u[2].length),d(c,u[3].length,5),c+=u[3].length,u[4].length&&(m(c,u[4].length),c+=u[4].length),d(c,u[5].length,24),c+=u[5].length}(s+=o[4].length)>c&&m(c,s-c);o[5]&&(d(s,o[5].length,10),s+=o[5].length);var f=n+r;s<f&&m(s,f-s);return!0}(a,i))return;m(a,i)}function m(e,n){d(e,n,1)}function p(e){for(var n=0,t=e.getChildren();n<t.length;n++){v(t[n])}}function f(n,t,r){var a;for(a=t;a<r&&!e.isLineBreak(n.charCodeAt(a));a++);for(d(t,a-t,1),l.setTextPos(a);l.getTextPos()<r;)g()}function g(){var e=l.getTextPos(),n=l.scan(),t=l.getTextPos(),r=y(n);r&&d(e,t-e,r)}function _(n){if(e.isJSDoc(n))return!0;if(e.nodeIsMissing(n))return!0;var r=function(e){switch(e.parent&&e.parent.kind){case 263:if(e.parent.tagName===e)return 19;break;case 264:if(e.parent.tagName===e)return 20;break;case 262:if(e.parent.tagName===e)return 21;break;case 268:if(e.parent.name===e)return 22}return}(n);if(!e.isToken(n)&&11!==n.kind&&void 0===r)return!1;var a=11===n.kind?n.pos:function(n){for(s.setTextPos(n.pos);;){var r=s.getTextPos();if(!e.couldStartTrivia(t.text,r))return r;var a=s.scan(),i=s.getTextPos(),o=i-r;if(!e.isTrivia(a))return r;switch(a){case 4:case 5:continue;case 2:case 3:u(n,a,r,o),s.setTextPos(i);continue;case 7:var l=t.text,c=l.charCodeAt(r);if(60===c||62===c){d(r,o,1);continue}e.Debug.assert(124===c||61===c),f(l,r,i);break;case 6:break;default:e.Debug.assertNever(a)}}}(n),i=n.end-a;if(e.Debug.assert(i>=0),i>0){var o=r||y(n.kind,n);o&&d(a,i,o)}return!0}function y(n,t){if(e.isKeyword(n))return 3;if((28===n||30===n)&&t&&e.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(e.isPunctuation(n)){if(t){var r=t.parent;if(60===n&&(238===r.kind||155===r.kind||152===r.kind||268===r.kind))return 5;if(205===r.kind||203===r.kind||204===r.kind||206===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return 268===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(73===n){if(t)switch(t.parent.kind){case 241:return t.parent.name===t?11:void 0;case 151:return t.parent.name===t?15:void 0;case 242:return t.parent.name===t?13:void 0;case 244:return t.parent.name===t?12:void 0;case 245:return t.parent.name===t?14:void 0;case 152:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function v(r){if(r&&e.decodedTextSpanIntersectsWith(a,i,r.pos,r.getFullWidth())){o(n,r.kind);for(var s=0,l=r.getChildren(t);s<l.length;s++){var c=l[s];_(c)||v(c)}}}}e.getSemanticClassifications=function(e,n,t,r,a){return c(s(e,n,t,r,a))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,n,t){return c(d(e,n,t))},e.getEncodedSyntacticClassifications=d}(u||(u={})),function(e){!function(n){!function(t){function r(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){var t=e.name,r=e.kind,i=e.span;return{name:t,kind:r,kindModifiers:a(e.extension),sortText:n.SortText.LocationPriority,replacementSpan:i}})}}function a(n){switch(n){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(n)}}var i;function s(n,t,r,a,i,o){var s,d,u=t.parent;switch(u.kind){case 183:switch(u.parent.kind){case 165:return{kind:2,types:c(a.getTypeArgumentConstraint(u)),isNewIdentifier:!1};case 181:return l(a.getTypeFromTypeNode(u.parent.objectType));case 184:return{kind:0,paths:p(n,t,i,o,a)};case 174:if(!e.isTypeReferenceNode(u.parent.parent))return;var m=(s=u.parent,d=u,e.mapDefined(s.types,function(n){return n!==d&&e.isLiteralTypeNode(n)&&e.isStringLiteral(n.literal)?n.literal.text:void 0}));return{kind:2,types:c(a.getTypeArgumentConstraint(u.parent)).filter(function(n){return!e.contains(m,n.value)}),isNewIdentifier:!1};default:return}case 276:return e.isObjectLiteralExpression(u.parent)&&u.name===t?l(a.getContextualType(u.parent)):v();case 191:var f=u,g=f.expression,_=f.argumentExpression;return t===_?l(a.getTypeAtLocation(g)):void 0;case 192:case 193:if(!e.isRequireCall(u,!1)&&!e.isImportCall(u)){var y=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return y?function(n,t){var r=!1,a=e.createMap(),i=[];return t.getResolvedSignature(n.invocation,i,n.argumentCount),{kind:2,types:e.flatMap(i,function(e){if(e.hasRestParameter||!(n.argumentCount>e.parameters.length)){var i=t.getParameterType(e,n.argumentIndex);return r=r||!!(4&i.flags),c(i,a)}}),isNewIdentifier:r}}(y,a):v()}case 250:case 256:case 260:return{kind:0,paths:p(n,t,i,o,a)};default:return v()}function v(){return{kind:2,types:c(e.getContextualTypeFromParent(t,a)),isNewIdentifier:!1}}}function l(n){return n&&{kind:1,symbols:n.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(n)}}function c(n,t){return void 0===t&&(t=e.createMap()),n?(n=e.skipConstraint(n)).isUnion()?e.flatMap(n.types,function(e){return c(e,t)}):!n.isStringLiteral()||1024&n.flags||!e.addToSeen(t,n.value)?e.emptyArray:[n]:e.emptyArray}function d(e,n,t){return{name:e,kind:n,extension:t}}function u(e){return d(e,"directory",void 0)}function m(n,t,r){var a=function(n,t){var r=Math.max(n.lastIndexOf(e.directorySeparator),n.lastIndexOf("\\")),a=-1!==r?r+1:0,i=n.length-a;return 0===i||e.isIdentifierText(n.substr(a,i),99)?void 0:e.createTextSpan(t+a,i)}(n,t);return r.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:a}})}function p(n,t,r,a,i){return m(t.text,t.getStart(n)+1,function(n,t,r,a,i){var s=e.normalizeSlashes(t.text),l=n.path,c=e.getDirectoryPath(l);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(s)||!r.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(n,t,r,a,i){var s=f(r);return r.rootDirs?function(n,t,r,a,i,s,l){var c=i.project||s.getCurrentDirectory(),d=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),u=function(n,t,r,a){n=n.map(function(n){return e.normalizePath(e.isRootedDiskPath(n)?n:e.combinePaths(t,n))});var i=e.firstDefined(n,function(n){return e.containsPath(n,r,t,a)?r.substr(n.length):void 0});return e.deduplicate(o(n.map(function(n){return e.combinePaths(n,i)}),[r]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,c,r,d);return e.flatMap(u,function(e){return g(t,e,a,s,l)})}(r.rootDirs,n,t,s,r,a,i):g(n,t,s,a,i)}(s,c,r,a,l):function(n,t,r,a,i){var o=r.baseUrl,s=r.paths,l=[],c=f(r);if(o){var u=r.project||a.getCurrentDirectory(),m=e.normalizePath(e.combinePaths(u,o));g(n,m,c,a,void 0,l),s&&_(l,n,m,c.extensions,s,a)}for(var p=y(n),v=0,E=function(n,t,r){var a=r.getAmbientModules().map(function(n){return e.stripQuotes(n.name)}).filter(function(t){return e.startsWith(t,n)});if(void 0!==t){var i=e.ensureTrailingDirectorySeparator(t);return a.map(function(n){return e.removePrefix(n,i)})}return a}(n,p,i);v<E.length;v++){var S=E[v];l.push(d(S,"external module name",void 0))}if(h(a,r,t,p,c,l),e.getEmitModuleResolutionKind(r)===e.ModuleResolutionKind.NodeJs){var L=!1;if(void 0===p)for(var A=function(e){l.some(function(n){return n.name===e})||(L=!0,l.push(d(e,"external module name",void 0)))},C=0,D=function(n,t){if(!n.readFile||!n.fileExists)return e.emptyArray;for(var r=[],a=0,i=b(t,n);a<i.length;a++)for(var o=i[a],s=e.readJson(o,n),l=0,c=T;l<c.length;l++){var d=c[l],u=s[d];if(u)for(var m in u)u.hasOwnProperty(m)&&!e.startsWith(m,"@types/")&&r.push(m)}return r}(a,t);C<D.length;C++){var R=D[C];A(R)}L||e.forEachAncestorDirectory(t,function(t){var r=e.combinePaths(t,"node_modules");x(a,r)&&g(n,r,c,a,void 0,l)})}return l}(s,c,r,a,i)}(n,t,r,a,i))}function f(n,t){return void 0===t&&(t=!1),{extensions:function(n){var t=e.getSupportedExtensions(n);return n.resolveJsonModule&&e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs?t.concat(".json"):t}(n),includeExtensions:t}}function g(n,t,r,a,i,o){var s=r.extensions,l=r.includeExtensions;void 0===o&&(o=[]),void 0===n&&(n=""),n=e.normalizeSlashes(n),e.hasTrailingDirectorySeparator(n)||(n=e.getDirectoryPath(n)),""===n&&(n="."+e.directorySeparator),n=e.ensureTrailingDirectorySeparator(n);var c=e.resolvePath(t,n),m=e.hasTrailingDirectorySeparator(c)?c:e.getDirectoryPath(c),p=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames());if(!x(a,m))return o;var f=L(a,m,s,void 0,["./*"]);if(f){for(var g=e.createMap(),y=0,v=f;y<v.length;y++){var h=v[y];if(h=e.normalizePath(h),!i||0!==e.comparePaths(h,i,t,p)){var b=l||e.fileExtensionIs(h,".json")?e.getBaseFileName(h):e.removeFileExtension(e.getBaseFileName(h));g.set(b,e.tryGetExtensionFromPath(h))}}g.forEach(function(e,n){o.push(d(n,"script",e))})}var E=S(a,m);if(E)for(var T=0,C=E;T<C.length;T++){var D=C[T],R=e.getBaseFileName(e.normalizePath(D));"@types"!==R&&o.push(u(R))}var M=function(n,t){var r;return e.forEachAncestorDirectory(n,function(n){return"node_modules"===n||!!(r=e.findConfigFile(n,function(e){return A(t,e)},"package.json"))||void 0}),r}(m,a);if(M){var I=e.readJson(M,a).typesVersions;if("object"==typeof I){var O=e.getPackageJsonTypesVersionsPaths(I),k=O&&O.paths,N=c.slice(e.ensureTrailingDirectorySeparator(m).length);k&&_(o,N,m,s,k,a)}}return o}function _(n,t,r,a,i,o){for(var s in i)if(e.hasProperty(i,s)){var l=i[s];if(l)for(var c=function(e,t,r){n.some(function(n){return n.name===e})||n.push(d(e,t,r))},u=0,m=v(s,l,t,r,a,o);u<m.length;u++){var p=m[u];c(p.name,p.kind,p.extension)}}}function y(n){return R(n)?e.hasTrailingDirectorySeparator(n)?n:e.getDirectoryPath(n):void 0}function v(n,t,r,a,i,s){if(!e.endsWith(n,"*"))return e.stringContains(n,"*")?e.emptyArray:m(n);var l=n.slice(0,n.length-1),c=e.tryRemovePrefix(r,l);return void 0===c?m(l):e.flatMap(t,function(n){return function(n,t,r,a,i){if(!i.readDirectory)return;var s=e.hasZeroOrOneAsteriskCharacter(r)?e.tryParsePattern(r):void 0;if(!s)return;var l=e.resolvePath(s.prefix),c=e.hasTrailingDirectorySeparator(s.prefix)?l:e.getDirectoryPath(l),m=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(l),p=R(n),f=p?e.hasTrailingDirectorySeparator(n)?n:e.getDirectoryPath(n):void 0,g=p?e.combinePaths(c,m+f):c,_=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(t,g)),v=p?y:e.ensureTrailingDirectorySeparator(y)+m,h=_?"**/*":"./*",b=e.mapDefined(L(i,y,a,void 0,[h]),function(n){var t=e.tryGetExtensionFromPath(n),r=T(n);return void 0===r?void 0:d(e.removeFileExtension(r),"script",t)}),E=e.mapDefined(S(i,y).map(function(n){return e.combinePaths(y,n)}),function(e){var n=T(e);return void 0===n?void 0:u(n)});return o(b,E);function T(n){var t,r,a,i=(t=e.normalizePath(n),r=v,a=_,e.startsWith(t,r)&&e.endsWith(t,a)?t.slice(r.length,t.length-a.length):void 0);return void 0===i?void 0:function(n){return n[0]===e.directorySeparator?n.slice(1):n}(i)}}(c,a,n,i,s)});function m(n){return e.startsWith(n,r)?[u(n)]:e.emptyArray}}function h(n,t,r,a,i,o){void 0===o&&(o=[]);for(var s=e.createMap(),l=0,c=D(function(){return e.getEffectiveTypeRoots(t,n)})||e.emptyArray;l<c.length;l++){f(c[l])}for(var u=0,m=b(r,n);u<m.length;u++){var p=m[u];f(e.combinePaths(e.getDirectoryPath(p),"node_modules/@types"))}return o;function f(r){if(x(n,r))for(var l=0,c=S(n,r);l<c.length;l++){var u=c[l],m=e.unmangleScopedPackageName(u);if(!t.types||e.contains(t.types,m))if(void 0===a)s.has(m)||(o.push(d(m,"external module name",void 0)),s.set(m,!0));else{var p=e.combinePaths(r,u),f=e.tryRemoveDirectoryPrefix(a,m,e.hostGetCanonicalFileName(n));void 0!==f&&g(f,p,i,n,void 0,o)}}}}function b(n,t){var r=[];return e.forEachAncestorDirectory(n,function(n){var a=e.findConfigFile(n,function(e){return A(t,e)},"package.json");if(!a)return!0;r.push(a)}),r}t.getStringLiteralCompletions=function(t,a,i,o,l,c,d,u){if(e.isInReferenceComment(t,a)){var p=function(n,t,r,a){var i=e.getTokenAtPosition(n,t),o=e.getLeadingCommentRanges(n.text,i.pos),s=o&&e.find(o,function(e){return t>=e.pos&&t<=e.end});if(s){var l=n.text.slice(s.pos,t),c=E.exec(l);if(c){var d=c[1],u=c[2],p=c[3],_=e.getDirectoryPath(n.path),v="path"===u?g(p,_,f(r,!0),a,n.path):"types"===u?h(a,r,_,y(p),f(r)):e.Debug.fail();return m(p,s.pos+d.length,v)}}}(t,a,l,c);return p&&r(p)}if(e.isInString(t,a,i))return i&&e.isStringLiteralLike(i)?function(t,a,i,o,s){if(void 0!==t)switch(t.kind){case 0:return r(t.paths);case 1:var l=[];return n.getCompletionEntriesFromSymbols(t.symbols,l,a,a,i,99,o,4,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,entries:l};case 2:var l=t.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,entries:l};default:return e.Debug.assertNever(t)}}(s(t,i,a,o,l,c),t,o,d,u):void 0},t.getStringLiteralCompletionDetails=function(t,r,i,o,l,c,d,u){if(o&&e.isStringLiteralLike(o)){var m=s(r,o,i,l,c,d);return m&&function(t,r,i,o,s,l){switch(i.kind){case 0:var c=e.find(i.paths,function(e){return e.name===t});return c&&n.createCompletionDetails(t,a(c.extension),c.kind,[e.textPart(t)]);case 1:var c=e.find(i.symbols,function(e){return e.name===t});return c&&n.createCompletionDetailsForSymbol(c,s,o,r,l);case 2:return e.find(i.types,function(e){return e.value===t})?n.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}(t,o,m,r,l,u)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(i||(i={}));var E=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,T=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function S(e,n){return C(e,e.getDirectories,n)||[]}function L(n,t,r,a,i){return C(n,n.readDirectory,t,r,a,i)||e.emptyArray}function A(e,n){return C(e,e.fileExists,n)}function x(n,t){return D(function(){return e.directoryProbablyExists(t,n)})||!1}function C(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return D(function(){return n&&n.apply(e,t)})}function D(e){try{return e()}catch(e){return}}function R(n){return e.stringContains(n,e.directorySeparator)}}(n.StringCompletions||(n.StringCompletions={}))}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(n){var t,r,a,i;function o(e){return 2===e.kind||3===e.kind}function s(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function l(n,t){return e.isSourceFileJS(n)&&!e.isCheckJsEnabledForFile(n,t)}!function(e){e.LocationPriority="0",e.SuggestedClassMembers="1",e.GlobalsOrKeywords="2",e.AutoImportSuggestions="3",e.JavascriptIdentifiers="4"}(t=n.SortText||(n.SortText={})),function(e){e[e.ThisType=0]="ThisType",e[e.SymbolMemberNoExport=1]="SymbolMemberNoExport",e[e.SymbolMemberExport=2]="SymbolMemberExport",e[e.Export=3]="Export"}(r||(r={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.Last=7]="Last"}(a||(a={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(i||(i={})),n.getCompletionsAtPosition=function(r,a,i,o,c,d,m){var p=a.getTypeChecker(),f=a.getCompilerOptions(),_=e.findPrecedingToken(c,o);if(!m||e.isInString(o,c,_)||function(n,t,r,a){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&e.isStringLiteralOrTemplate(r)&&a===r.getStart(n)+1;case"<":return!!r&&28===r.kind&&(!e.isBinaryExpression(r.parent)||N(r.parent));case"/":return!!r&&(e.isStringLiteralLike(r)?!!e.tryGetImportFromModuleSpecifier(r):42===r.kind&&e.isJsxClosingElement(r.parent));default:return e.Debug.assertNever(t)}}(o,m,_,c)){var y=n.StringCompletions.getStringLiteralCompletions(o,c,_,p,f,r,i,d);if(y)return y;if(_&&e.isBreakOrContinueStatement(_.parent)&&(74===_.kind||79===_.kind||73===_.kind))return function(n){var r=function(n){for(var r=[],a=e.createMap(),i=n;i&&!e.isFunctionLike(i);){if(e.isLabeledStatement(i)){var o=i.label.text;a.has(o)||(a.set(o,!0),r.push({name:o,kindModifiers:"",kind:"label",sortText:t.LocationPriority}))}i=i.parent}return r}(n);if(r.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:r}}(_.parent);var v=T(a,i,o,l(o,f),c,d,void 0);if(v)switch(v.kind){case 0:return function(n,r,a,i,o,s){var c=o.symbols,d=o.completionKind,m=o.isInSnippetScope,p=o.isNewIdentifierLocation,f=o.location,_=o.propertyAccessToConvert,y=o.keywordFilters,v=o.literals,h=o.symbolToOriginInfoMap,b=o.recommendedCompletion,E=o.isJsxInitializer,T=o.insideJsDocTagTypeExpression,S=o.symbolToSortTextMap;if(f&&f.parent&&e.isJsxClosingElement(f.parent)){var A=f.parent.parent.openingElement.tagName,C=!!e.findChildOfKind(f.parent,30,n),D={name:A.getFullText(n)+(C?"":">"),kind:"class",kindModifiers:void 0,sortText:t.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[D]}}var R=[];if(l(n,a)){var M=g(c,R,f,n,r,a.target,i,d,s,_,E,b,h,S);!function(n,r,a,i,o){e.getNameTable(n).forEach(function(n,s){if(n!==r){var l=e.unescapeLeadingUnderscores(s);e.addToSeen(a,l)&&e.isIdentifierText(l,i)&&o.push({name:l,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers})}})}(n,f.pos,M,a.target,R)}else{if(!(p||c&&0!==c.length||0!==y))return;g(c,R,f,n,r,a.target,i,d,s,_,E,b,h,S)}if(0!==y)for(var I=e.arrayToSet(R,function(e){return e.name}),O=0,k=function(n,t){if(!t)return x(n);var r=n+7+1;return L[r]||(L[r]=x(n).filter(function(n){return!function(e){switch(e){case 119:case 121:case 147:case 124:case 126:case 85:case 146:case 110:case 128:case 111:case 129:case 130:case 131:case 132:case 133:case 136:case 137:case 114:case 115:case 116:case 134:case 139:case 140:case 141:case 143:case 144:return!0;default:return!1}}(e.stringToToken(n.name))}))}(y,!T&&e.isSourceFileJS(n));O<k.length;O++){var N=k[O];I.has(N.name)||R.push(N)}for(var w=0,P=v;w<P.length;w++){var G=P[w];R.push(u(G))}return{isGlobalCompletion:m,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(d),isNewIdentifierLocation:p,entries:R}}(o,p,f,i,v,d);case 1:return s(e.JsDoc.getJSDocTagNameCompletions());case 2:return s(e.JsDoc.getJSDocTagCompletions());case 3:return s(e.JsDoc.getJSDocParameterNameCompletions(v.tag));default:return e.Debug.assertNever(v)}}};var c,d=function(n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":JSON.stringify(n)};function u(e){return{name:d(e),kind:"string",kindModifiers:"",sortText:t.LocationPriority}}function m(n,t,r,a,i,s,l,c,d,u,m,g){var _,y;if(c&&0===c.kind)_=l?"this["+e.quote(s,g)+"]":"this."+s;else if((c&&function(e){return 2===e.kind||1===e.kind}(c)||l)&&u){_=l?"["+e.quote(s,g)+"]":"["+s+"]";var v=e.findChildOfKind(u,24,a),h=e.startsWith(s,u.name.text)?u.name.end:v.end;y=e.createTextSpanFromBounds(v.getStart(a),h)}if(m&&(void 0===_&&(_=s),_="{"+_+"}","boolean"!=typeof m&&(y=e.createTextSpanFromNode(m,a))),void 0===_||g.includeCompletionsWithInsertText)return{name:s,kind:e.SymbolDisplay.getSymbolKind(i,n,r),kindModifiers:e.SymbolDisplay.getSymbolModifiers(n),sortText:t,source:f(c),hasAction:p(!!c&&o(c)),isRecommended:p(function(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}(n,d,i)),insertText:_,replacementSpan:y}}function p(e){return!!e||void 0}function f(n){return n&&o(n)?e.stripQuotes(n.moduleSymbol.name):void 0}function g(n,r,a,i,o,s,l,c,d,u,p,f,g,_){for(var y=e.timestamp(),v=e.createMap(),h=0,b=n;h<b.length;h++){var E=b[h],T=g?g[e.getSymbolId(E)]:void 0,L=S(E,s,T,c);if(L){var A=L.name,x=L.needsConvertPropertyAccess;if(!v.has(A)){var C=m(E,_&&_[e.getSymbolId(E)]||t.LocationPriority,a,i,o,A,x,T,f,u,p,d);C&&(T||void 0===E.parent&&!e.some(E.declarations,function(e){return e.getSourceFile()===a.getSourceFile()})||v.set(A,!0),r.push(C))}}}return l("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-y)),v}function _(n,t,r,a,i){var o=n.getCompilerOptions(),s=T(n,t,r,l(r,o),a,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i);if(!s)return{type:"none"};if(0!==s.kind)return{type:"request",request:s};var c=s.symbols,u=s.literals,m=s.location,p=s.completionKind,g=s.symbolToOriginInfoMap,_=s.previousToken,y=s.isJsxInitializer,v=e.find(u,function(e){return d(e)===i.name});return void 0!==v?{type:"literal",literal:v}:e.firstDefined(c,function(n){var t=g[e.getSymbolId(n)],r=S(n,o.target,t,p);return r&&r.name===i.name&&f(t)===i.source?{type:"symbol",symbol:n,location:m,symbolToOriginInfoMap:g,previousToken:_,isJsxInitializer:y}:void 0})||{type:"none"}}function y(n,t,r){return t&&o(t)&&(t.isDefaultExport&&"default"===n.escapedName||"export="===n.escapedName)?e.firstDefined(n.declarations,function(n){return e.isExportAssignment(n)&&e.isIdentifier(n.expression)?n.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(t.moduleSymbol,r):n.name}function v(n,t,r){return b(n,"",t,[e.displayPart(n,r)])}function h(n,t,r,a,i,o,s){var l=t.runWithCancellationToken(i,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,n,r,a,a,7)}),c=l.displayParts,d=l.documentation,u=l.symbolKind,m=l.tags;return b(n.name,e.SymbolDisplay.getSymbolModifiers(n),u,c,d,m,o,s)}function b(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 E(n,t,r){var a=r.getAccessibleSymbolChain(n,t,67108863,!1);return a?e.first(a):n.parent&&(function(e){return e.declarations.some(function(e){return 285===e.kind})}(n.parent)?n:E(n.parent,t,r))}function T(n,r,a,i,o,s,l){var c=n.getTypeChecker(),d=e.timestamp(),u=e.getTokenAtPosition(a,o);r("getCompletionData: Get current token: "+(e.timestamp()-d)),d=e.timestamp();var m=e.isInComment(a,o,u);r("getCompletionData: Is inside comment: "+(e.timestamp()-d));var p=!1,f=!1;if(m){if(e.hasDocComment(a,o)){if(64===a.text.charCodeAt(o-1))return{kind:1};var g=e.getLineStartPositionForPosition(o,a);if(!a.text.substring(g,o).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var _=function(n,t){var r=e.findAncestor(n,e.isJSDoc);return r&&r.tags&&(e.rangeContainsPosition(r,t)?e.findLast(r.tags,function(e){return e.pos<t}):void 0)}(u,o);if(_){if(_.tagName.pos<=o&&o<=_.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 307:case 313:case 308:case 310:case 312:return!0;default:return!1}}(_)&&_.typeExpression&&289===_.typeExpression.kind&&((u=e.getTokenAtPosition(a,o))&&(e.isDeclarationName(u)||313===u.parent.kind&&u.parent.name===u)||(p=ae(_.typeExpression))),e.isJSDocParameterTag(_)&&(e.nodeIsMissing(_.name)||_.name.pos<=o&&o<=_.name.end))return{kind:3,tag:_}}if(!p)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=e.timestamp();var v=e.findPrecedingToken(o,a,void 0);r("getCompletionData: Get previous token 1: "+(e.timestamp()-d));var h=v;if(h&&o<=h.end&&(e.isIdentifier(h)||e.isKeyword(h.kind))){var b=e.timestamp();h=e.findPrecedingToken(h.getFullStart(),a,void 0),r("getCompletionData: Get previous token 2: "+(e.timestamp()-b))}var T,S=u,L=!1,A=!1,x=!1,R=!1,w=e.getTouchingPropertyName(a,o);if(h){if(function(n){var t=e.timestamp(),a=function(n){return(e.isRegularExpressionLiteral(n)||e.isStringTextContainingNode(n))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(n)),o)||o===n.end&&(!!n.isUnterminated||e.isRegularExpressionLiteral(n)))}(n)||function(n){var t=n.parent,r=t.kind;switch(n.kind){case 27:return 238===r||239===r||220===r||244===r||re(r)||242===r||186===r||243===r||e.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=n.pos;case 24:return 186===r;case 57:return 187===r;case 22:return 186===r;case 20:return 275===r||re(r);case 18:return 244===r;case 28:return 241===r||210===r||242===r||243===r||e.isFunctionLikeKind(r);case 117:return 155===r&&!e.isClassLike(t.parent);case 25:return 152===r||!!t.parent&&186===t.parent.kind;case 116:case 114:case 115:return 152===r&&!e.isConstructorDeclaration(t.parent);case 120:return 254===r||258===r||252===r;case 127:case 138:return!k(n);case 77:case 85:case 111:case 91:case 106:case 93:case 112:case 78:case 118:case 141:return!0;case 40:return e.isFunctionLike(n.parent)&&!e.isMethodDeclaration(n.parent)}if(D(M(n))&&k(n))return!1;if(te(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(M(n))||ae(n)))return!1;switch(M(n)){case 119:case 77:case 78:case 126:case 85:case 91:case 111:case 112:case 114:case 115:case 116:case 117:case 106:case 118:return!0;case 122:return e.isPropertyDeclaration(n.parent)}return e.isDeclarationName(n)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==v||o>v.end))}(n)||function(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(n)||function(e){if(11===e.kind)return!0;if(30===e.kind&&e.parent){if(263===e.parent.kind)return!0;if(264===e.parent.kind||262===e.parent.kind)return!!e.parent.parent&&261===e.parent.parent.kind}return!1}(n);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-t)),a}(h))return void r("Returning an empty list because completion was requested in an invalid position.");var P=h.parent;if(24===h.kind)switch(L=!0,P.kind){case 190:if((S=(T=P).expression).end===h.pos&&e.isCallExpression(S)&&S.getChildCount(a)&&21!==e.last(S.getChildren(a)).kind)return;break;case 149:S=P.left;break;case 245:S=P.name;break;case 184:case 215:S=P;break;default:return}else if(1===a.languageVariant){if(P&&190===P.kind&&(h=P,P=P.parent),u.parent===w)switch(u.kind){case 30:261!==u.parent.kind&&263!==u.parent.kind||(w=u);break;case 42:262===u.parent.kind&&(w=u)}switch(P.kind){case 264:42===h.kind&&(x=!0,w=h);break;case 205:if(!N(P))break;case 262:case 261:case 263:28===h.kind&&(A=!0,w=h);break;case 268:switch(v.kind){case 60:R=!0;break;case 73:P!==v.parent&&!P.initializer&&e.findChildOfKind(P,60,a)&&(R=v)}}}}var G=e.timestamp(),F=5,V=!1,B=0,U=[],H=[],K=[];if(L)!function(){F=2;var n=e.isLiteralImportTypeNode(S),t=p||n&&!S.isTypeOf||e.isPartOfTypeNode(S.parent)||e.isPossiblyTypeArgumentPosition(h,a,c),r=e.isInRightSideOfInternalImportEqualsDeclaration(S);if(e.isEntityName(S)||n){var i=e.isModuleDeclaration(S.parent);i&&(V=!0);var o=c.getSymbolAtLocation(S);if(o&&1920&(o=e.skipAlias(o,c)).flags){for(var s=e.Debug.assertEachDefined(c.getExportsOfModule(o),"getExportsOfModule() should all be defined"),l=function(e){return c.isValidPropertyAccess(n?S:S.parent,e.name)},d=function(e){return ee(e)},u=i?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===S.parent})}:r?function(e){return d(e)||l(e)}:t?d:l,m=0,f=s;m<f.length;m++){var g=f[m];u(g)&&U.push(g)}return void(!t&&o.declarations&&o.declarations.some(function(e){return 285!==e.kind&&245!==e.kind&&244!==e.kind})&&Y(c.getTypeOfSymbolAtLocation(o,S)))}}if(e.isMetaProperty(S)&&(96===S.keywordToken||93===S.keywordToken)){var _=96===S.keywordToken?"target":"meta";return void U.push(c.createSymbol(4,e.escapeLeadingUnderscores(_)))}t||Y(c.getTypeAtLocation(S))}();else if(A){var j=e.Debug.assertEachDefined(c.getJsxIntrinsicTagNamesAt(w),"getJsxIntrinsicTagNames() should all be defined");Z(),U=j.concat(U),F=3,B=0}else if(x){var W=h.parent.parent.openingElement.tagName,q=c.getSymbolAtLocation(W);q&&(U=[q]),F=3,B=0}else if(!Z())return;r("getCompletionData: Semantic work: "+(e.timestamp()-G));var z=v&&function(n,t,r,a){var i=n.parent;switch(n.kind){case 73:return e.getContextualTypeFromParent(n,a);case 60:switch(i.kind){case 238:return a.getContextualType(i.initializer);case 205:return a.getTypeAtLocation(i.left);case 268:return a.getContextualTypeForJsxAttribute(i);default:return}case 96:return a.getContextualType(i);case 75:return e.getSwitchedType(e.cast(i,e.isCaseClause),a);case 18:return e.isJsxExpression(i)&&261!==i.parent.kind?a.getContextualTypeForJsxAttribute(i.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(n,t,r);return o?a.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===n.kind?1:0)):e.isEqualityOperatorKind(n.kind)&&e.isBinaryExpression(i)&&e.isEqualityOperatorKind(i.operatorToken.kind)?a.getTypeAtLocation(i.left):a.getContextualType(n)}}(v,o,a,c),X=e.mapDefined(z&&(z.isUnion()?z.types:[z]),function(e){return e.isLiteral()?e.value:void 0}),J=v&&z&&function(n,t,r){return e.firstDefined(t&&(t.isUnion()?t.types:[t]),function(t){var a=t&&t.symbol;return a&&424&a.flags&&!e.isAbstractConstructorSymbol(a)?E(a,n,r):void 0})}(v,z,c);return{kind:0,symbols:U,completionKind:F,isInSnippetScope:f,propertyAccessToConvert:T,isNewIdentifierLocation:V,location:w,keywordFilters:B,literals:X,symbolToOriginInfoMap:H,recommendedCompletion:J,previousToken:v,isJsxInitializer:R,insideJsDocTagTypeExpression:p,symbolToSortTextMap:K};function Y(e){if(V=!!e.getStringIndexType(),i)U.push.apply(U,O(e,c));else for(var n=0,t=e.getApparentProperties();n<t.length;n++){var r=t[n];c.isValidPropertyAccessForCompletions(184===S.kind?S:S.parent,e,r)&&Q(r)}}function Q(n){var t=e.firstDefined(n.declarations,function(n){return e.tryCast(e.getNameOfDeclaration(n),e.isComputedPropertyName)});if(t){var r=function n(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?n(t.expression):void 0}(t.expression),a=r&&c.getSymbolAtLocation(r),i=a&&E(a,h,c);if(i&&!H[e.getSymbolId(i)]){U.push(i);var o=i.parent;H[e.getSymbolId(i)]=o&&e.isExternalModuleSymbol(o)?{kind:2,moduleSymbol:o,isDefaultExport:!1}:{kind:1}}else s.includeCompletionsWithInsertText&&U.push(n)}else U.push(n)}function Z(){var r,i;return 1===(function(){var n,t,r=function(n){if(n){var t=n.parent;switch(n.kind){case 18:case 27:if(e.isObjectLiteralExpression(t)||e.isObjectBindingPattern(t))return t;break;case 40:return e.isMethodDeclaration(t)?e.tryCast(t.parent,e.isObjectLiteralExpression):void 0;case 73:return"async"===n.text&&e.isShorthandPropertyAssignment(n.parent)?n.parent.parent:void 0}}return}(h);if(!r)return 0;if(F=0,189===r.kind){var a=c.getContextualType(r);if(!a)return 2;V=e.hasIndexSignature(a),n=I(a,r,c),t=r.properties}else{e.Debug.assert(185===r.kind),V=!1;var i=e.getRootDeclaration(r.parent);if(!e.isVariableLike(i))return e.Debug.fail("Root declaration is not variable-like.");var o=e.hasInitializer(i)||e.hasType(i)||228===i.parent.parent.kind;if(o||152!==i.kind||(e.isExpression(i.parent)?o=!!c.getContextualType(i.parent):157!==i.parent.kind&&160!==i.parent.kind||(o=e.isExpression(i.parent.parent)&&!!c.getContextualType(i.parent.parent))),o){var a=c.getTypeAtLocation(r);if(!a)return 2;n=c.getPropertiesOfType(a).filter(function(n){return!(24&e.getDeclarationModifierFlagsFromSymbol(n))}),t=r.elements}}n&&n.length>0&&(U=function(n,t){if(0===t.length)return n;for(var r=e.createUnderscoreEscapedMap(),a=0,i=t;a<i.length;a++){var o=i[a];if((276===o.kind||277===o.kind||187===o.kind||157===o.kind||159===o.kind||160===o.kind)&&!ae(o)){var s=void 0;if(e.isBindingElement(o)&&o.propertyName)73===o.propertyName.kind&&(s=o.propertyName.escapedText);else{var l=e.getNameOfDeclaration(o);s=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}r.set(s,!0)}}return n.filter(function(e){return!r.get(e.escapedName)})}(n,e.Debug.assertDefined(t)));return 1}()||function(){var n=!h||18!==h.kind&&27!==h.kind?void 0:e.tryCast(h.parent,e.isNamedImportsOrExports);if(!n)return 0;var t=(253===n.kind?n.parent.parent:n.parent).moduleSpecifier,r=c.getSymbolAtLocation(t);if(!r)return 2;F=3,V=!1;var a=c.getExportsAndPropertiesOfModule(r),i=e.arrayToSet(n.elements,function(e){return ae(e)?void 0:(e.propertyName||e.name).escapedText});return U=a.filter(function(e){return"default"!==e.escapedName&&!i.get(e.escapedName)}),1}()||(function(n){if(n){var t=n.parent;switch(n.kind){case 20:case 27:return e.isConstructorDeclaration(n.parent)?n.parent:void 0;default:if(te(n))return t.parent}}}(h)?(F=5,V=!0,B=4,1):0)||function(){var n=function(n,t,r,a){switch(r.kind){case 314:return e.tryCast(r.parent,e.isObjectTypeDeclaration);case 1:var i=e.tryCast(e.lastOrUndefined(e.cast(r.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(i&&!e.findChildOfKind(i,19,n))return i;break;case 73:if(k(r))return e.findAncestor(r,e.isObjectTypeDeclaration)}if(!t)return;switch(t.kind){case 26:case 19:return k(r)&&r.parent.name===r?r.parent.parent:e.tryCast(r,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(t.parent,e.isObjectTypeDeclaration);default:if(!k(t))return e.getLineAndCharacterOfPosition(n,t.getEnd()).line!==e.getLineAndCharacterOfPosition(n,a).line&&e.isObjectTypeDeclaration(r)?r:void 0;var o=e.isClassLike(t.parent.parent)?D:C;return o(t.kind)||40===t.kind||e.isIdentifier(t)&&o(e.stringToToken(t.text))?t.parent.parent:void 0}}(a,h,w,o);if(!n)return 0;if(F=3,V=!0,B=40===h.kind?0:e.isClassLike(n)?2:3,!e.isClassLike(n))return 1;var t=26===h.kind?h.parent.parent:h.parent,r=e.isClassElement(t)?e.getModifierFlags(t):0;if(73===h.kind&&!ae(h))switch(h.getText()){case"private":r|=8;break;case"static":r|=32}if(!(8&r)){var i=e.flatMap(e.getAllSuperTypeNodes(n),function(e){var t=c.getTypeAtLocation(e);return t&&c.getPropertiesOfType(32&r?c.getTypeOfSymbolAtLocation(t.symbol,n):t)});U=function(n,t,r){for(var a=e.createUnderscoreEscapedMap(),i=0,o=t;i<o.length;i++){var s=o[i];if((155===s.kind||157===s.kind||159===s.kind||160===s.kind)&&(!ae(s)&&!e.hasModifier(s,8)&&e.hasModifier(s,32)===!!(32&r))){var l=e.getPropertyNameForPropertyNameNode(s.name);l&&a.set(l,!0)}}return n.filter(function(n){return!(a.has(n.escapedName)||!n.declarations||8&e.getDeclarationModifierFlagsFromSymbol(n))})}(i,n.members,r)}return 1}()||(r=function(n){if(n){var t=n.parent;switch(n.kind){case 30:case 29:case 42:case 73:case 190:case 269:case 268:case 270:if(t&&(262===t.kind||263===t.kind)){if(30===n.kind){var r=e.findPrecedingToken(n.pos,a,void 0);if(!t.typeArguments||r&&42===r.kind)break}return t}if(268===t.kind)return t.parent.parent;break;case 10:if(t&&(268===t.kind||270===t.kind))return t.parent.parent;break;case 19:if(t&&271===t.kind&&t.parent&&268===t.parent.kind)return t.parent.parent.parent;if(t&&270===t.kind)return t.parent.parent}}return}(h),(i=r&&c.getContextualType(r.attributes))?(U=function(n,t){for(var r=e.createUnderscoreEscapedMap(),a=0,i=t;a<i.length;a++){var o=i[a];ae(o)||268===o.kind&&r.set(o.name.escapedText,!0)}return n.filter(function(e){return!r.get(e.escapedName)})}(I(i,r.attributes,c),r.attributes.properties),F=3,V=!1,1):0)||(function(){B=function(n){if(n){var t,r=e.findAncestor(n.parent,function(n){return e.isClassLike(n)?"quit":!(!e.isFunctionLikeDeclaration(n)||t!==n.body)||(t=n,!1)});return r&&r}}(h)?5:1,F=1,V=function(e){if(e){var n=e.parent.kind;switch(M(e)){case 27:return 192===n||158===n||193===n||188===n||205===n||166===n;case 20:return 192===n||158===n||193===n||196===n||178===n;case 22:return 188===n||163===n||150===n;case 131:case 132:return!0;case 24:return 245===n;case 18:return 241===n;case 60:return 238===n||205===n;case 15:return 207===n;case 16:return 217===n;case 116:case 114:case 115:return 155===n}}return!1}(h),v!==h&&e.Debug.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");var r=v!==h?v.getStart():o,i=function(n,t,r){var a=n;for(;a&&!e.positionBelongsToNode(a,t,r);)a=a.parent;return a}(h,r,a)||a;f=function(n){switch(n.kind){case 285:case 207:case 271:case 219:return!0;default:return e.isStatement(n)}}(i);for(var d=2887656|($()?0:111551),u=0,m=U=e.Debug.assertEachDefined(c.getSymbolsInScope(i,d),"getSymbolsInScope() should all be defined");u<m.length;u++){var p=m[u];c.isArgumentsSymbol(p)||e.some(p.declarations,function(e){return e.getSourceFile()===a})||(K[e.getSymbolId(p)]=t.GlobalsOrKeywords)}if(s.includeCompletionsWithInsertText&&285!==i.kind){var g=c.tryGetThisTypeAt(i,!1);if(g)for(var _=0,b=O(g,c);_<b.length;_++){var p=b[_];H[e.getSymbolId(p)]={kind:0},U.push(p),K[e.getSymbolId(p)]=t.SuggestedClassMembers}}s.includeCompletionsForModuleExports&&(a.externalModuleIndicator||!a.commonJsModuleIndicator&&(e.compilerOptionsIndicateEs6Modules(n.getCompilerOptions())||e.programContainsEs6Modules(n)))&&function(r,i,o){var s=i.toLowerCase(),d=e.createMap();e.codefix.forEachExternalModuleToImportFrom(c,a,n.getSourceFiles(),function(n){if(!l||!l.source||e.stripQuotes(n.name)===l.source){var a=c.resolveExternalModuleSymbol(n);if(e.addToSeen(d,e.getSymbolId(a))){a!==n&&e.every(a.declarations,function(e){return!!e.getSourceFile().externalModuleIndicator})&&(r.push(a),K[e.getSymbolId(a)]=t.AutoImportSuggestions,H[e.getSymbolId(a)]={kind:3,moduleSymbol:n,isDefaultExport:!1});for(var i=0,u=c.getExportsOfModule(n);i<u.length;i++){var m=u[i];if(c.getMergedSymbol(m.parent)===a&&!e.some(m.declarations,function(n){return e.isExportSpecifier(n)&&(n.propertyName?e.isIdentifierANonContextualKeyword(n.name):!!n.parent.parent.moduleSpecifier)})){var p="default"===m.escapedName;p&&(m=e.getLocalSymbolForExportDefault(m)||m);var f={kind:3,moduleSymbol:n,isDefaultExport:p};(l||ne(y(m,f,o).toLowerCase(),s))&&(r.push(m),K[e.getSymbolId(m)]=t.AutoImportSuggestions,H[e.getSymbolId(m)]=f)}}}}})}(U,v&&e.isIdentifier(v)?v.text:"",n.getCompilerOptions().target);!function(n){var t=$();t&&(B=e.isAssertionExpression(h.parent)?6:7);e.filterMutate(n,function(n){if(!e.isSourceFile(w)){if(e.isExportAssignment(w.parent))return!0;if(n=e.skipAlias(n,c),e.isInRightSideOfInternalImportEqualsDeclaration(w))return!!(1920&n.flags);if(t)return ee(n)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(n))})}(U)}(),1))}function $(){return p||!function(n){return n&&105===n.kind&&(168===n.parent.kind||e.isTypeOfExpression(n.parent))}(h)&&(e.isPossiblyTypeArgumentPosition(h,a,c)||e.isPartOfTypeNode(w)||function(n){if(n){var t=n.parent.kind;switch(n.kind){case 57:return 155===t||154===t||152===t||238===t||e.isFunctionLikeKind(t);case 60:return 243===t;case 120:return 213===t;case 28:return 165===t||195===t;case 87:return 151===t}}return!1}(h))}function ee(n,t){void 0===t&&(t=e.createMap());var r=e.skipAlias(n.exportSymbol||n,c);return!!(788968&r.flags)||!!(1536&r.flags)&&e.addToSeen(t,e.getSymbolId(r))&&c.getExportsOfModule(r).some(function(e){return ee(e,t)})}function ne(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 te(n){return!!n.parent&&e.isParameter(n.parent)&&e.isConstructorDeclaration(n.parent.parent)&&(e.isParameterPropertyModifier(n.kind)||e.isDeclarationName(n))}function re(n){return e.isFunctionLikeKind(n)&&158!==n}function ae(e){return e.getStart(a)<=o&&o<=e.getEnd()}}function S(n,t,r,a){var i=y(n,r,t);if(!(void 0===i||1536&n.flags&&e.startsWithQuote(i)||e.isKnownSymbol(n))){var o={name:i,needsConvertPropertyAccess:!1};if(e.isIdentifierText(i,t))return o;switch(a){case 3:return;case 0:return{name:JSON.stringify(i),needsConvertPropertyAccess:!1};case 2:case 1:return 32===i.charCodeAt(0)?void 0:{name:i,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:e.Debug.assertNever(a)}}}n.getCompletionEntriesFromSymbols=g,n.getCompletionEntryDetails=function(t,r,a,i,s,l,c,u,m){var p=t.getTypeChecker(),f=t.getCompilerOptions(),g=s.name,b=e.findPrecedingToken(i,a);if(e.isInString(a,i,b))return n.StringCompletions.getStringLiteralCompletionDetails(g,a,i,b,p,f,l,m);var E=_(t,r,a,i,s);switch(E.type){case"request":var T=E.request;switch(T.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(g);case 2:return e.JsDoc.getJSDocTagCompletionDetails(g);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(g);default:return e.Debug.assertNever(T)}case"symbol":var S=E.symbol,L=E.location,x=function(n,t,r,a,i,s,l,c,d,u,m){var p=n[e.getSymbolId(t)];if(!p||!o(p))return{codeActions:void 0,sourceDisplay:void 0};var f=p.moduleSymbol,g=a.getMergedSymbol(e.skipAlias(t.exportSymbol||t,a)),_=e.codefix.getImportCompletionAction(g,f,l,y(t,p,s.target),i,r,u,d&&e.isIdentifier(d)?d.getStart(l):c,m),v=_.moduleSpecifier,h=_.codeAction;return{sourceDisplay:[e.textPart(v)],codeActions:[h]}}(E.symbolToOriginInfoMap,S,t,p,l,f,a,i,E.previousToken,c,u);return h(S,p,a,L,m,x.codeActions,x.sourceDisplay);case"literal":var C=E.literal;return v(d(C),"string","string"==typeof C?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return A().some(function(e){return e.name===g})?v(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(E)}},n.createCompletionDetailsForSymbol=h,n.createCompletionDetails=b,n.getCompletionEntrySymbol=function(e,n,t,r,a){var i=_(e,n,t,r,a);return"symbol"===i.type?i.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(c||(c={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(n.CompletionKind||(n.CompletionKind={}));var L=[],A=e.memoize(function(){for(var n=[],r=74;r<=148;r++)n.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:t.GlobalsOrKeywords});return n});function x(n){return L[n]||(L[n]=A().filter(function(t){var r=e.stringToToken(t.name);switch(n){case 0:return!1;case 1:return R(r)||126===r||131===r||e.isTypeKeyword(r)&&142!==r;case 5:return R(r);case 2:return D(r);case 3:return C(r);case 4:return e.isParameterPropertyModifier(r);case 6:return e.isTypeKeyword(r)||78===r;case 7:return e.isTypeKeyword(r);default:return e.Debug.assertNever(n)}}))}function C(e){return 134===e}function D(n){switch(n){case 119:case 125:case 127:case 138:case 122:return!0;default:return e.isClassMemberModifier(n)}}function R(n){return 122===n||123===n||!e.isContextualKeyword(n)&&!D(n)}function M(n){return e.isIdentifier(n)?n.originalKeywordKind||0:n.kind}function I(n,t,r){return n.isUnion()?r.getAllPossiblePropertiesOfTypes(n.types.filter(function(n){return!(131068&n.flags||r.isArrayLikeType(n)||e.typeHasCallOrConstructSignatures(n,r)||r.isTypeInvalidDueToUnionDiscriminant(n,t))})):n.getApparentProperties()}function O(n,t){return n.isUnion()?e.Debug.assertEachDefined(t.getAllPossiblePropertiesOfTypes(n.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.assertEachDefined(n.getApparentProperties(),"getApparentProperties() should all be defined")}function k(n){return n.parent&&e.isClassOrTypeElement(n.parent)&&e.isObjectTypeDeclaration(n.parent.parent)}function N(n){var t=n.left;return e.nodeIsMissing(t)}}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(n){function t(n,t){return{fileName:t.fileName,textSpan:e.createTextSpanFromNode(n,t),kind:"none"}}function r(n){return e.isThrowStatement(n)?[n]:e.isTryStatement(n)?e.concatenate(n.catchClause?r(n.catchClause):n.tryBlock&&r(n.tryBlock),n.finallyBlock&&r(n.finallyBlock)):e.isFunctionLike(n)?void 0:i(n,r)}function a(n){return e.isBreakOrContinueStatement(n)?[n]:e.isFunctionLike(n)?void 0:i(n,a)}function i(n,t){var r=[];return n.forEachChild(function(n){var a=t(n);void 0!==a&&r.push.apply(r,e.toArray(a))}),r}function s(e,n){var t=l(n);return!!t&&t===e}function l(n){return e.findAncestor(n,function(t){switch(t.kind){case 233:if(229===n.kind)return!1;case 226:case 227:case 228:case 225:case 224:return!n.label||function(n,t){return!!e.findAncestor(n.parent,function(n){return e.isLabeledStatement(n)?n.label.escapedText===t:"quit"})}(t,n.label.escapedText);default:return e.isFunctionLike(t)&&"quit"}})}function c(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return!(!t||!e.contains(r,t.kind))&&(n.push(t),!0)}function d(n){var t=[];if(c(t,n.getFirstToken(),90,108,83)&&224===n.kind)for(var r=n.getChildren(),i=r.length-1;i>=0&&!c(t,r[i],108);i--);return e.forEach(a(n.statement),function(e){s(n,e)&&c(t,e.getFirstToken(),74,79)}),t}function u(e){var n=l(e);if(n)switch(n.kind){case 226:case 227:case 228:case 224:case 225:return d(n);case 233:return m(n)}}function m(n){var t=[];return c(t,n.getFirstToken(),100),e.forEach(n.caseBlock.clauses,function(r){c(t,r.getFirstToken(),75,81),e.forEach(a(r),function(e){s(n,e)&&c(t,e.getFirstToken(),74)})}),t}function p(n,t){var r=[];(c(r,n.getFirstToken(),104),n.catchClause&&c(r,n.catchClause.getFirstToken(),76),n.finallyBlock)&&c(r,e.findChildOfKind(n,89,t),89);return r}function f(n,t){var a=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||285===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(n);if(a){var i=[];return e.forEach(r(a),function(n){i.push(e.findChildOfKind(n,102,t))}),e.isFunctionBlock(a)&&e.forEachReturnStatement(a,function(n){i.push(e.findChildOfKind(n,98,t))}),i}}function g(n,t){var a=e.getContainingFunction(n);if(a){var i=[];return e.forEachReturnStatement(e.cast(a.body,e.isBlock),function(n){i.push(e.findChildOfKind(n,98,t))}),e.forEach(r(a.body),function(n){i.push(e.findChildOfKind(n,102,t))}),i}}function _(n){var t=e.getContainingFunction(n);if(t){var r=[];return t.modifiers&&t.modifiers.forEach(function(e){c(r,e,122)}),e.forEachChild(t,function(n){y(n,function(n){e.isAwaitExpression(n)&&c(r,n.getFirstToken(),123)})}),r}}function y(n,t){t(n),e.isFunctionLike(n)||e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isModuleDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isTypeNode(n)||e.forEachChild(n,function(e){return y(e,t)})}n.getDocumentHighlights=function(n,r,a,i,s){var l=e.getTouchingPropertyName(a,i);if(l.parent&&(e.isJsxOpeningElement(l.parent)&&l.parent.tagName===l||e.isJsxClosingElement(l.parent))){var v=l.parent.parent,h=[v.openingElement,v.closingElement].map(function(e){return t(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:h}]}return function(n,t,r,a,i){var o=e.arrayToSet(i,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(n,t,r,i,a,void 0,o);if(s){var l=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(l.entries(),function(n){var t=n[0],a=n[1];if(!o.has(t)){e.Debug.assert(r.redirectTargetsMap.has(t));var s=r.getSourceFile(t),l=e.find(i,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});t=l.fileName,e.Debug.assert(o.has(t))}return{fileName:t,highlightSpans:a}})}}(i,l,n,r,s)||function(n,r){var a=function(n,r){switch(n.kind){case 92:case 84:return e.isIfStatement(n.parent)?function(n,r){for(var a=function(n,t){for(var r=[];e.isIfStatement(n.parent)&&n.parent.elseStatement===n;)n=n.parent;for(;;){var a=n.getChildren(t);c(r,a[0],92);for(var i=a.length-1;i>=0&&!c(r,a[i],84);i--);if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}(n,r),i=[],o=0;o<a.length;o++){if(84===a[o].kind&&o<a.length-1){for(var s=a[o],l=a[o+1],d=!0,u=l.getStart(r)-1;u>=s.end;u--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(u))){d=!1;break}if(d){i.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),l.end),kind:"reference"}),o++;continue}}i.push(t(a[o],r))}return i}(n.parent,r):void 0;case 98:return v(n.parent,e.isReturnStatement,g);case 102:return v(n.parent,e.isThrowStatement,f);case 104:case 76:case 89:var a=76===n.kind?n.parent.parent:n.parent;return v(a,e.isTryStatement,p);case 100:return v(n.parent,e.isSwitchStatement,m);case 75:case 81:return v(n.parent.parent.parent,e.isSwitchStatement,m);case 74:case 79:return v(n.parent,e.isBreakOrContinueStatement,u);case 90:case 108:case 83:return v(n.parent,function(n){return e.isIterationStatement(n,!0)},d);case 125:return l(e.isConstructorDeclaration,[125]);case 127:case 138:return l(e.isAccessor,[127,138]);case 123:return v(n.parent,e.isAwaitExpression,_);case 122:return h(_(n));case 118:return h(function(n){var t=e.getContainingFunction(n);if(t){var r=[];return e.forEachChild(t,function(n){y(n,function(n){e.isYieldExpression(n)&&c(r,n.getFirstToken(),118)})}),r}}(n));default:return e.isModifierKind(n.kind)&&(e.isDeclaration(n.parent)||e.isVariableStatement(n.parent))?h((i=n.kind,s=n.parent,e.mapDefined(function(n,t){var r=n.parent;switch(r.kind){case 246:case 285:case 219:case 272:case 273:return 128&t&&e.isClassDeclaration(n)?o(n.members,[n]):r.statements;case 158:case 157:case 240:return o(r.parameters,e.isClassLike(r.parent)?r.parent.members:[]);case 241:case 210:case 242:case 169:var a=r.members;if(92&t){var i=e.find(r.members,e.isConstructorDeclaration);if(i)return o(a,i.parameters)}else if(128&t)return o(a,[r]);return a;default:e.Debug.assertNever(r,"Invalid container kind.")}}(s,e.modifierToFlag(i)),function(n){return e.findModifier(n,i)}))):void 0}var i,s;function l(t,a){return v(n.parent,t,function(n){return e.mapDefined(n.symbol.declarations,function(n){return t(n)?e.find(n.getChildren(r),function(n){return e.contains(a,n.kind)}):void 0})})}function v(e,n,t){return n(e)?h(t(e,r)):void 0}function h(e){return e&&e.map(function(e){return t(e,r)})}}(n,r);return a&&[{fileName:r.fileName,highlightSpans:a}]}(l,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(u||(u={})),function(e){function n(n,r,a){void 0===r&&(r="");var i=e.createMap(),o=e.createGetCanonicalFileName(!!n);function s(e,n,t,r,a,i,o){return c(e,n,t,r,a,i,!0,o)}function l(e,n,t,r,a,i,o){return c(e,n,t,r,a,i,!1,o)}function c(n,t,r,o,s,l,c,d){var u=e.getOrUpdate(i,o,e.createMap),m=u.get(t),p=6===d?100:r.target||1;!m&&a&&((f=a.getDocument(o,t))&&(e.Debug.assert(c),m={sourceFile:f,languageServiceRefCount:0},u.set(t,m)));if(m)m.sourceFile.version!==l&&(m.sourceFile=e.updateLanguageServiceSourceFile(m.sourceFile,s,l,s.getChangeRange(m.sourceFile.scriptSnapshot)),a&&a.setDocument(o,t,m.sourceFile)),c&&m.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(n,s,p,l,!1,d);a&&a.setDocument(o,t,f),m={sourceFile:f,languageServiceRefCount:1},u.set(t,m)}return e.Debug.assert(0!==m.languageServiceRefCount),m.sourceFile}function d(n,t){var r=e.Debug.assertDefined(i.get(t)),a=r.get(n);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(n)}return{acquireDocument:function(n,a,i,l,c){return s(n,e.toPath(n,r,o),a,t(a),i,l,c)},acquireDocumentWithKey:s,updateDocument:function(n,a,i,s,c){return l(n,e.toPath(n,r,o),a,t(a),i,s,c)},updateDocumentWithKey:l,releaseDocument:function(n,a){return d(e.toPath(n,r,o),t(a))},releaseDocumentWithKey:d,getLanguageServiceRefCounts:function(n){return e.arrayFrom(i.entries(),function(e){var t=e[0],r=e[1].get(n);return[t,r&&r.languageServiceRefCount]})},reportStats:function(){var n=e.arrayFrom(i.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var n=[];return i.get(e).forEach(function(e,t){n.push({name:t,refCount:e.languageServiceRefCount})}),n.sort(function(e,n){return n.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(n,void 0,2)},getKeyForCompilationSettings:t}}function t(n){return e.sourceFileAffectingCompilerOptions.map(function(t){return e.getCompilerOptionValue(n,t)}).join("|")}e.createDocumentRegistry=function(e,t){return n(e,t)},e.createDocumentRegistryInternal=n}(u||(u={})),function(e){!function(n){function t(n,t){return e.forEach(285===n.kind?n.statements:n.body.statements,function(n){return t(n)||l(n)&&e.forEach(n.body&&n.body.statements,t)})}function r(n,r){if(n.externalModuleIndicator||void 0!==n.imports)for(var a=0,i=n.imports;a<i.length;a++){var o=i[a];r(e.importFromModuleSpecifier(o),o)}else t(n,function(n){switch(n.kind){case 256:case 250:(t=n).moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier)&&r(t,t.moduleSpecifier);break;case 249:var t;c(t=n)&&r(t,t.moduleReference.expression)}})}function a(n,t,r){var a=n.parent;if(a){var i=r.getMergedSymbol(a);return e.isExternalModuleSymbol(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}}function i(e,n){return n.getMergedSymbol(o(e).symbol)}function o(n){if(192===n.kind)return n.getSourceFile();var t=n.parent;return 285===t.kind?t:(e.Debug.assert(246===t.kind),e.cast(t.parent,l))}function l(e){return 245===e.kind&&10===e.name.kind}function c(e){return 260===e.moduleReference.kind&&10===e.moduleReference.expression.kind}n.createImportTracker=function(n,a,l,d){var u=function(n,t,a){for(var i=e.createMap(),o=0,s=n;o<s.length;o++){var l=s[o];a&&a.throwIfCancellationRequested(),r(l,function(n,r){var a=t.getSymbolAtLocation(r);if(a){var o=e.getSymbolId(a).toString(),s=i.get(o);s||i.set(o,s=[]),s.push(n)}})}return i}(n,l,d);return function(r,m,p){var f=function(n,r,a,s,l,c){var d=s.exportingModuleSymbol,u=s.exportKind,m=e.nodeSeenTracker(),p=e.nodeSeenTracker(),f=[],g=!!d.globalExports,_=g?void 0:[];return function n(t){var r=h(t);if(r)for(var a=0,s=r;a<s.length;a++){var d=s[a];if(m(d))switch(c&&c.throwIfCancellationRequested(),d.kind){case 192:if(!g){var p=d.parent;if(2===u&&238===p.kind){var _=p.name;if(73===_.kind){f.push(_);break}}v(d.getSourceFile())}break;case 73:break;case 249:y(d,d.name,e.hasModifier(d,1),!1);break;case 250:f.push(d);var b=d.importClause&&d.importClause.namedBindings;b&&252===b.kind?y(d,b.name,!1,!0):!g&&e.isDefaultImport(d)&&v(o(d));break;case 256:d.exportClause?f.push(d):n(i(d,l));break;case 184:f.push(d);break;default:e.Debug.failBadSyntaxKind(d,"Unexpected import kind.")}}}(d),{directImports:f,indirectUsers:function(){if(g)return n;for(var t=0,a=d.declarations;t<a.length;t++){var i=a[t];e.isExternalModuleAugmentation(i)&&r.has(i.getSourceFile().fileName)&&v(i)}return _.map(e.getSourceFileOfNode)}()};function y(n,r,a,i){if(2===u)i||f.push(n);else if(!g){var s=o(n);e.Debug.assert(285===s.kind||245===s.kind),a||function(n,r,a){var i=a.getSymbolAtLocation(r);return!!t(n,function(n){if(e.isExportDeclaration(n)){var t=n.exportClause,r=n.moduleSpecifier;return!r&&t&&t.elements.some(function(e){return a.getExportSpecifierLocalTargetSymbol(e)===i})}})}(s,r,l)?function n(t){if(v(t)){var r=l.getMergedSymbol(t.symbol);e.Debug.assert(!!(1536&r.flags));var a=h(r);if(a)for(var i=0,s=a;i<s.length;i++){var c=s[i];n(o(c))}}}(s):v(s)}}function v(n){e.Debug.assert(!g);var t=p(n);return t&&_.push(n),t}function h(n){return a.get(e.getSymbolId(n).toString())}}(n,a,u,m,l,d),g=f.directImports,_=f.indirectUsers;return s({indirectUsers:_},function(n,t,r,a,i){var o=[],s=[];function l(e,n){o.push([e,n])}if(n)for(var d=0,u=n;d<u.length;d++){var m=u[d];p(m)}return{importSearches:o,singleReferences:s};function p(n){if(249!==n.kind)if(73!==n.kind)if(184!==n.kind){if(10===n.moduleSpecifier.kind)if(256!==n.kind){var o=n.importClause||{name:void 0,namedBindings:void 0},d=o.name,u=o.namedBindings;if(u)switch(u.kind){case 252:f(u.name);break;case 253:0!==r&&1!==r||g(u);break;default:e.Debug.assertNever(u)}if(d&&(1===r||2===r)&&(!i||d.escapedText===e.symbolEscapedNameNoDefault(t))){var m=a.getSymbolAtLocation(d);l(d,m)}}else g(n.exportClause)}else n.qualifier?e.isIdentifier(n.qualifier)&&n.qualifier.escapedText===e.symbolName(t)&&s.push(n.qualifier):2===r&&s.push(n.argument.literal);else f(n);else c(n)&&f(n.name)}function f(e){2!==r||i&&!_(e.escapedText)||l(e,a.getSymbolAtLocation(e))}function g(e){if(e)for(var n=0,r=e.elements;n<r.length;n++){var o=r[n],c=o.name,d=o.propertyName;if(_((d||c).escapedText))if(d)s.push(d),i&&c.escapedText!==t.escapedName||l(c,a.getSymbolAtLocation(c));else{var u=258===o.kind&&o.propertyName?a.getExportSpecifierLocalTargetSymbol(o):a.getSymbolAtLocation(c);l(c,u)}}}function _(e){return e===t.escapedName||0!==r&&"default"===e}}(g,r,m.exportKind,l,p))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(n.ExportKind||(n.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(n.ImportExport||(n.ImportExport={})),n.findModuleReferences=function(e,n,t){for(var a=[],i=e.getTypeChecker(),o=0,s=n;o<s.length;o++){var l=s[o],c=t.valueDeclaration;if(285===c.kind){for(var d=0,u=l.referencedFiles;d<u.length;d++){var m=u[d];e.getSourceFileFromReference(l,m)===c&&a.push({kind:"reference",referencingFile:l,ref:m})}for(var p=0,f=l.typeReferenceDirectives;p<f.length;p++){m=f[p];var g=e.getResolvedTypeReferenceDirectives().get(m.fileName);void 0!==g&&g.resolvedFileName===c.fileName&&a.push({kind:"reference",referencingFile:l,ref:m})}}r(l,function(e,n){i.getSymbolAtLocation(n)===t&&a.push({kind:"import",literal:n})})}return a},n.getImportOrExportSymbol=function(n,t,r,i){return i?o():o()||function(){if(function(n){var t=n.parent;switch(t.kind){case 249:return t.name===n&&c(t);case 254:return!t.propertyName;case 251:case 252:return e.Debug.assert(t.name===n),!0;default:return!1}}(n)){var a=r.getImmediateAliasedSymbol(t);if(a){"export="===(a=function(n,t){if(n.declarations)for(var r=0,a=n.declarations;r<a.length;r++){var i=a[r];if(e.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(i)}return n}(a,r)).escapedName&&(a=function(n,t){if(2097152&n.flags)return e.Debug.assertDefined(t.getImmediateAliasedSymbol(n));var r=n.valueDeclaration;return e.isExportAssignment(r)?e.Debug.assertDefined(r.expression.symbol):e.isBinaryExpression(r)?e.Debug.assertDefined(r.right.symbol):e.isSourceFile(r)?e.Debug.assertDefined(r.symbol):e.Debug.fail()}(a,r));var i=e.symbolEscapedNameNoDefault(a);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:a}:void 0}}}();function o(){var a=n.parent,o=a.parent;if(t.exportSymbol)return 190===a.kind?t.declarations.some(function(e){return e===a})&&e.isBinaryExpression(o)?u(o,!1):void 0:s(t.exportSymbol,l(a));var c=function(n,t){var r=e.isVariableDeclaration(n)?n:e.isBindingElement(n)?e.walkUpBindingElementsAndPatterns(n):void 0;return r?n.name!==t?void 0:e.isCatchClause(r.parent)?void 0:e.isVariableStatement(r.parent.parent)?r.parent.parent:void 0:n}(a,n);if(c&&e.hasModifier(c,1)){if(e.isImportEqualsDeclaration(c)&&c.moduleReference===n){if(i)return;return{kind:0,symbol:r.getSymbolAtLocation(c.name)}}return s(t,l(c))}if(e.isExportAssignment(a))return d(a);if(e.isExportAssignment(o))return d(o);if(e.isBinaryExpression(a))return u(a,!0);if(e.isBinaryExpression(o))return u(o,!0);if(e.isJSDocTypedefTag(a))return s(t,0);function d(n){var r=e.Debug.assertDefined(n.symbol.parent,"Expected export symbol to have a parent"),a=n.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:r,exportKind:a}}}function u(n,a){var i;switch(e.getAssignmentDeclarationKind(n)){case 1:i=0;break;case 2:i=2;break;default:return}var o=a?r.getSymbolAtLocation(e.cast(n.left,e.isPropertyAccessExpression).name):t;return!o||1536&r.getMergedSymbol(o.parent).flags||e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.formatSymbol(o)+", parent is "+e.Debug.formatSymbol(o.parent)),o&&s(o,i)}}function s(e,n){var t=a(e,n,r);return t&&{kind:1,symbol:e,exportInfo:t}}function l(n){return e.hasModifier(n,512)?1:0}},n.getExportInfo=a}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){function t(n,t){return void 0===t&&(t=1),{kind:t,node:n.name||n,context:function(n){if(e.isDeclaration(n))return a(n);if(!n.parent)return;if(!e.isDeclaration(n.parent)&&!e.isExportAssignment(n.parent)){if(e.isInJSFile(n)){var t=e.isBinaryExpression(n.parent)?n.parent:e.isPropertyAccessExpression(n.parent)&&e.isBinaryExpression(n.parent.parent)&&n.parent.parent.left===n.parent?n.parent.parent:void 0;if(t&&0!==e.getAssignmentDeclarationKind(t))return a(t)}if(e.isJsxOpeningElement(n.parent)||e.isJsxClosingElement(n.parent))return n.parent.parent;if(e.isJsxSelfClosingElement(n.parent)||e.isLabeledStatement(n.parent)||e.isBreakOrContinueStatement(n.parent))return n.parent;if(e.isStringLiteralLike(n)){var r=e.tryGetImportFromModuleSpecifier(n);if(r){var i=e.findAncestor(r,function(n){return e.isDeclaration(n)||e.isStatement(n)||e.isJSDocTag(n)});return e.isDeclaration(i)?a(i):i}}var o=e.findAncestor(n,e.isComputedPropertyName);return o?a(o.parent):void 0}if(n.parent.name===n||e.isConstructorDeclaration(n.parent)||e.isExportAssignment(n.parent)||(e.isImportOrExportSpecifier(n.parent)||e.isBindingElement(n.parent))&&n.parent.propertyName===n||81===n.kind&&e.hasModifier(n.parent,513))return a(n.parent);return}(n)}}function r(e){return e&&void 0===e.kind}function a(n){if(n)switch(n.kind){case 238:return e.isVariableDeclarationList(n.parent)&&1===n.parent.declarations.length?e.isVariableStatement(n.parent.parent)?n.parent.parent:e.isForInOrOfStatement(n.parent.parent)?a(n.parent.parent):n.parent:n;case 187:return a(n.parent.parent);case 254:return n.parent.parent.parent;case 258:case 252:return n.parent.parent;case 251:return n.parent;case 205:return e.isExpressionStatement(n.parent)?n.parent:n;case 228:case 227:return{start:n.initializer,end:n.expression};case 276:case 277:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)?a(e.findAncestor(n.parent,function(n){return e.isBinaryExpression(n)||e.isForInOrOfStatement(n)})):n;default:return n}}function i(e,n,t){if(t){var a=r(t)?m(t.start,n,t.end):m(t,n);return a.start!==e.start||a.length!==e.length?{contextSpan:a}:void 0}}function o(t,r,a,i,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=e.arrayToSet(i,function(e){return e.fileName})),l(n.Core.getReferencedSymbolsForNode(t,r,a,i,o,s,c))}function l(n){return n&&e.flatMap(n,function(e){return e.references})}function c(t,r,a){var i=n.Core.getIntersectingMeaningFromDeclarations(a,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||a,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,o.getSourceFile(),o,o,i);return{displayParts:s.displayParts,kind:s.symbolKind}}function d(n){var t=u(n);if(0===n.kind)return s(s({},t),{isWriteAccess:!1,isDefinition:!1});var r=n.kind,a=n.node;return s(s({},t),{isWriteAccess:p(a),isDefinition:81===a.kind||!!e.getDeclarationFromName(a)||e.isLiteralComputedPropertyDeclarationName(a),isInString:2===r||void 0})}function u(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var n=e.node.getSourceFile(),t=m(e.node,n);return s({textSpan:t,fileName:n.fileName},i(t,n,e.context))}function m(n,t,r){var a=n.getStart(t),i=(r||n).getEnd();return 10===n.kind&&(e.Debug.assert(void 0===r),a+=1,i-=1),e.createTextSpanFromBounds(a,i)}function p(n){var t=e.getDeclarationFromName(n);return!!t&&function(n){if(4194304&n.flags)return!0;switch(n.kind){case 205:case 187:case 241:case 210:case 81:case 244:case 279:case 258:case 251:case 249:case 254:case 242:case 305:case 312:case 268:case 245:case 248:case 252:case 152:case 277:case 243:case 151:return!0;case 276:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent);case 240:case 197:case 158:case 157:case 159:case 160:return!!n.body;case 238:case 155:return!!n.initializer||e.isCatchClause(n.parent);case 156:case 154:case 313:case 307:return!1;default:return e.Debug.failBadSyntaxKind(n)}}(t)||81===n.kind||e.isWriteAccess(n)}!function(e){e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String"}(n.DefinitionKind||(n.DefinitionKind={})),function(e){e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(n.EntryKind||(n.EntryKind={})),n.nodeEntry=t,n.isContextWithStartAndEndNode=r,n.getContextNode=a,n.toContextSpan=i,n.findReferencedSymbols=function(t,r,o,l,u){var p=e.getTouchingPropertyName(l,u),f=n.Core.getReferencedSymbolsForNode(u,p,t,o,r),g=t.getTypeChecker();return f&&f.length?e.mapDefined(f,function(n){var t=n.definition,o=n.references;return t&&{definition:g.runWithCancellationToken(r,function(n){return function(n,t,r){var o=function(){switch(n.type){case 0:var i=n.symbol,o=c(i,t,r),s=o.displayParts,l=o.kind,d=s.map(function(e){return e.text}).join(""),u=i.declarations?e.first(i.declarations):void 0;return{node:u?e.getNameOfDeclaration(u)||u:r,name:d,kind:l,displayParts:s,context:a(u)};case 1:var m=n.node;return{node:m,name:m.text,kind:"label",displayParts:[e.displayPart(m.text,e.SymbolDisplayPartKind.text)]};case 2:var p=n.node,f=e.tokenToString(p.kind);return{node:p,name:f,kind:"keyword",displayParts:[{text:f,kind:"keyword"}]};case 3:var g=n.node,i=t.getSymbolAtLocation(g),_=i&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,i,g.getSourceFile(),e.getContainerNode(g),g).displayParts||[e.textPart("this")];return{node:g,name:"this",kind:"var",displayParts:_};case 4:var y=n.node;return{node:y,name:y.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(y),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(n)}}(),l=o.node,d=o.name,u=o.kind,p=o.displayParts,f=o.context,g=l.getSourceFile(),_=m(e.isComputedPropertyName(l)?l.expression:l,g);return s({containerKind:"",containerName:"",fileName:g.fileName,kind:u,name:d,textSpan:_,displayParts:p},i(_,g,f))}(t,n,p)}),references:o.map(d)}}):void 0},n.getImplementationsAtPosition=function(r,a,i,l,d){var m=function(r,a,i,s,l){if(285!==s.kind){var c=r.getTypeChecker();if(277===s.parent.kind){var d=[];return n.Core.getReferenceEntriesForShorthandPropertyAssignment(s,c,function(e){return d.push(t(e))}),d}if(99===s.kind||e.isSuperProperty(s.parent)){var u=c.getSymbolAtLocation(s);return u.valueDeclaration&&[t(u.valueDeclaration)]}return o(l,s,r,i,a,{implementations:!0})}}(r,a,i,e.getTouchingPropertyName(l,d),d),p=r.getTypeChecker();return e.map(m,function(n){return function(n,t){var r=u(n);if(0!==n.kind){var a=n.node;return s(s({},r),function(n,t){var r=t.getSymbolAtLocation(e.isDeclaration(n)&&n.name?n.name:n);return r?c(r,t,n):189===n.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:210===n.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(n),displayParts:[]}}(a,t))}return s(s({},r),{kind:"",displayParts:[]})}(n,p)})},n.findReferenceOrRenameEntries=function(t,r,a,i,o,s,c){return e.map(l(n.Core.getReferencedSymbolsForNode(o,i,t,a,r,s)),function(e){return c(e,i,t.getTypeChecker())})},n.getReferenceEntriesForNode=o,n.toRenameLocation=function(n,t,r,a){return s(s({},u(n)),a&&function(n,t,r){if(0!==n.kind&&e.isIdentifier(t)){var a=n.node,i=n.kind,o=t.text,s=e.isShorthandPropertyAssignment(a.parent);if(s||e.isObjectBindingElementWithoutPropertyName(a.parent)){var l={prefixText:o+": "},c={suffixText:": "+o};return 3===i?l:4===i?c:s?c:l}if(e.isImportSpecifier(n.node.parent)&&!n.node.parent.propertyName){var d=e.isExportSpecifier(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return e.contains(d.declarations,n.node.parent)?{prefixText:o+" as "}:e.emptyOptions}if(e.isExportSpecifier(n.node.parent)&&!n.node.parent.propertyName)return t===n.node?{prefixText:o+" as "}:{suffixText:" as "+o}}return e.emptyOptions}(n,t,r))},n.toReferenceEntry=d,n.toHighlightSpan=function(e){var n=u(e);if(0===e.kind)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};var t=p(e.node),r=s({textSpan:n.textSpan,kind:t?"writtenReference":"reference",isInString:2===e.kind||void 0},n.contextSpan&&{contextSpan:n.contextSpan});return{fileName:n.fileName,span:r}},n.getTextSpanOfEntry=function(e){return 0===e.kind?e.textSpan:m(e.node,e.node.getSourceFile())}}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){!function(t){function r(n,t,r){if(n.parent&&e.isNamespaceExportDeclaration(n.parent)){var a=r.getAliasedSymbol(t),i=r.getMergedSymbol(a);if(a!==i)return i}}function a(n,t,r,a,o,l){var d=1536&n.flags?e.find(n.declarations,e.isSourceFile):void 0;if(d){var u=n.exports.get("export="),m=s(t,n,!!u,r,l);if(!u||!l.has(d.fileName))return m;var p=t.getTypeChecker();return i(t,m,c(n=e.skipAlias(u,p),void 0,r,l,p,a,o))}}function i(t){for(var r,a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];for(var s=0,l=a;s<l.length;s++){var c=l[s];if(c&&c.length)if(r)for(var d=function(a){if(!a.definition||0!==a.definition.type)return r.push(a),"continue";var i=a.definition.symbol,s=e.findIndex(r,function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===i});if(-1===s)return r.push(a),"continue";var l=r[s];r[s]={definition:l.definition,references:l.references.concat(a.references).sort(function(r,a){var i=o(t,r),s=o(t,a);if(i!==s)return e.compareValues(i,s);var l=n.getTextSpanOfEntry(r),c=n.getTextSpanOfEntry(a);return l.start!==c.start?e.compareValues(l.start,c.start):e.compareValues(l.length,c.length)})}},u=0,m=c;u<m.length;u++){d(m[u])}else r=c}return r}function o(e,n){var t=0===n.kind?e.getSourceFile(n.fileName):n.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function s(t,r,a,i,o){e.Debug.assert(!!r.valueDeclaration);for(var s=e.mapDefined(n.findModuleReferences(t,i,r),function(t){if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var i=e.cast(r.parent,e.isImportTypeNode);if(a&&!i.qualifier)return}return n.nodeEntry(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}),l=0,c=r.declarations;l<c.length;l++){switch((p=c[l]).kind){case 285:break;case 245:o.has(p.getSourceFile().fileName)&&s.push(n.nodeEntry(p.name));break;default:e.Debug.assert(!!(33554432&r.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var d=r.exports.get("export=");if(d)for(var u=0,m=d.declarations;u<m.length;u++){var p,f=(p=m[u]).getSourceFile();if(o.has(f.fileName)){var g=e.isBinaryExpression(p)&&e.isPropertyAccessExpression(p.left)?p.left.expression:e.isExportAssignment(p)?e.Debug.assertDefined(e.findChildOfKind(p,86,f)):e.getNameOfDeclaration(p)||p;s.push(n.nodeEntry(g))}}return s.length?[{definition:{type:0,symbol:r},references:s}]:e.emptyArray}function l(n){return 134===n.kind&&e.isTypeOperatorNode(n.parent)&&134===n.parent.operator}function c(n,t,r,a,i,o,s){var l=t&&function(n,t,r,a){var i=t.parent;if(e.isExportSpecifier(i)&&a)return x(t,n,i,r);return e.firstDefined(n.declarations,function(a){if(!a.parent){if(33554432&n.flags)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(t.kind)+": "+e.Debug.formatSymbol(n))}return e.isTypeLiteralNode(a.parent)&&e.isUnionTypeNode(a.parent.parent)?r.getPropertyOfType(r.getTypeFromTypeNode(a.parent.parent),n.name):void 0})}(n,t,i,!N(s))||n,c=t?I(t,l):7,u=[],f=new m(r,a,t?function(n){switch(n.kind){case 125:return 1;case 73:if(e.isClassLike(n.parent))return e.Debug.assert(n.parent.name===n),2;default:return 0}}(t):0,i,o,c,s,u),g=N(s)?e.find(l.declarations,e.isExportSpecifier):void 0;if(g)A(g.name,l,g,f.createSearch(t,n,void 0),f,!0,!0);else if(t&&81===t.kind)C(t,l,f),p(t,l,{exportingModuleSymbol:e.Debug.assertDefined(l.parent,"Expected export symbol to have a parent"),exportKind:1},f);else{d(l,f,f.createSearch(t,l,void 0,{allSearchSymbols:t?function(e,n,t,r,a,i){var o=[];return M(e,n,t,r,!(r&&a),function(e,n,t){o.push(t||n||e)},function(){return!i}),o}(l,t,i,!!s.isForRename,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[l]}))}return u}function d(n,t,r){var a=function(n){var t=n.declarations,r=n.flags,a=n.parent,i=n.valueDeclaration;if(i&&(197===i.kind||210===i.kind))return i;if(!t)return;if(8196&r){var o=e.find(t,function(n){return e.hasModifier(n,8)});return o?e.getAncestor(o,241):void 0}if(t.some(e.isObjectBindingElementWithoutPropertyName))return;var s,l=a&&!(262144&n.flags);if(l&&(!e.isExternalModuleSymbol(a)||a.globalExports))return;for(var c=0,d=t;c<d.length;c++){var u=d[c],m=e.getContainerNode(u);if(s&&s!==m)return;if(!m||285===m.kind&&!e.isExternalOrCommonJsModule(m))return;s=m}return l?s.getSourceFile():s}(n);if(a)T(a,a.getSourceFile(),r,t,!(e.isSourceFile(a)&&!e.contains(t.sourceFiles,a)));else for(var i=0,o=t.sourceFiles;i<o.length;i++){var s=o[i];t.cancellationToken.throwIfCancellationRequested(),_(s,r,t)}}var u;t.getReferencedSymbolsForNode=function(t,o,d,u,m,p,f){if(void 0===p&&(p={}),void 0===f&&(f=e.arrayToSet(u,function(e){return e.fileName})),e.isSourceFile(o)){var g=e.GoToDefinition.getReferenceAtPosition(o,t,d),_=g&&d.getTypeChecker().getMergedSymbol(g.file.symbol);return _&&s(d,_,!1,u,f)}if(!p.implementations){var y=function(t,r,a){if(e.isTypeKeyword(t.kind)){if(134===t.kind&&!l(t))return;return function(t,r,a,i){var o=e.flatMap(t,function(t){return a.throwIfCancellationRequested(),e.mapDefined(v(t,e.tokenToString(r),t),function(e){if(e.kind===r&&(!i||i(e)))return n.nodeEntry(e)})});return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}(r,t.kind,a,134===t.kind?l:void 0)}if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&b(i.parent,i)}return e.isLabelOfLabeledStatement(t)?b(t.parent,t):e.isThis(t)?function(t,r,a){var i=e.getThisContainer(t,!1),o=32;switch(i.kind){case 157:case 156:if(e.isObjectLiteralMethod(i))break;case 155:case 154:case 158:case 159:case 160:o&=e.getModifierFlags(i),i=i.parent;break;case 285:if(e.isExternalModule(i)||R(t))return;case 240:case 197:break;default:return}var s=e.flatMap(285===i.kind?r:[i.getSourceFile()],function(n){return a.throwIfCancellationRequested(),v(n,"this",e.isSourceFile(i)?n:i).filter(function(n){if(!e.isThis(n))return!1;var t=e.getThisContainer(n,!1);switch(i.kind){case 197:case 240:return i.symbol===t.symbol;case 157:case 156:return e.isObjectLiteralMethod(i)&&i.symbol===t.symbol;case 210:case 241:return t.parent&&i.symbol===t.parent.symbol&&(32&e.getModifierFlags(t))===o;case 285:return 285===t.kind&&!e.isExternalModule(t)&&!R(n)}})}).map(function(e){return n.nodeEntry(e)});return[{definition:{type:3,node:e.firstDefined(s,function(n){return e.isParameter(n.node.parent)?n.node:void 0})||t},references:s}]}(t,r,a):99===t.kind?function(t){var r=e.getSuperContainer(t,!1);if(r){var a=32;switch(r.kind){case 155:case 154:case 157:case 156:case 158:case 159:case 160:a&=e.getModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),o=e.mapDefined(v(i,"super",r),function(t){if(99===t.kind){var i=e.getSuperContainer(t,!1);return i&&(32&e.getModifierFlags(i))===a&&i.parent.symbol===r.symbol?n.nodeEntry(t):void 0}});return[{definition:{type:0,symbol:r.symbol},references:o}]}}(t):void 0}(o,u,m);if(y)return y}var h=d.getTypeChecker(),E=h.getSymbolAtLocation(o);if(!E)return!p.implementations&&e.isStringLiteral(o)?function(t,r,a){var i=e.flatMap(r,function(r){return a.throwIfCancellationRequested(),e.mapDefined(v(r,t.text),function(r){return e.isStringLiteral(r)&&r.text===t.text?n.nodeEntry(r,2):void 0})});return[{definition:{type:4,node:t},references:i}]}(o,u,m):void 0;if("export="===E.escapedName)return s(d,E.parent,!1,u,f);var T=a(E,d,u,m,p,f);if(T&&!(33554432&E.flags))return T;var S=r(o,E,h),L=S&&a(S,d,u,m,p,f);return i(d,T,c(E,o,u,f,h,m,p),L)},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(u||(u={}));var m=function(){function t(n,t,r,a,i,o,s,l){this.sourceFiles=n,this.sourceFilesSet=t,this.specialSearchKind=r,this.checker=a,this.cancellationToken=i,this.searchMeaning=o,this.options=s,this.result=l,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return t.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},t.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=n.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,!!this.options.isForRename)},t.prototype.createSearch=function(n,t,r,a){void 0===a&&(a={});var i=a.text,o=void 0===i?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(t)||function(n){if(33555968&n.flags){var t=n.declarations&&e.find(n.declarations,function(n){return!e.isSourceFile(n)&&!e.isModuleDeclaration(n)});return t&&t.symbol}}(t)||t).escapedName)):i,s=a.allSearchSymbols,l=void 0===s?[t]:s;return{symbol:t,comingFrom:r,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&n?function(n,t,r){var a=e.isRightSideOfPropertyAccess(n)?n.parent:void 0,i=a&&r.getTypeAtLocation(a.expression),o=e.mapDefined(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0});return 0===o.length?void 0:o}(n,t,this.checker):void 0,allSearchSymbols:l,includes:function(n){return e.contains(l,n)}}},t.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),a=this.symbolIdToReferences[r];return a||(a=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:a})),function(e,t){return a.push(n.nodeEntry(e,t))}},t.prototype.addStringOrCommentReference=function(e,n){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:n}]})},t.prototype.markSearchedSymbols=function(n,t){for(var r=e.getNodeId(n),a=this.sourceFileToSeenSymbols[r]||(this.sourceFileToSeenSymbols[r]=e.createMap()),i=!1,o=0,s=t;o<s.length;o++){var l=s[o];i=e.addToSeen(a,e.getSymbolId(l))||i}return i},t}();function p(e,n,t,r){var a=r.getImportSearches(n,t),i=a.importSearches,o=a.singleReferences,s=a.indirectUsers;if(o.length)for(var l=r.referenceAdder(n),c=0,d=o;c<d.length;c++){var u=d[c];f(u,r)&&l(u)}for(var m=0,p=i;m<p.length;m++){var g=p[m],y=g[0],v=g[1];E(y.getSourceFile(),r.createSearch(y,v,1),r)}if(s.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,T=s;b<T.length;b++){_(T[b],h,r)}}}function f(n,t){return!!S(n,t)&&(!t.options.isForRename||!!e.isIdentifier(n)&&!(e.isImportOrExportSpecifier(n.parent)&&"default"===n.escapedText))}function g(e,n){for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t],i=a.getSourceFile();E(i,n.createSearch(a,e,0),n,n.includesSourceFile(i))}}function _(n,t,r){void 0!==e.getNameTable(n).get(t.escapedText)&&E(n,t,r)}function y(n,t,r,a){var i=e.isParameterPropertyDeclaration(n.parent)?e.first(t.getSymbolsOfParameterPropertyDeclaration(n.parent,n.text)):t.getSymbolAtLocation(n);if(i)for(var o=0,s=v(r,i.name);o<s.length;o++){var l=s[o];if(e.isIdentifier(l)&&l!==n&&l.escapedText===n.escapedText){var c=t.getSymbolAtLocation(l);if(c===i||t.getShorthandAssignmentValueSymbol(l.parent)===i||e.isExportSpecifier(l.parent)&&x(l,c,l.parent,t)===i){var d=a(l);if(d)return d}}}}function v(n,t,r){return void 0===r&&(r=n),h(n,t,r).map(function(t){return e.getTouchingPropertyName(n,t)})}function h(n,t,r){void 0===r&&(r=n);var a=[];if(!t||!t.length)return a;for(var i=n.text,o=i.length,s=t.length,l=i.indexOf(t,r.pos);l>=0&&!(l>r.end);){var c=l+s;0!==l&&e.isIdentifierPart(i.charCodeAt(l-1),99)||c!==o&&e.isIdentifierPart(i.charCodeAt(c),99)||a.push(l),l=i.indexOf(t,l+s+1)}return a}function b(t,r){var a=t.getSourceFile(),i=r.text,o=e.mapDefined(v(a,i,t),function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?n.nodeEntry(t):void 0});return[{definition:{type:1,node:r},references:o}]}function E(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),T(e,e,n,t,r)}function T(e,n,t,r,a){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var i=0,o=h(n,t.text,e);i<o.length;i++){L(n,o[i],t,r,a)}}function S(n,t){return!!(e.getMeaningFromLocation(n)&t.searchMeaning)}function L(t,r,a,i,o){var s=e.getTouchingPropertyName(t,r);if(function(n,t){switch(n.kind){case 73:return n.text.length===t.length;case 10:var r=n;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||e.isNameOfModuleDeclaration(n)||e.isExpressionOfExternalModuleImportEqualsDeclaration(n)||e.isCallExpression(n.parent)&&e.isBindableObjectDefinePropertyCall(n.parent)&&n.parent.arguments[1]===n)&&r.text.length===t.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)&&n.text.length===t.length;case 81:return"default".length===t.length;default:return!1}}(s,a.text)){if(S(s,i)){var l=i.checker.getSymbolAtLocation(s);if(l){var c=s.parent;if(!e.isImportSpecifier(c)||c.propertyName!==s){if(e.isExportSpecifier(c))return e.Debug.assert(73===s.kind),void A(s,l,c,a,i,o);var u=function(n,t,r,a){var i=a.checker;return M(t,r,i,!1,!a.options.isForRename||!!a.options.providePrefixAndSuffixTextForRename,function(t,r,a,i){return n.includes(a||r||t)?{symbol:!r||6&e.getCheckFlags(t)?t:r,kind:i}:void 0},function(t){return!(n.parents&&!n.parents.some(function(n){return function n(t,r,a,i){if(t===r)return!0;var o=e.getSymbolId(t)+","+e.getSymbolId(r);var s=a.get(o);if(void 0!==s)return s;a.set(o,!1);var l=t.declarations.some(function(t){return e.getAllSuperTypeNodes(t).some(function(e){var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&n(t.symbol,r,a,i)})});a.set(o,l);return l}(t.parent,n,a.inheritsFromCache,i)}))})}(a,l,s,i);if(u){switch(i.specialSearchKind){case 0:o&&C(s,u,i);break;case 1:!function(n,t,r,a){e.isNewExpressionTarget(n)&&C(n,r.symbol,a);var i=function(){return a.referenceAdder(r.symbol)};if(e.isClassLike(n.parent))e.Debug.assert(81===n.kind||n.parent.name===n),function(n,t,r){var a=D(n);if(a)for(var i=0,o=a.declarations;i<o.length;i++){var s=o[i],l=e.findChildOfKind(s,125,t);e.Debug.assert(158===s.kind&&!!l),r(l)}n.exports&&n.exports.forEach(function(n){var t=n.valueDeclaration;if(t&&157===t.kind){var a=t.body;a&&k(a,101,function(n){e.isNewExpressionTarget(n)&&r(n)})}})}(r.symbol,t,i());else{var o=(s=n,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(s).parent));o&&(function(n,t){var r=D(n.symbol);if(!r)return;for(var a=0,i=r.declarations;a<i.length;a++){var o=i[a];e.Debug.assert(158===o.kind);var s=o.body;s&&k(s,99,function(n){e.isCallExpressionTarget(n)&&t(n)})}}(o,i()),function(e,n){if(function(e){return!!D(e.symbol)}(e))return;var t=e.symbol,r=n.createSearch(void 0,t,void 0);d(t,n,r)}(o,a))}var s}(s,t,a,i);break;case 2:!function(n,t,r){C(n,t.symbol,r);var a=n.parent;if(r.options.isForRename||!e.isClassLike(a))return;e.Debug.assert(a.name===n);for(var i=r.referenceAdder(t.symbol),o=0,s=a.members;o<s.length;o++){var l=s[o];e.isMethodOrAccessor(l)&&e.hasModifier(l,32)&&(l.body&&l.body.forEachChild(function n(t){101===t.kind?i(t):e.isFunctionLike(t)||e.isClassLike(t)||t.forEachChild(n)}))}}(s,a,i);break;default:e.Debug.assertNever(i.specialSearchKind)}!function(e,t,r,a){var i=n.getImportOrExportSymbol(e,t,a.checker,1===r.comingFrom);if(!i)return;var o=i.symbol;0===i.kind?N(a.options)||g(o,a):p(e,o,i.exportInfo,a)}(s,l,a,i)}else!function(n,t,r){var a=n.flags,i=n.valueDeclaration,o=r.checker.getShorthandAssignmentValueSymbol(i),s=i&&e.getNameOfDeclaration(i);33554432&a||!s||!t.includes(o)||C(s,o,r)}(l,a,i)}}}}else!i.options.implementations&&(i.options.findInStrings&&e.isInString(t,r)||i.options.findInComments&&e.isInNonReferenceComment(t,r))&&i.addStringOrCommentReference(t.fileName,e.createTextSpan(r,a.text.length))}function A(t,r,a,i,o,s,l){e.Debug.assert(!l||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var c=a.parent,d=a.propertyName,u=a.name,m=c.parent,f=x(t,r,a,o.checker);if(l||i.includes(f)){if(d?t===d?(m.moduleSpecifier||b(),s&&!o.options.isForRename&&o.markSeenReExportRHS(u)&&C(u,e.Debug.assertDefined(a.symbol),o)):o.markSeenReExportRHS(t)&&b():o.options.isForRename&&"default"===u.escapedText||b(),!N(o.options)||l){var _=81===t.originalKeywordKind||81===a.name.originalKeywordKind?1:0,y=e.Debug.assertDefined(a.symbol),v=e.Debug.assertDefined(n.getExportInfo(y,_,o.checker));p(t,y,v,o)}if(1!==i.comingFrom&&m.moduleSpecifier&&!d&&!N(o.options)){var h=o.checker.getExportSpecifierLocalTargetSymbol(a);h&&g(h,o)}}function b(){s&&C(t,f,o)}}function x(n,t,r,a){return function(n,t){var r=t.parent,a=t.propertyName,i=t.name;return e.Debug.assert(a===n||i===n),a?a===n:!r.parent.moduleSpecifier}(n,r)&&a.getExportSpecifierLocalTargetSymbol(r)||t}function C(n,t,r){var a="kind"in t?t:{kind:void 0,symbol:t},i=a.kind,o=a.symbol,s=r.referenceAdder(o);r.options.implementations?function(n,t,r){if(e.isDeclarationName(n)&&(a=n.parent,4194304&a.flags?!e.isInterfaceDeclaration(a)&&!e.isTypeAliasDeclaration(a):e.isVariableLike(a)?e.hasInitializer(a):e.isFunctionLikeDeclaration(a)?a.body:e.isClassLike(a)||e.isModuleOrEnumDeclaration(a)))return void t(n);var a;if(73!==n.kind)return;277===n.parent.kind&&O(n,r.checker,t);var i=function n(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?n(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}(n);if(i)return void t(i);var o=e.findAncestor(n,function(n){return!e.isQualifiedName(n.parent)&&!e.isTypeNode(n.parent)&&!e.isTypeElement(n.parent)}),s=o.parent;if(e.hasType(s)&&s.type===o&&r.markSeenContainingTypeReference(s))if(e.hasInitializer(s))c(s.initializer);else if(e.isFunctionLike(s)&&s.body){var l=s.body;219===l.kind?e.forEachReturnStatement(l,function(e){e.expression&&c(e.expression)}):c(l)}else e.isAssertionExpression(s)&&c(s.expression);function c(e){(function e(n){switch(n.kind){case 196:return e(n.expression);case 198:case 197:case 189:case 210:case 188:return!0;default:return!1}})(e)&&t(e)}}(n,s,r):s(n,i)}function D(e){return e.members&&e.members.get("__constructor")}function R(e){return 73===e.kind&&152===e.parent.kind&&e.parent.name===e}function M(n,t,a,i,o,s,l){var c=e.getContainingObjectLiteralElement(t);if(c){var d=a.getShorthandAssignmentValueSymbol(t.parent);if(d&&i)return s(d,void 0,void 0,3);var u=a.getContextualType(c.parent),m=u&&e.firstDefined(e.getPropertySymbolsFromContextualType(c,a,u,!0),function(e){return E(e,4)});if(m)return m;var p=function(n,t){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(n):void 0}(t,a),f=p&&s(p,void 0,void 0,4);if(f)return f;var g=d&&s(d,void 0,void 0,3);if(g)return g}var _=r(t,n,a);if(_){var y=s(_,void 0,void 0,1);if(y)return y}var v=E(n);if(v)return v;if(n.valueDeclaration&&e.isParameterPropertyDeclaration(n.valueDeclaration)){var h=a.getSymbolsOfParameterPropertyDeclaration(e.cast(n.valueDeclaration,e.isParameter),n.name);return e.Debug.assert(2===h.length&&!!(1&h[0].flags)&&!!(4&h[1].flags)),E(1&n.flags?h[1]:h[0])}if(!i){var b=void 0;return(b=o?e.isObjectBindingElementWithoutPropertyName(t.parent)?e.getPropertySymbolFromBindingElement(a,t.parent):void 0:T(n,a))&&E(b,4)}if(e.Debug.assert(i),o)return(b=T(n,a))&&E(b,4);function E(n,t){return e.firstDefined(a.getRootSymbols(n),function(r){return s(n,r,void 0,t)||(r.parent&&96&r.parent.flags&&l(r)?e.getPropertySymbolsFromBaseTypes(r.parent,r.name,a,function(e){return s(n,r,e,t)}):void 0)})}function T(n,t){var r=e.getDeclarationOfKind(n,187);if(r&&e.isObjectBindingElementWithoutPropertyName(r))return e.getPropertySymbolFromBindingElement(t,r)}}function I(n,t){var r=e.getMeaningFromLocation(n),a=t.declarations;if(a){var i=void 0;do{i=r;for(var o=0,s=a;o<s.length;o++){var l=s[o],c=e.getMeaningFromDeclaration(l);c&r&&(r|=c)}}while(r!==i)}return r}function O(n,t,r){var a=t.getSymbolAtLocation(n),i=t.getShorthandAssignmentValueSymbol(a.valueDeclaration);if(i)for(var o=0,s=i.getDeclarations();o<s.length;o++){var l=s[o];1&e.getMeaningFromDeclaration(l)&&r(l)}}function k(n,t,r){e.forEachChild(n,function(e){e.kind===t&&r(e),k(e,t,r)})}function N(e){return e.isForRename&&e.providePrefixAndSuffixTextForRename}t.eachExportReference=function(t,r,a,i,o,s,l,c){for(var d=n.createImportTracker(t,e.arrayToSet(t,function(e){return e.fileName}),r,a)(i,{exportKind:l?1:0,exportingModuleSymbol:o},!1),u=d.importSearches,m=d.indirectUsers,p=0,f=u;p<f.length;p++)c(f[p][0]);for(var g=0,_=m;g<_.length;g++)for(var y=0,h=v(_[g],l?"default":s);y<h.length;y++){var b=h[y];e.isIdentifier(b)&&!e.isImportOrExportSpecifier(b.parent)&&r.getSymbolAtLocation(b)===i&&c(b)}},t.isSymbolReferencedInFile=function(e,n,t){return y(e,n,t,function(){return!0})||!1},t.eachSymbolReferenceInFile=y,t.eachSignatureCall=function(n,t,r,a){if(n.name&&e.isIdentifier(n.name))for(var i=e.Debug.assertDefined(r.getSymbolAtLocation(n.name)),o=0,s=t;o<s.length;o++)for(var l=0,c=v(s[o],i.name);l<c.length;l++){var d=c[l];if(e.isIdentifier(d)&&d!==n.name&&d.escapedText===n.name.escapedText){var u=e.climbPastPropertyAccess(d),m=u.parent;if(e.isCallExpression(m)&&m.expression===u){var p=r.getSymbolAtLocation(d);p&&r.getRootSymbols(p).some(function(e){return e===i})&&a(m)}}}},t.getIntersectingMeaningFromDeclarations=I,t.getReferenceEntriesForShorthandPropertyAssignment=O}(n.Core||(n.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){function n(n,r,a,i){var o=a(n);return function(n){var s=i&&i.tryGetSourcePosition({fileName:n,pos:0}),l=function(n){if(a(n)===o)return r;var t=e.tryRemoveDirectoryPrefix(n,o,a);return void 0===t?void 0:r+"/"+t}(s?s.fileName:n);return s?void 0===l?void 0:function(n,r,a,i){var o=e.getRelativePathFromFile(n,r,i);return t(e.getDirectoryPath(a),o)}(s.fileName,l,n,a):l}}function t(n,t){return e.ensurePathIsNonModuleName(function(n,t){return e.normalizePath(e.combinePaths(n,t))}(n,t))}function r(n,t){if(n){if(n.resolvedModule){var r=i(n.resolvedModule.resolvedFileName);if(r)return r}var a=e.forEach(n.failedLookupLocations,function(n){return e.endsWith(n,"/package.json")?void 0:i(n)});return a||n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1}}function i(e){var n=t(e);return n&&{newFileName:n,updated:!0}}}function a(n,t){return e.createRange(n.getStart(t)+1,n.end-1)}function i(n,t){if(e.isObjectLiteralExpression(n))for(var r=0,a=n.properties;r<a.length;r++){var i=a[r];e.isPropertyAssignment(i)&&e.isStringLiteral(i.name)&&t(i,i.name.text)}}e.getEditsForFileRename=function(o,s,l,c,d,u,m){var p=e.hostUsesCaseSensitiveFileNames(c),f=e.createGetCanonicalFileName(p),g=n(s,l,f,m),_=n(l,s,f,m);return e.textChanges.ChangeTracker.with({host:c,formatContext:d},function(n){!function(n,r,o,s,l,c,d){var u=n.getCompilerOptions().configFile;if(u){var m=e.getDirectoryPath(u.fileName),p=e.getTsConfigObjectLiteralExpression(u);p&&i(p,function(n,t){switch(t){case"files":case"include":case"exclude":var a=f(n);if(!a&&"include"===t&&e.isArrayLiteralExpression(n.initializer)){var o=e.mapDefined(n.initializer.elements,function(n){return e.isStringLiteral(n)?n.text:void 0}),p=e.getFileMatcherPatterns(m,[],o,d,c);e.getRegexFromPattern(e.Debug.assertDefined(p.includeFilePattern),d).test(s)&&!e.getRegexFromPattern(e.Debug.assertDefined(p.includeFilePattern),d).test(l)&&r.insertNodeAfter(u,e.last(n.initializer.elements),e.createStringLiteral(_(l)))}break;case"compilerOptions":i(n.initializer,function(n,t){var r=e.getOptionFromName(t);r&&(r.isFilePath||"list"===r.type&&r.element.isFilePath)?f(n):"paths"===t&&i(n.initializer,function(n){if(e.isArrayLiteralExpression(n.initializer))for(var t=0,r=n.initializer.elements;t<r.length;t++){var a=r[t];g(a)}})})}})}function f(n){for(var t=e.isArrayLiteralExpression(n.initializer)?n.initializer.elements:[n.initializer],r=!1,a=0,i=t;a<i.length;a++){var o=i[a];r=g(o)||r}return r}function g(n){if(!e.isStringLiteral(n))return!1;var i=t(m,n.text),s=o(i);return void 0!==s&&(r.replaceRangeWithText(u,a(n,u),_(s)),!0)}function _(n){return e.getRelativePathFromDirectory(m,n,!d)}}(o,n,g,s,l,c.getCurrentDirectory(),p),function(n,i,o,s,l,c){for(var d=n.getSourceFiles(),u=function(u){var m=o(u.path),p=void 0!==m?m:u.path,f=e.getDirectoryPath(p),g=s(u.fileName),_=g||u.fileName,y=e.getDirectoryPath(_),v=void 0!==m||void 0!==g;!function(n,t,r,i){for(var o=0,s=n.referencedFiles||e.emptyArray;o<s.length;o++){var l=s[o],c=r(l.fileName);void 0!==c&&c!==n.text.slice(l.pos,l.end)&&t.replaceRangeWithText(n,l,c)}for(var d=0,u=n.imports;d<u.length;d++){var m=u[d],c=i(m);void 0!==c&&c!==m.text&&t.replaceRangeWithText(n,a(m,n),c)}}(u,i,function(n){if(e.pathIsRelative(n)){var r=t(y,n),a=o(r);return void 0===a?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,a,c))}},function(t){var a=n.getTypeChecker().getSymbolAtLocation(t);if(!a||!a.declarations.some(function(n){return e.isAmbientModule(n)})){var i=void 0!==g?r(e.resolveModuleName(t.text,_,n.getCompilerOptions(),l),o):function(n,t,a,i,o,s){if(n){var l=e.find(n.declarations,e.isSourceFile).fileName,c=s(l);return void 0===c?{newFileName:l,updated:!1}:{newFileName:c,updated:!0}}var d=o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,a.fileName):i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,a.fileName);return r(d,s)}(a,t,u,n,l,o);return void 0!==i&&(i.updated||v&&e.pathIsRelative(t.text))?e.moduleSpecifiers.updateModuleSpecifier(n.getCompilerOptions(),p,i.newFileName,l,d,n.redirectTargetsMap,t.text):void 0}})},m=0,p=d;m<p.length;m++){var f=p[m];u(f)}}(o,n,g,_,c,f)})},e.getPathUpdater=n}(u||(u={})),function(e){!function(n){function t(n,t,a){var s,u,m=r(t,a,n);if(m)return[(s=m.fileName,u=m.file.fileName,{fileName:u,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:s,containerName:void 0,containerKind:void 0})];var p=e.getTouchingPropertyName(t,a);if(p!==t){var f=p.parent;if(e.isJumpStatementTarget(p)){var g=e.getTargetLabel(p.parent,p.text);return g?[c(g,"label",p.text,void 0)]:void 0}var _=n.getTypeChecker(),y=function(e,n){var t=n.getSymbolAtLocation(e);if(t&&2097152&t.flags&&function(e,n){if(73!==e.kind)return!1;if(e.parent===n)return!0;switch(n.kind){case 251:case 249:return!0;case 254:return 253===n.parent.kind;default:return!1}}(e,t.declarations[0])){var r=n.getAliasedSymbol(t);if(r.declarations)return r}return t}(p,_);if(!y)return function(n,t){if(!e.isPropertyAccessExpression(n.parent)||n.parent.name!==n)return;var r=t.getTypeAtLocation(n.parent.expression);return e.mapDefined(r.isUnionOrIntersection()?r.types:[r],function(e){var n=t.getIndexInfoOfType(e,0);return n&&n.declaration&&d(t,n.declaration)})}(p,_);var v=function(n,t){var r=function(n){var t=function n(t){return e.isRightSideOfPropertyAccess(t)?n(t.parent):t}(n),r=t.parent;return r&&e.isCallLikeExpression(r)&&e.getInvokedExpression(r)===t?r:void 0}(t),a=r&&n.getResolvedSignature(r);return e.tryCast(a&&a.declaration,function(n){return e.isFunctionLike(n)&&!e.isFunctionTypeNode(n)})}(_,p);if(v&&(!e.isJsxOpeningLikeElement(p.parent)||!function(e){switch(e.kind){case 158:case 167:case 162:return!0;default:return!1}}(v))){var h=d(_,v);if(_.getRootSymbols(y).some(function(n){return function(n,t){return n===t.symbol||n===t.symbol.parent||!e.isCallLikeExpression(t.parent)&&n===t.parent.symbol}(n,v)})||y.declarations&&y.declarations.some(function(n){return e.isVariableDeclaration(n)&&!!n.initializer&&e.isRequireCall(n.initializer,!1)}))return[h];var b=i(_,y,p)||e.emptyArray;return 99===p.kind?o([h],b):o(b,[h])}if(277===p.parent.kind){var E=_.getShorthandAssignmentValueSymbol(y.valueDeclaration);return E?E.declarations.map(function(e){return l(e,_,E,p)}):[]}if(e.isPropertyName(p)&&e.isBindingElement(f)&&e.isObjectBindingPattern(f.parent)&&p===(f.propertyName||f.name)){var T=e.getNameFromPropertyName(p),S=_.getTypeAtLocation(f.parent);return void 0===T?e.emptyArray:e.flatMap(S.isUnion()?S.types:[S],function(e){var n=e.getProperty(T);return n&&i(_,n,p)})}var L=e.getContainingObjectLiteralElement(p);if(L){var A=L&&_.getContextualType(L.parent);if(A)return e.flatMap(e.getPropertySymbolsFromContextualType(L,_,A,!1),function(e){return i(_,e,p)})}return i(_,y,p)}}function r(e,n,t){var r=u(e.referencedFiles,n);if(r)return(o=t.getSourceFileFromReference(e,r))&&{fileName:r.fileName,file:o};var a=u(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=u(e.libReferenceDirectives,n);return s?(o=t.getLibFileFromReference(s))&&{fileName:s.fileName,file:o}:void 0}function a(n,t,r){return e.flatMap(!n.isUnion()||32&n.flags?[n]:n.types,function(e){return e.symbol&&i(t,e.symbol,r)})}function i(n,t,r){var a=e.filter(t.declarations,function(n){return!e.isAssignmentDeclaration(n)||n===t.valueDeclaration})||void 0;return function(){if(32&t.flags&&(e.isNewExpressionTarget(r)||125===r.kind)){var n=e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return i(n.members,!0)}}()||(e.isCallOrNewExpressionTarget(r)||e.isNameOfFunctionDeclaration(r)?i(a,!1):void 0)||e.map(a,function(e){return l(e,n,t,r)});function i(a,i){if(a){var o=a.filter(i?e.isConstructorDeclaration:e.isFunctionLike);return o.length?[l(e.find(o,function(e){return!!e.body})||e.last(o),n,t,r)]:void 0}}}function l(n,t,r,a){var i=t.symbolToString(r);return c(n,e.SymbolDisplay.getSymbolKind(t,r,a),i,r.parent?t.symbolToString(r.parent,a):"")}function c(n,t,r,a){var i=e.getNameOfDeclaration(n)||n,o=i.getSourceFile(),l=e.createTextSpanFromNode(i,o);return s({fileName:o.fileName,textSpan:l,kind:t,name:r,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(l,o,e.FindAllReferences.getContextNode(n)))}function d(e,n){return l(n,e,n.symbol,n)}function u(n,t){return e.find(n,function(n){return e.textRangeContainsPositionInclusive(n,t)})}n.getDefinitionAtPosition=t,n.getReferenceAtPosition=r,n.getTypeDefinitionAtPosition=function(n,t,r){var i=e.getTouchingPropertyName(t,r);if(i!==t){var o=n.getSymbolAtLocation(i);if(o){var s=n.getTypeOfSymbolAtLocation(o,i),l=function(n,t,r){if(t.symbol===n||n.valueDeclaration&&t.symbol&&e.isVariableDeclaration(n.valueDeclaration)&&n.valueDeclaration.initializer===t.symbol.valueDeclaration){var a=t.getCallSignatures();if(1===a.length)return r.getReturnTypeOfSignature(e.first(a))}}(o,s,n),c=l&&a(l,n,i);return c&&0!==c.length?c:a(s,n,i)}}},n.getDefinitionAndBoundSpan=function(n,r,a){var i=t(n,r,a);if(i&&0!==i.length){var o=u(r.referencedFiles,a)||u(r.typeReferenceDirectives,a)||u(r.libReferenceDirectives,a);if(o)return{definitions:i,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,a);return{definitions:i,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},n.findReferenceInPosition=u}(e.GoToDefinition||(e.GoToDefinition={}))}(u||(u={})),function(e){!function(n){var t,r,a=["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 302:return r(e.class);case 311:return a(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 310:return r(e.typeExpression);case 312:case 305:case 313:case 307: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 s(n){return{name:n,kind:"",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function l(n){switch(n.kind){case 240:case 197:case 157:case 158:case 156:return{commentOwner:n,parameters:n.parameters};case 276:return l(n.initializer);case 241:case 242:case 154:case 244:case 279:case 243:return{commentOwner:n};case 220:var t=n.declarationList.declarations;return{commentOwner:n,parameters:1===t.length&&t[0].initializer?function(n){for(;196===n.kind;)n=n.expression;switch(n.kind){case 197:case 198:return n.parameters;case 210:var t=e.find(n.members,e.isConstructorDeclaration);return t?t.parameters:e.emptyArray}return e.emptyArray}(t[0].initializer):void 0};case 285:return"quit";case 245:return 245===n.parent.kind?void 0:{commentOwner:n};case 205:var r=n;return 0===e.getAssignmentDeclarationKind(r)?"quit":{commentOwner:n,parameters:e.isFunctionLike(r.right)?r.right.parameters:e.emptyArray}}}n.getJsDocCommentsFromDeclarations=function(n){var t=[];return o(n,function(n){for(var r=0,a=function(n){switch(n.kind){case 307:case 313:return[n];case 305:case 312:return[n,n.parent];default:return e.getJSDocCommentsAndTags(n)}}(n);r<a.length;r++){var i=a[r].comment;void 0!==i&&(t.length&&t.push(e.lineBreakPart()),t.push(e.textPart(i)))}}),t},n.getJsDocTagsFromDeclarations=function(n){var t=[];return o(n,function(n){for(var r=0,a=e.getJSDocTags(n);r<a.length;r++){var o=a[r];t.push({name:o.tagName.text,text:i(o)})}}),t},n.getJSDocTagNameCompletions=function(){return t||(t=e.map(a,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},n.getJSDocTagNameCompletionDetails=s,n.getJSDocTagCompletions=function(){return r||(r=e.map(a,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},n.getJSDocTagCompletionDetails=s,n.getJSDocParameterNameCompletions=function(n){if(!e.isIdentifier(n.name))return e.emptyArray;var t=n.name.text,r=n.parent,a=r.parent;return e.isFunctionLike(a)?e.mapDefined(a.parameters,function(a){if(e.isIdentifier(a.name)){var i=a.name.text;if(!r.tags.some(function(t){return t!==n&&e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===i})&&(void 0===t||e.startsWith(i,t)))return{name:i,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},n.getJSDocParameterNameCompletionDetails=function(n){return{name:n,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},n.getDocCommentTemplateAtPosition=function(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.findAncestor(a,e.isJSDoc);if(!i||void 0===i.comment&&!e.length(i.tags)){var o=a.getStart(t);if(i||!(o<r)){var s=function(n){return e.forEachAncestor(n,l)}(a);if(s){var c=s.commentOwner,d=s.parameters;if(!(c.getStart(t)<r)){if(!d||0===d.length)return{newText:"/** */",caretOffset:3};var u=function(n,t){for(var r=n.text,a=e.getLineStartPositionForPosition(t,n),i=a;i<=t&&e.isWhiteSpaceSingleLine(r.charCodeAt(i));i++);return r.slice(a,i)}(t,r),m="/**"+n+u+" * ";return{newText:m+n+function(e,n,t,r){return e.map(function(e,a){var i=e.name,o=e.dotDotDotToken,s=73===i.kind?i.text:"param"+a,l=n?o?"{...any} ":"{any} ":"";return t+" * @param "+l+s+r}).join("")}(d,e.hasJSFileExtension(t.fileName),u,n)+u+" */"+(o===r?n+u:""),caretOffset:m.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(u||(u={})),function(e){!function(n){function t(e,n){switch(e.kind){case 251:case 254:case 249:var t=n.getSymbolAtLocation(e.name),r=n.getAliasedSymbol(t);return t.escapedName!==r.escapedName;default:return!0}}function r(n,t){var r=e.getNameOfDeclaration(n);return!!r&&(i(r,t)||150===r.kind&&a(r.expression,t))}function a(n,t){return i(n,t)||e.isPropertyAccessExpression(n)&&(t.push(n.name.text),!0)&&a(n.expression,t)}function i(n,t){return e.isPropertyNameLiteral(n)&&(t.push(e.getTextOfIdentifierOrLiteral(n)),!0)}function o(n){var t=[],i=e.getNameOfDeclaration(n);if(i&&150===i.kind&&!a(i.expression,t))return e.emptyArray;t.shift();for(var o=e.getContainerNode(n);o;){if(!r(o,t))return e.emptyArray;o=e.getContainerNode(o)}return t.reverse()}function s(n,t){return e.compareValues(n.matchKind,t.matchKind)||e.compareStringsCaseSensitiveUI(n.name,t.name)}function l(n){var t=n.declaration,r=e.getContainerNode(t),a=r&&e.getNameOfDeclaration(r);return{name:n.name,kind:e.getNodeKind(t),kindModifiers:e.getNodeModifiers(t),matchKind:e.PatternMatchKind[n.matchKind],isCaseSensitive:n.isCaseSensitive,fileName:n.fileName,textSpan:e.createTextSpanFromNode(t),containerName:a?a.text:"",containerKind:a?e.getNodeKind(r):""}}n.getNavigateToItems=function(n,r,a,i,c,d){var u=e.createPatternMatcher(i);if(!u)return e.emptyArray;for(var m=[],p=function(e){if(a.throwIfCancellationRequested(),d&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach(function(n,a){!function(e,n,r,a,i,s){var l=e.getMatchForLastSegmentOfPattern(n);if(l)for(var c=0,d=r;c<d.length;c++){var u=d[c];if(t(u,a))if(e.patternContainsDots){var m=e.getFullMatch(o(u),n);m&&s.push({name:n,fileName:i,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:u})}else s.push({name:n,fileName:i,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:u})}}(u,a,n,r,e.fileName,m)})},f=0,g=n;f<g.length;f++)p(g[f]);return m.sort(s),(void 0===c?m:m.slice(0,c)).map(l)}}(e.NavigateTo||(e.NavigateTo={}))}(u||(u={})),function(e){!function(n){var t,r,a,i=/\s+/g,o=[],s=[];function l(){r=void 0,t=void 0,o=[],a=void 0,s=[]}function c(e){return e.getText(r)}function d(e){return e.node.kind}function u(e,n){e.children?e.children.push(n):e.children=[n]}function m(n){e.Debug.assert(!o.length);var t={node:n,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=t;for(var r=0,i=n.statements;r<i.length;r++){v(i[r])}return _(),e.Debug.assert(!a&&!o.length),t}function p(e){u(a,f(e))}function f(n){return{node:n,name:e.isDeclaration(n)||e.isExpression(n)?e.getNameOfDeclaration(n):void 0,additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function g(e){var n=f(e);u(a,n),o.push(a),a=n}function _(){a.children&&(h(a.children,a),T(a.children)),a=o.pop()}function y(e,n){g(e),v(n),_()}function v(n){if(t.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 158:var r=n;y(r,r.body);for(var a=0,i=r.parameters;a<i.length;a++){var o=i[a];e.isParameterPropertyDeclaration(o)&&p(o)}break;case 157:case 159:case 160:case 156:e.hasDynamicName(n)||y(n,n.body);break;case 155:case 154:e.hasDynamicName(n)||p(n);break;case 251:var s=n;s.name&&p(s.name);var l=s.namedBindings;if(l)if(252===l.kind)p(l);else for(var c=0,d=l.elements;c<d.length;c++){p(d[c])}break;case 187:case 238:var u=n,m=u.name,f=u.initializer;e.isBindingPattern(m)?v(m):f&&function(e){switch(e.kind){case 198:case 197:case 210:return!0;default:return!1}}(f)?f.name?v(f):(g(n),e.forEachChild(f,v),_()):y(n,f);break;case 198:case 240:case 197:y(n,n.body);break;case 244:g(n);for(var h=0,b=n.members;h<b.length;h++){M(S=b[h])||p(S)}_();break;case 241:case 210:case 242:g(n);for(var E=0,T=n.members;E<T.length;E++){var S;v(S=T[E])}_();break;case 245:y(n,function n(t){return t.body&&e.isModuleDeclaration(t.body)?n(t.body):t}(n).body);break;case 258:case 249:case 163:case 161:case 162:case 243:p(n);break;case 205:var L=e.getAssignmentDeclarationKind(n);switch(L){case 1:case 2:case 3:case 6:return void y(n,n.right);case 4:case 5:case 0:case 7:case 8:case 9:break;default:e.Debug.assertNever(L)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,function(n){e.forEach(n.tags,function(n){e.isJSDocTypeAlias(n)&&p(n)})}),e.forEachChild(n,v)}}function h(n,t){var r=e.createMap();e.filterMutate(n,function(n){var a=e.getNameOfDeclaration(n.node),i=a&&c(a);if(!i)return!0;var o=r.get(i);if(!o)return r.set(i,n),!0;if(o instanceof Array){for(var s=0,l=o;s<l.length;s++){var d;if(b(d=l[s],n,t))return!1}return o.push(n),!0}return!b(d=o,n,t)&&(r.set(i,[d,n]),!0)})}function b(n,t,r){return!!function(n,t,r){if(n.kind!==t.kind||n.parent!==t.parent&&(!E(n,r)||!E(t,r)))return!1;switch(n.kind){case 155:case 157:case 159:case 160:return e.hasModifier(n,32)===e.hasModifier(t,32);case 245:return function e(n,t){return n.body.kind===t.body.kind&&(245!==n.body.kind||e(n.body,t.body))}(n,t);default:return!0}}(n.node,t.node,r)&&(function(n,t){var r;n.additionalNodes=n.additionalNodes||[],n.additionalNodes.push(t.node),t.additionalNodes&&(r=n.additionalNodes).push.apply(r,t.additionalNodes);n.children=e.concatenate(n.children,t.children),n.children&&(h(n.children,n),T(n.children))}(n,t),!0)}function E(n,t){var r=e.isModuleBlock(n.parent)?n.parent.parent:n.parent;return r===t.node||e.contains(t.additionalNodes,r)}function T(e){e.sort(S)}function S(n,t){return e.compareStringsCaseSensitiveUI(L(n.node),L(t.node))||e.compareValues(d(n),d(t))}function L(n){if(245===n.kind)return R(n);var t=e.getNameOfDeclaration(n);if(t&&e.isPropertyName(t))return e.unescapeLeadingUnderscores(e.getPropertyNameForPropertyNameNode(t));switch(n.kind){case 197:case 198:case 210:return k(n);default:return}}function A(n,t){if(245===n.kind)return R(n);if(t){var r=c(t);if(r.length>0)return r}switch(n.kind){case 285:var a=n;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"<global>";case 198:case 240:case 197:case 241:case 210:return 512&e.getModifierFlags(n)?"default":k(n);case 158:return"constructor";case 162:return"new()";case 161:return"()";case 163:return"[]";default:return"<unknown>"}}function x(n){return{text:A(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:O(n.node),spans:D(n),nameSpan:n.name&&I(n.name),childItems:e.map(n.children,x)}}function C(n){return{text:A(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:O(n.node),spans:D(n),childItems:e.map(n.children,function(n){return{text:A(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:e.getNodeModifiers(n.node),spans:D(n),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:n.indent,bolded:!1,grayed:!1}}function D(e){var n=[I(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t<r.length;t++){var a=r[t];n.push(I(a))}return n}function R(n){if(e.isAmbientModule(n))return e.getTextOfNode(n.name);var t=[];for(t.push(e.getTextOfIdentifierOrLiteral(n.name));n.body&&245===n.body.kind;)n=n.body,t.push(e.getTextOfIdentifierOrLiteral(n.name));return t.join(".")}function M(e){return!e.name||150===e.name.kind}function I(n){return 285===n.kind?e.createTextSpanFromRange(n):e.createTextSpanFromNode(n,r)}function O(n){return n.parent&&238===n.parent.kind&&(n=n.parent),e.getNodeModifiers(n)}function k(n){var t=n.parent;if(n.name&&e.getFullWidth(n.name)>0)return e.declarationNameToString(n.name);if(e.isVariableDeclaration(t))return e.declarationNameToString(t.name);if(e.isBinaryExpression(t)&&60===t.operatorToken.kind)return c(t.left).replace(i,"");if(e.isPropertyAssignment(t))return c(t.name);if(512&e.getModifierFlags(n))return"default";if(e.isClassLike(n))return"<class>";if(e.isCallExpression(t)){var a=function n(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=n(t.expression),a=t.name.text;return void 0===r?a:r+"."+a}return}(t.expression);if(void 0!==a)return a+"("+e.mapDefined(t.arguments,function(n){return e.isStringLiteralLike(n)?n.getText(r):void 0}).join(", ")+") callback"}return"<function>"}n.getNavigationBarItems=function(n,a){t=a,r=n;try{return e.map((i=m(n),o=[],function n(t){if(function(n){switch(d(n)){case 241:case 210:case 244:case 242:case 245:case 285:case 243:case 312:case 305:return!0;case 158:case 157:case 159:case 160:case 238:return t(n);case 198:case 240:case 197:return function(e){if(!e.node.body)return!1;switch(d(e.parent)){case 246:case 285:case 157:case 158:return!0;default:return t(e)}}(n);default:return!1}function t(n){return e.some(n.children,function(e){var n=d(e);return 238!==n&&187!==n})}}(t)&&(o.push(t),t.children))for(var r=0,a=t.children;r<a.length;r++){var i=a[r];n(i)}}(i),o),C)}finally{l()}var i,o},n.getNavigationTree=function(e,n){t=n,r=e;try{return x(m(e))}finally{l()}}}(e.NavigationBar||(e.NavigationBar={}))}(u||(u={})),function(e){!function(n){function t(n,t){var r=e.isStringLiteral(t)&&t.text;return e.isString(r)&&e.some(n.moduleAugmentations,function(n){return e.isStringLiteral(n)&&n.text===r})}function r(n){return void 0!==n&&e.isStringLiteralLike(n)?n.text:void 0}function a(n){if(0===n.length)return n;var t=function(n){for(var t,r=[],a=[],i=[],o=0,s=n;o<s.length;o++){var l=s[o];if(void 0!==l.importClause){var c=l.importClause,d=c.name,u=c.namedBindings;d&&r.push(l),u&&(e.isNamespaceImport(u)?a.push(l):i.push(l))}else t=t||l}return{importWithoutClause:t,defaultImports:r,namespaceImports:a,namedImports:i}}(n),r=t.importWithoutClause,a=t.defaultImports,i=t.namespaceImports,l=t.namedImports,d=[];if(r&&d.push(r),1===a.length&&1===i.length&&0===l.length){var u=a[0];return d.push(o(u,u.importClause.name,i[0].importClause.namedBindings)),d}for(var m,p=0,f=e.stableSort(i,function(e,n){return c(e.importClause.namedBindings.name,n.importClause.namedBindings.name)});p<f.length;p++){var g=f[p];d.push(o(g,void 0,g.importClause.namedBindings))}if(0===a.length&&0===l.length)return d;var _=[];if(1===a.length)m=a[0].importClause.name;else for(var y=0,v=a;y<v.length;y++){u=v[y];_.push(e.createImportSpecifier(e.createIdentifier("default"),u.importClause.name))}_.push.apply(_,e.flatMap(l,function(e){return e.importClause.namedBindings.elements}));var h=s(_),b=a.length>0?a[0]:l[0],E=0===h.length?m?void 0:e.createNamedImports(e.emptyArray):0===l.length?e.createNamedImports(h):e.updateNamedImports(l[0].importClause.namedBindings,h);return d.push(o(b,m,E)),d}function i(n){if(0===n.length)return n;var t=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}}(n),r=t.exportWithoutClause,a=t.namedExports,i=[];if(r&&i.push(r),0===a.length)return i;var o=[];o.push.apply(o,e.flatMap(a,function(e){return e.exportClause.elements}));var l=s(o),c=a[0];return i.push(e.updateExportDeclaration(c,c.decorators,c.modifiers,e.updateNamedExports(c.exportClause,l),c.moduleSpecifier)),i}function o(n,t,r){return e.updateImportDeclaration(n,n.decorators,n.modifiers,e.updateImportClause(n.importClause,t,r),n.moduleSpecifier)}function s(n){return e.stableSort(n,function(e,n){return c(e.propertyName||e.name,n.propertyName||n.name)||c(e.name,n.name)})}function l(n,t){var a=r(n),i=r(t);return e.compareBooleans(void 0===a,void 0===i)||e.compareBooleans(e.isExternalModuleNameRelative(a),e.isExternalModuleNameRelative(i))||e.compareStringsCaseInsensitive(a,i)}function c(n,t){return e.compareStringsCaseInsensitive(n.text,t.text)}n.organizeImports=function(n,s,c,d,u){var m=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s}),p=function(r){return a(function(n,r,a){for(var i=a.getTypeChecker(),s=i.getJsxNamespace(r),l=!!(2&r.transformFlags),c=[],d=0,u=n;d<u.length;d++){var m=u[d],p=m.importClause,f=m.moduleSpecifier;if(p){var g=p.name,_=p.namedBindings;if(g&&!v(g)&&(g=void 0),_)if(e.isNamespaceImport(_))v(_.name)||(_=void 0);else{var y=_.elements.filter(function(e){return v(e.name)});y.length<_.elements.length&&(_=y.length?e.updateNamedImports(_,y):void 0)}g||_?c.push(o(m,g,_)):t(r,f)&&(r.isDeclarationFile?c.push(e.createImportDeclaration(m.decorators,m.modifiers,void 0,f)):c.push(m))}else c.push(m)}return c;function v(n){return l&&n.text===s||e.FindAllReferences.Core.isSymbolReferencedInFile(n,i,r)}}(r,n,d))};y(n.statements.filter(e.isImportDeclaration),p),y(n.statements.filter(e.isExportDeclaration),i);for(var f=0,g=n.statements.filter(e.isAmbientModule);f<g.length;f++){var _=g[f];_.body&&(y(_.body.statements.filter(e.isImportDeclaration),p),y(_.body.statements.filter(e.isExportDeclaration),i))}return m.getChanges();function y(t,a){if(0!==e.length(t)){e.suppressLeadingTrivia(t[0]);var i=e.group(t,function(e){return r(e.moduleSpecifier)}),o=e.stableSort(i,function(e,n){return l(e[0].moduleSpecifier,n[0].moduleSpecifier)}),d=e.flatMap(o,function(e){return r(e[0].moduleSpecifier)?a(e):e});0===d.length?m.delete(n,t[0]):m.replaceNodeWithNodes(n,t[0],d,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)});for(var u=1;u<t.length;u++)m.delete(n,t[u])}}},n.coalesceImports=a,n.coalesceExports=i,n.compareModuleSpecifiers=l}(e.OrganizeImports||(e.OrganizeImports={}))}(u||(u={})),function(e){!function(n){n.collectElements=function(n,t){var l=[];return function(n,t,r){for(var l=40,c=0,d=n.statements,u=d.length;c<u;){for(;c<u&&!e.isAnyImportSyntax(d[c]);)f(d[c]),c++;if(c===u)break;for(var m=c;c<u&&e.isAnyImportSyntax(d[c]);)a(d[c],n,t,r),c++;var p=c-1;p!==m&&r.push(i(e.findChildOfKind(d[m],93,n).getStart(n),d[p].getEnd(),"imports"))}function f(c){if(0!==l){t.throwIfCancellationRequested(),e.isDeclaration(c)&&a(c,n,t,r),function(n){if(!e.isFunctionExpression(n)&&!e.isArrowFunction(n))return!1;var t=e.findAncestor(n,e.isVariableStatement);return!!t&&e.getSingleInitializerOfVariableStatementOrPropertyDeclaration(t)===n}(c)&&a(c.parent.parent.parent,n,t,r);var d=function(n,t){switch(n.kind){case 219:if(e.isFunctionLike(n.parent))return function(n,t,r){var a=e.isNodeArrayMultiLine(n.parameters,r)?e.findChildOfKind(n,20,r):e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return a&&i&&o(a,i,n,r,198!==n.kind)}(n.parent,n,t);switch(n.parent.kind){case 224:case 227:case 228:case 226:case 223:case 225:case 232:case 275:return u(n.parent);case 236:var r=n.parent;if(r.tryBlock===n)return u(n.parent);if(r.finallyBlock===n)return u(e.findChildOfKind(r,89,t));default:return s(e.createTextSpanFromNode(n,t),"code")}case 246:return u(n.parent);case 241:case 210:case 242:case 244:case 247:return u(n);case 189:return d(n);case 188:return d(n,22);case 261:return a=n,l=e.createTextSpanFromBounds(a.openingElement.getStart(t),a.closingElement.getEnd()),c=a.openingElement.tagName.getText(t),s(l,"code",l,!1,"<"+c+">...</"+c+">");case 265:return function(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd());return s(r,"code",r,!1,"<>...</>")}(n);case 262:case 263:return function(e){if(0!==e.properties.length)return i(e.getStart(t),e.getEnd(),"code")}(n.attributes)}var a,l,c;function d(n,t){return void 0===t&&(t=18),u(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function u(r,a,i,s,l){void 0===a&&(a=!1),void 0===i&&(i=!0),void 0===s&&(s=18),void 0===l&&(l=18===s?19:23);var c=e.findChildOfKind(n,s,t),d=e.findChildOfKind(n,l,t);return c&&d&&o(c,d,r,t,a,i)}}(c,n);d&&r.push(d),l--,e.isIfStatement(c)&&c.elseStatement&&e.isIfStatement(c.elseStatement)?(f(c.expression),f(c.thenStatement),l++,f(c.elseStatement),l--):c.forEachChild(f),l++}}}(n,t,l),function(n,t){for(var a=[],i=0,o=n.getLineStarts();i<o.length;i++){var l=o[i],c=n.getLineEndOfPosition(l),d=n.text.substring(l,c),u=r(d);if(u&&!e.isInComment(n,l))if(u[1]){var m=a.pop();m&&(m.textSpan.length=c-m.textSpan.start,m.hintSpan.length=c-m.textSpan.start,t.push(m))}else{var p=e.createTextSpanFromBounds(n.text.indexOf("//",l),c);a.push(s(p,"region",p,!1,u[2]||"#region"))}}}(n,l),l.sort(function(e,n){return e.textSpan.start-n.textSpan.start})};var t=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function r(e){return t.exec(e)}function a(n,t,a,o){var s=e.getLeadingCommentRangesOfNode(n,t);if(s){for(var l=-1,c=-1,d=0,u=t.getFullText(),m=0,p=s;m<p.length;m++){var f=p[m],g=f.kind,_=f.pos,y=f.end;switch(a.throwIfCancellationRequested(),g){case 2:if(r(u.slice(_,y))){v(),d=0;break}0===d&&(l=_),c=y,d++;break;case 3:v(),o.push(i(_,y,"comment")),d=0;break;default:e.Debug.assertNever(g)}}v()}function v(){d>1&&o.push(i(l,c,"comment"))}}function i(n,t,r){return s(e.createTextSpanFromBounds(n,t),r)}function o(n,t,r,a,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!0),s(e.createTextSpanFromBounds(o?n.getFullStart():n.getStart(a),t.getEnd()),"code",e.createTextSpanFromNode(r,a),i)}function s(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}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(u||(u={})),function(e){var n;function t(e,n){return{kind:e,isCaseSensitive:n}}function r(e,n){var t=n.get(e);return t||n.set(e,t=y(e)),t}function a(a,i,o){var s=function(e,n){for(var t=e.length-n.length,r=function(t){if(L(n,function(n,r){return m(e.charCodeAt(r+t))===n}))return{value:t}},a=0;a<=t;a++){var i=r(a);if("object"==typeof i)return i.value}return-1}(a,i.textLowerCase);if(0===s)return t(i.text.length===a.length?n.exact:n.prefix,e.startsWith(a,i.text));if(i.isLowerCase){if(-1===s)return;for(var u=0,p=r(a,o);u<p.length;u++){var f=p[u];if(l(a,f,i.text,!0))return t(n.substring,l(a,f,i.text,!1))}if(i.text.length<a.length&&d(a.charCodeAt(s)))return t(n.substring,!1)}else{if(a.indexOf(i.text)>0)return t(n.substring,!0);if(i.characterSpans.length>0){var g=r(a,o),_=!!c(a,g,i,!1)||!c(a,g,i,!0)&&void 0;if(void 0!==_)return t(n.camelCase,_)}}}function i(e,n,t){if(L(n.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var r=a(e,n.totalTextChunk,t);if(r)return r}for(var i,s=0,l=n.subWordTextChunks;s<l.length;s++){i=o(i,a(e,l[s],t))}return i}function o(n,t){return e.min(n,t,s)}function s(n,t){return void 0===n?1:void 0===t?-1:e.compareValues(n.kind,t.kind)||e.compareBooleans(!n.isCaseSensitive,!t.isCaseSensitive)}function l(e,n,t,r,a){return void 0===a&&(a={start:0,length:t.length}),a.length<=n.length&&S(0,a.length,function(i){return function(e,n,t){return t?m(e)===m(n):e===n}(t.charCodeAt(a.start+i),e.charCodeAt(n.start+i),r)})}function c(n,t,r,a){for(var i,o,s=r.characterSpans,c=0,u=0;;){if(u===s.length)return!0;if(c===t.length)return!1;for(var m=t[c],p=!1;u<s.length;u++){var f=s[u];if(p&&(!d(r.text.charCodeAt(s[u-1].start))||!d(r.text.charCodeAt(s[u].start))))break;if(!l(n,m,r.text,a,f))break;p=!0,i=void 0===i?c:i,o=void 0===o||o,m=e.createTextSpan(m.start+f.length,m.length-f.length)}p||void 0===o||(o=!1),c++}}function d(n){if(n>=65&&n<=90)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toUpperCase()}function u(n){if(n>=97&&n<=122)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toLowerCase()}function m(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){return d(e)||u(e)||p(e)||95===e||36===e}function g(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:_(e)}}function _(e){return v(e,!1)}function y(e){return v(e,!0)}function v(n,t){for(var r=[],a=0,i=1;i<n.length;i++){var o=p(n.charCodeAt(i-1)),s=p(n.charCodeAt(i)),l=T(n,t,i),c=t&&E(n,i,a);(h(n.charCodeAt(i-1))||h(n.charCodeAt(i))||o!==s||l||c)&&(b(n,a,i)||r.push(e.createTextSpan(a,i-a)),a=i)}return b(n,a,n.length)||r.push(e.createTextSpan(a,n.length-a)),r}function h(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 b(e,n,t){return L(e,function(e){return h(e)&&95!==e},n,t)}function E(e,n,t){return n!==t&&n+1<e.length&&d(e.charCodeAt(n))&&u(e.charCodeAt(n+1))&&L(e,d,t,n)}function T(e,n,t){var r=d(e.charCodeAt(t-1));return d(e.charCodeAt(t))&&(!n||!r)}function S(e,n,t){for(var r=e;r<n;r++)if(!t(r))return!1;return!0}function L(e,n,t,r){return void 0===t&&(t=0),void 0===r&&(r=e.length),S(t,r,function(t){return n(e.charCodeAt(t),t)})}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(n=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(n){var t=e.createMap(),r=n.trim().split(".").map(function(e){return{totalTextChunk:g(n=e.trim()),subWordTextChunks:function(e){for(var n=[],t=0,r=0,a=0;a<e.length;a++){var i=e.charCodeAt(a);f(i)?(0===r&&(t=a),r++):r>0&&(n.push(g(e.substr(t,r))),r=0)}return r>0&&n.push(g(e.substr(t,r))),n}(n)};var n});if(!r.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(n,a){return function(n,t,r,a){var s;if(i(t,e.last(r),a)&&!(r.length-1>n.length)){for(var l=r.length-2,c=n.length-1;l>=0;l-=1,c-=1)s=o(s,i(n[c],r[l],a));return s}}(n,a,r,t)},getMatchForLastSegmentOfPattern:function(n){return i(n,e.last(r),t)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=_,e.breakIntoWordSpans=y}(u||(u={})),function(e){e.preProcessFile=function(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var a,i,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},l=[],c=0,d=!1;function u(){return i=o,18===(o=e.scanner.scan())?c++:19===o&&c--,o}function m(){var n=e.scanner.getTokenValue(),t=e.scanner.getTokenPos();return{fileName:n,pos:t,end:t+n.length}}function p(){l.push(m()),f()}function f(){0===c&&(d=!0)}function g(){var n=e.scanner.getToken();return 126===n&&(131===(n=u())&&10===(n=u())&&(a||(a=[]),a.push({ref:m(),depth:c})),!0)}function _(){if(24===i)return!1;var n=e.scanner.getToken();if(93===n){if(20===(n=u())){if(10===(n=u()))return p(),!0}else{if(10===n)return p(),!0;if(73===n||e.isKeyword(n))if(145===(n=u())){if(10===(n=u()))return p(),!0}else if(60===n){if(v(!0))return!0}else{if(27!==n)return!0;n=u()}if(18===n){for(n=u();19!==n&&1!==n;)n=u();19===n&&145===(n=u())&&10===(n=u())&&p()}else 40===n&&120===(n=u())&&(73===(n=u())||e.isKeyword(n))&&145===(n=u())&&10===(n=u())&&p()}return!0}return!1}function y(){var n=e.scanner.getToken();if(86===n){if(f(),18===(n=u())){for(n=u();19!==n&&1!==n;)n=u();19===n&&145===(n=u())&&10===(n=u())&&p()}else if(40===n)145===(n=u())&&10===(n=u())&&p();else if(93===n&&(73===(n=u())||e.isKeyword(n))&&60===(n=u())&&v(!0))return!0;return!0}return!1}function v(n){var t=n?u():e.scanner.getToken();return 135===t&&(20===(t=u())&&10===(t=u())&&p(),!0)}function h(){var n=e.scanner.getToken();if(73===n&&"define"===e.scanner.getTokenValue()){if(20!==(n=u()))return!0;if(10===(n=u())){if(27!==(n=u()))return!0;n=u()}if(22!==n)return!0;for(n=u();23!==n&&1!==n;)10===n&&p(),n=u();return!0}return!1}if(t&&function(){for(e.scanner.setText(n),u();1!==e.scanner.getToken();)g()||_()||y()||r&&(v(!1)||h())||u();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,n),e.processPragmasIntoFields(s,e.noop),d){if(a)for(var b=0,E=a;b<E.length;b++){var T=E[b];l.push(T.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:l,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(a)for(var L=0,A=a;L<A.length;L++)0===(T=A[L]).depth?(S||(S=[]),S.push(T.ref.fileName)):l.push(T.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:l,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}}(u||(u={})),function(e){!function(n){function t(n){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(n)}}n.getRenameInfo=function(n,r,a,i){var o=e.getTouchingPropertyName(r,a);return(o&&function(n){switch(n.kind){case 73:case 10:case 101:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n);default:return!1}}(o)?function(n,r,a,i,o){var s=r.getSymbolAtLocation(n);if(s){var l=s.declarations;if(l&&0!==l.length){if(l.some(i))return t(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(n)&&81===n.originalKeywordKind&&1536&s.parent.flags)){if(e.isStringLiteralLike(n)&&e.tryGetImportFromModuleSpecifier(n))return o&&o.allowRenameOfImportPath?function(n,r,a){if(!e.isExternalModuleNameRelative(n.text))return t(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var i=e.find(a.declarations,e.isSourceFile);if(i){var o=e.endsWith(n.text,"/index")||e.endsWith(n.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(i.fileName),"/index"),s=void 0===o?i.fileName:o,l=void 0===o?"module":"directory",c=n.text.lastIndexOf("/")+1,d=e.createTextSpan(n.getStart(r)+1+c,n.text.length-c);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:d}}}(n,a,s):void 0;var c=e.SymbolDisplay.getSymbolKind(r,s,n),d=e.isImportOrExportSpecifierName(n)||e.isStringOrNumericLiteralLike(n)&&150===n.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(n)):void 0,u=d||r.symbolToString(s),m=d||r.getFullyQualifiedName(s);return function(n,t,r,a,i,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:n,fullDisplayName:t,kindModifiers:a,triggerSpan:function(n,t){var r=n.getStart(t),a=n.getWidth(t);return 10===n.kind&&(r+=1,a-=2),e.createTextSpan(r,a)}(i,o)}}(u,m,c,e.SymbolDisplay.getSymbolModifiers(s),n,a)}}}}(o,n.getTypeChecker(),r,function(e){return n.isSourceFileDefaultLibrary(e.getSourceFile())},i):void 0)||t(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(u||(u={})),function(e){!function(n){function t(n,t,r){return e.Debug.assert(r.pos<=t),t<r.end||r.getEnd()===t&&e.getTouchingPropertyName(n,t).pos<r.end}n.getSmartSelectionRange=function(n,r){var i,o,l={textSpan:e.createTextSpanFromBounds(r.getFullStart(),r.getEnd())},d=r;e:for(;;){var u=a(d);if(!u.length)break;for(var m=0;m<u.length;m++){var p=u[m-1],f=u[m],g=u[m+1];if(f.getStart(r)>n)break e;if(t(r,n,f)){if(e.isBlock(f)||e.isTemplateSpan(f)||e.isTemplateHead(f)||p&&e.isTemplateHead(p)||e.isVariableDeclarationList(f)&&e.isVariableStatement(d)||e.isSyntaxList(f)&&e.isVariableDeclarationList(d)||e.isVariableDeclaration(f)&&e.isSyntaxList(d)&&1===u.length){d=f;break}e.isTemplateSpan(d)&&g&&e.isTemplateMiddleOrTemplateTail(g)&&b(f.getFullStart()-"${".length,g.getStart()+"}".length);var _=e.isSyntaxList(f)&&(18===(o=(i=p)&&i.kind)||22===o||20===o||263===o)&&c(g)&&!e.positionsAreOnSameLine(p.getStart(),g.getStart(),r),y=e.hasJSDocNodes(f)&&f.jsDoc[0].getStart(),v=_?p.getEnd():f.getStart(),h=_?g.getStart():f.getEnd();e.isNumber(y)&&b(y,h),b(v,h),(e.isStringLiteral(f)||e.isTemplateLiteral(f))&&b(v+1,h-1),d=f;break}if(m===u.length-1)break e}}return l;function b(t,r){if(t!==r){var a=e.createTextSpanFromBounds(t,r);(!l||!e.textSpansEqual(a,l.textSpan)&&e.textSpanIntersectsWithPosition(a,n))&&(l=s({textSpan:a},l&&{parent:l}))}}};var r=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(n){if(e.isSourceFile(n))return i(n.getChildAt(0).getChildren(),r);if(e.isMappedTypeNode(n)){var t=n.getChildren(),a=t[0],s=t.slice(1),c=e.Debug.assertDefined(s.pop());return e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(c.kind,19),[a,l(o(i(i(s,function(e){return e===n.readonlyToken||134===e.kind||e===n.questionToken||56===e.kind}),function(e){var n=e.kind;return 22===n||151===n||23===n}),function(e){return 57===e.kind})),c]}if(e.isPropertySignature(n))return o(s=i(n.getChildren(),function(t){return t===n.name||e.contains(n.modifiers,t)}),function(e){return 57===e.kind});if(e.isParameter(n)){var d=i(n.getChildren(),function(e){return e===n.dotDotDotToken||e===n.name});return o(i(d,function(e){return e===d[0]||e===n.questionToken}),function(e){return 60===e.kind})}return e.isBindingElement(n)?o(n.getChildren(),function(e){return 60===e.kind}):n.getChildren()}function i(e,n){for(var t,r=[],a=0,i=e;a<i.length;a++){var o=i[a];n(o)?(t=t||[]).push(o):(t&&(r.push(l(t)),t=void 0),r.push(o))}return t&&r.push(l(t)),r}function o(n,t,r){if(void 0===r&&(r=!0),n.length<2)return n;var a=e.findIndex(n,t);if(-1===a)return n;var i=n.slice(0,a),o=n[a],s=e.last(n),c=r&&26===s.kind,d=n.slice(a+1,c?n.length-1:void 0),u=e.compact([i.length?l(i):void 0,o,d.length?l(d):void 0]);return c?u.concat(s):u}function l(n){e.Debug.assertGreaterThanOrEqual(n.length,1);var t=e.createNode(314,n[0].pos,e.last(n).end);return t._children=n,t}function c(e){var n=e&&e.kind;return 19===n||23===n||21===n||264===n}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(u||(u={})),function(e){!function(n){var t,r;function a(n,t,r){for(var a=n.getFullStart(),i=n.parent;i;){var o=e.findPrecedingToken(a,t,i,!0);if(o)return e.rangeContainsRange(r,o);i=i.parent}return e.Debug.fail("Could not find preceding token")}function i(n,t){var r=function(n,t){if(28===n.kind||20===n.kind)return{list:function(n,t,r){var a=n.getChildren(r),i=a.indexOf(t);return e.Debug.assert(i>=0&&a.length>i+1),a[i+1]}(n.parent,n,t),argumentIndex:0};var r=e.findContainingList(n);return r&&{list:r,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;27!==i.kind&&t++}return t}(r,n)}}(n,t);if(r){var a=r.list,i=r.argumentIndex,o=function(n){var t=n.getChildren(),r=e.countWhere(t,function(e){return 27!==e.kind});t.length>0&&27===e.last(t).kind&&r++;return r}(a);return 0!==i&&e.Debug.assertLessThan(i,o),{list:a,argumentIndex:i,argumentCount:o,argumentsSpan:function(n,t){var r=n.getFullStart(),a=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,a-r)}(a,t)}}}function s(n,t,r){var a=n.parent;if(e.isCallOrNewExpression(a)){var o=a,s=i(n,r);if(!s)return;var l=s.list,d=s.argumentIndex,u=s.argumentCount,m=s.argumentsSpan;return{isTypeParameterList:!!a.typeArguments&&a.typeArguments.pos===l.pos,invocation:{kind:0,node:o},argumentsSpan:m,argumentIndex:d,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(n)&&e.isTaggedTemplateExpression(a))return e.isInsideTemplateLiteral(n,t,r)?c(a,0,r):void 0;if(e.isTemplateHead(n)&&194===a.parent.kind){var p=a,f=p.parent;return e.Debug.assert(207===p.kind),c(f,d=e.isInsideTemplateLiteral(n,t,r)?0:1,r)}if(e.isTemplateSpan(a)&&e.isTaggedTemplateExpression(a.parent.parent)){var g=a;f=a.parent.parent;if(e.isTemplateTail(n)&&!e.isInsideTemplateLiteral(n,t,r))return;return c(f,d=function(n,t,r,a){if(e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(t))return e.isInsideTemplateLiteral(t,r,a)?0:n+2;return n+1}(g.parent.templateSpans.indexOf(g),n,t,r),r)}if(e.isJsxOpeningLikeElement(a)){var _=a.attributes.pos,y=e.skipTrivia(r.text,a.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:a},argumentsSpan:e.createTextSpan(_,y-_),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(n,r);if(v){var h=v.called,b=v.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:h},argumentsSpan:m=e.createTextSpanFromBounds(h.getStart(r),n.end),argumentIndex:b,argumentCount:b+1}}}function l(n){return e.isBinaryExpression(n.left)?l(n.left)+1:2}function c(n,t,r){var a=e.isNoSubstitutionTemplateLiteral(n.template)?1:n.template.templateSpans.length+1;return 0!==t&&e.Debug.assertLessThan(t,a),{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:function(n,t){var r=n.template,a=r.getStart(),i=r.getEnd();if(207===r.kind){var o=e.last(r.templateSpans);0===o.literal.getFullWidth()&&(i=e.skipTrivia(t.text,i,!1))}return e.createTextSpan(a,i-a)}(n,r),argumentIndex:t,argumentCount:a}}function d(n){return 0===n.kind?e.getInvokedExpression(n.node):n.called}function u(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(t||(t={})),n.getSignatureHelpItems=function(n,t,r,c,m){var _=n.getTypeChecker(),y=e.findTokenOnLeftOfPosition(t,r);if(y){var v=!!c&&"characterTyped"===c.kind;if(!v||!e.isInString(t,r,y)&&!e.isInComment(t,r)){var h=!!c&&"invoked"===c.kind,b=function(n,t,r,a,o){for(var c=function(n){e.Debug.assert(e.rangeContainsRange(n.parent,n),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(n.kind)+", parent: "+e.Debug.formatSyntaxKind(n.parent.kind)});var o=function(n,t,r,a){return function(n,t,r,a){var o=function(n,t,r){if(20===n.kind||27===n.kind){var a=n.parent;switch(a.kind){case 196:case 157:case 197:case 198:var o=i(n,t);if(!o)return;var s=o.argumentIndex,c=o.argumentCount,d=o.argumentsSpan,u=e.isMethodDeclaration(a)?r.getContextualTypeForObjectLiteralElement(a):r.getContextualType(a);return u&&{contextualType:u,argumentIndex:s,argumentCount:c,argumentsSpan:d};case 205:var m=function n(t){return e.isBinaryExpression(t.parent)?n(t.parent):t}(a),p=r.getContextualType(m),f=20===n.kind?0:l(a)-1,g=l(m);return p&&{contextualType:p,argumentIndex:f,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}}(n,r,a);if(o){var s,c=o.contextualType,d=o.argumentIndex,u=o.argumentCount,m=o.argumentsSpan,p=c.getCallSignatures();return 1!==p.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(p),node:n,symbol:(s=c.symbol,"__type"===s.name&&e.firstDefined(s.declarations,function(n){return e.isFunctionTypeNode(n)?n.parent.symbol:void 0})||s)},argumentsSpan:m,argumentIndex:d,argumentCount:u}}}(n,0,r,a)||s(n,t,r)}(n,t,r,a);if(o)return{value:o}},d=n;!e.isSourceFile(d)&&(o||!e.isBlock(d));d=d.parent){var u=c(d);if("object"==typeof u)return u.value}}(y,r,t,_,h);if(b){m.throwIfCancellationRequested();var E=function(n,t,r,i,o){var s=n.invocation,l=n.argumentCount;switch(s.kind){case 0:if(o&&!function(n,t,r){if(!e.isCallOrNewExpression(t))return!1;var i=t.getChildren(r);switch(n.kind){case 20:return e.contains(i,n);case 27:var o=e.findContainingList(n);return!!o&&e.contains(i,o);case 28:return a(n,r,t.expression);default:return!1}}(i,s.node,r))return;var c=[],d=t.getResolvedSignatureForSignatureHelp(s.node,c,l);return 0===c.length?void 0:{kind:0,candidates:c,resolvedSignature:d};case 1:var u=s.called;if(o&&!a(i,r,e.isIdentifier(u)?u.parent:u))return;var c=e.getPossibleGenericSignatures(u,l,t);if(0!==c.length)return{kind:0,candidates:c,resolvedSignature:e.first(c)};var m=t.getSymbolAtLocation(u);return m&&{kind:1,symbol:m};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,_,t,y,v);return m.throwIfCancellationRequested(),E?_.runWithCancellationToken(m,function(n){return 0===E.kind?p(E.candidates,E.resolvedSignature,b,t,n):function(n,t,r,a){var i=t.argumentCount,s=t.argumentsSpan,l=t.invocation,c=t.argumentIndex,d=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(n);return d?{items:[function(n,t,r,a,i){var s=e.symbolToDisplayParts(r,n),l=e.createPrinter({removeComments:!0}),c=t.map(function(e){return g(e,r,a,i,l)}),d=n.getDocumentationComment(r),u=n.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:o(s,[e.punctuationPart(28)]),suffixDisplayParts:[e.punctuationPart(30)],separatorDisplayParts:f,parameters:c,documentation:d,tags:u}}(n,d,a,u(l),r)],applicableSpan:s,selectedItemIndex:0,argumentIndex:c,argumentCount:i}:void 0}(E.symbol,b,t,n)}):e.isSourceFileJS(t)?function(n,t,r){if(2!==n.invocation.kind){var a=d(n.invocation),i=e.isIdentifier(a)?a.text:e.isPropertyAccessExpression(a)?a.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:e.firstDefined(t.getSourceFiles(),function(t){return e.firstDefined(t.getNamedDeclarations().get(i),function(e){var a=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),i=a&&a.getCallSignatures();if(i&&i.length)return o.runWithCancellationToken(r,function(e){return p(i,i[0],n,t,e)})})})}}(b,n,m):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(r||(r={})),n.getArgumentInfoForCompletions=function(e,n,t){var r=s(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var m=70246400;function p(n,t,r,a,i){var s=r.isTypeParameterList,l=r.argumentCount,c=r.argumentsSpan,p=r.invocation,_=r.argumentIndex,y=u(p),v=2===p.kind?p.symbol:i.getSymbolAtLocation(d(p)),h=v?e.symbolToDisplayParts(i,v,void 0,void 0):e.emptyArray,b=n.map(function(n){return function(n,t,r,a,i,s){var l=(r?function(n,t,r,a){var i=(n.target||n).typeParameters,s=e.createPrinter({removeComments:!0}),l=(i||e.emptyArray).map(function(e){return g(e,t,r,a,s)}),c=e.mapToDisplayParts(function(i){var l=n.thisParameter?[t.symbolToParameterDeclaration(n.thisParameter,r,m)]:[],c=e.createNodeArray(o(l,t.getExpandedParameters(n).map(function(e){return t.symbolToParameterDeclaration(e,r,m)})));s.writeList(2576,c,a,i)});return{isVariadic:!1,parameters:l,prefix:[e.punctuationPart(28)],suffix:o([e.punctuationPart(30)],c)}}:function(n,t,r,a){var i=t.hasEffectiveRestParameter(n),s=e.createPrinter({removeComments:!0}),l=e.mapToDisplayParts(function(i){if(n.typeParameters&&n.typeParameters.length){var o=e.createNodeArray(n.typeParameters.map(function(e){return t.typeParameterToDeclaration(e,r)}));s.writeList(53776,o,a,i)}}),c=t.getExpandedParameters(n).map(function(n){return function(n,t,r,a,i){var o=e.mapToDisplayParts(function(e){var o=t.symbolToParameterDeclaration(n,r,m);i.writeNode(4,o,a,e)}),s=t.isOptionalParameter(n.valueDeclaration);return{name:n.name,documentation:n.getDocumentationComment(t),displayParts:o,isOptional:s}}(n,t,r,a,s)});return{isVariadic:i,parameters:c,prefix:o(l,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}})(n,a,i,s),c=l.isVariadic,d=l.parameters,u=l.prefix,p=l.suffix,_=o(t,u),y=o(p,function(n,t,r){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var a=r.getTypePredicateOfSignature(n);a?r.writeTypePredicate(a,t,void 0,e):r.writeType(r.getReturnTypeOfSignature(n),t,void 0,e)})}(n,i,a)),v=n.getDocumentationComment(a),h=n.getJsDocTags();return{isVariadic:c,prefixDisplayParts:_,suffixDisplayParts:y,separatorDisplayParts:f,parameters:d,documentation:v,tags:h}}(n,h,s,i,y,a)});0!==_&&e.Debug.assertLessThan(_,l);var E=n.indexOf(t);return e.Debug.assert(-1!==E),{items:b,applicableSpan:c,selectedItemIndex:E,argumentIndex:_,argumentCount:l}}var f=[e.punctuationPart(27),e.spacePart()];function g(n,t,r,a,i){var o=e.mapToDisplayParts(function(e){var o=t.typeParameterToDeclaration(n,r);i.writeNode(4,o,a,e)});return{name:n.symbol.name,documentation:n.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(u||(u={})),function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function t(n,t,r){var a=e.tryParseRawSourceMap(t);if(a&&a.sources&&a.file&&a.mappings)return e.createDocumentPositionMapper(n,a,r)}e.getSourceMapper=function(n){var t=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),r=n.getCurrentDirectory(),a=e.createMap(),i=e.createMap();return{tryGetSourcePosition:function n(t){if(e.isDeclarationFileName(t.fileName)){var r=l(t.fileName);if(r){var a=s(t.fileName).getSourcePosition(t);return a&&a!==t?n(a)||a:void 0}}},tryGetGeneratedPosition:function(a){if(!e.isDeclarationFileName(a.fileName)&&l(a.fileName)){var i=n.getProgram(),o=i.getCompilerOptions(),c=o.outFile||o.out,d=c?e.removeFileExtension(c)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(a.fileName,i.getCompilerOptions(),r,i.getCommonSourceDirectory(),t);if(void 0!==d){var u=s(d,a.fileName).getGeneratedPosition(a);return u===a?void 0:u}}},toLineColumnOffset:function(e,n){return d(e).getLineAndCharacterOfPosition(n)},clearCache:function(){a.clear(),i.clear()}};function o(n){return e.toPath(n,r,t)}function s(r,a){var s,l=o(r),c=i.get(l);if(c)return c;if(n.getDocumentPositionMapper)s=n.getDocumentPositionMapper(r,a);else if(n.readFile){var u=d(r);s=u&&e.getDocumentPositionMapper({getSourceFileLike:d,getCanonicalFileName:t,log:function(e){return n.log(e)}},r,e.getLineInfo(u.text,e.getLineStarts(u)),function(e){return!n.fileExists||n.fileExists(e)?n.readFile(e):void 0})}return i.set(l,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function l(e){var t=n.getProgram();if(t){var r=o(e),a=t.getSourceFileByPath(r);return a&&a.resolvedPath===r?a:void 0}}function c(t){var r=o(t),i=a.get(r);if(void 0!==i)return i||void 0;if(n.readFile&&(!n.fileExists||n.fileExists(r))){var s=n.readFile(r),l=!!s&&function(n,t){return{text:n,lineMap:t,getLineAndCharacterOfPosition:function(n){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),n)}}}(s);return a.set(r,l),l||void 0}a.set(r,!1)}function d(e){return n.getSourceFileLike?n.getSourceFileLike(e):l(e)||c(e)}},e.getDocumentPositionMapper=function(r,a,i,o){var s=e.tryGetSourceMappingURL(i);if(s){var l=n.exec(s);if(l){if(l[1]){var c=l[1];return t(r,e.base64decode(e.sys,c),a)}s=void 0}}var d=[];s&&d.push(s),d.push(a+".map");for(var u=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(a)),m=0,p=d;m<p.length;m++){var f=p[m],g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(a)),_=o(g,u);if(e.isString(_))return t(r,_,g);if(void 0!==_)return _||void 0}}}(u||(u={})),function(e){var n=e.createMap();function t(n){switch(n.kind){case 250:var t=n.importClause,r=n.moduleSpecifier;return t&&!t.name&&t.namedBindings&&252===t.namedBindings.kind&&e.isStringLiteral(r)?t.namedBindings.name:void 0;case 249:return n.name;default:return}}function r(n){return e.isReturnStatement(n)&&!!n.expression&&a(n.expression)}function a(n){if(!i(n)||!n.arguments.every(o))return!1;for(var t=n.expression;i(t)||e.isPropertyAccessExpression(t);){if(e.isCallExpression(t)&&!t.arguments.every(o))return!1;t=t.expression}return!0}function i(n){return e.isCallExpression(n)&&(e.hasPropertyAccessExpressionWithName(n,"then")||e.hasPropertyAccessExpressionWithName(n,"catch"))}function o(e){switch(e.kind){case 240:case 197:case 198:n.set(s(e),!0);case 97:case 73:return!0;default:return!1}}function s(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(a,i,o){i.getSemanticDiagnostics(a,o);var l,c=[],d=i.getTypeChecker();a.commonJsModuleIndicator&&(e.programContainsEs6Modules(i)||e.compilerOptionsIndicateEs6Modules(i.getCompilerOptions()))&&function(n){return n.statements.some(function(n){switch(n.kind){case 220:return n.declarationList.declarations.some(function(n){return!!n.initializer&&e.isRequireCall(function n(t){return e.isPropertyAccessExpression(t)?n(t.expression):t}(n.initializer),!0)});case 222:var t=n.expression;if(!e.isBinaryExpression(t))return e.isRequireCall(t,!0);var r=e.getAssignmentDeclarationKind(t);return 1===r||2===r;default:return!1}})}(a)&&c.push(e.createDiagnosticForNode((l=a.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var u=e.isSourceFileJS(a);if(n.clear(),function t(i){if(u)switch(i.kind){case 197:var o=e.getDeclarationOfExpando(i);if(o){var l=o.symbol;if(l&&(l.exports&&l.exports.size||l.members&&l.members.size)){c.push(e.createDiagnosticForNode(e.isVariableDeclaration(i.parent)?i.parent.name:i,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 240:var m=i.symbol;m.members&&m.members.size>0&&c.push(e.createDiagnosticForNode(e.isVariableDeclaration(i.parent)?i.parent.name:i,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{if(e.isVariableStatement(i)&&i.parent===a&&2&i.declarationList.flags&&1===i.declarationList.declarations.length){var p=i.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&c.push(e.createDiagnosticForNode(p,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(i)&&c.push(e.createDiagnosticForNode(i.name||i,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(i)&&function(t,a,i){(function(n,t){return!e.isAsyncFunction(n)&&n.body&&e.isBlock(n.body)&&(a=n.body,!!e.forEachReturnStatement(a,r))&&function(e,n){var t=n.getTypeAtLocation(e),r=n.getSignaturesOfType(t,0),a=r.length?n.getReturnTypeOfSignature(r[0]):void 0;return!!a&&!!n.getPromisedTypeOfPromise(a)}(n,t);var a})(t,a)&&!n.has(s(t))&&i.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}(i,d,c),i.forEachChild(t)}(a),e.getAllowSyntheticDefaultImports(i.getCompilerOptions()))for(var m=0,p=a.imports;m<p.length;m++){var f=p[m],g=t(e.importFromModuleSpecifier(f));if(g){var _=e.getResolvedModule(a,f.text),y=_&&i.getSourceFile(_.resolvedFileName);y&&y.externalModuleIndicator&&e.isExportAssignment(y.externalModuleIndicator)&&y.externalModuleIndicator.isExportEquals&&c.push(e.createDiagnosticForNode(g,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(c,a.bindSuggestionDiagnostics),e.addRange(c,i.getSuggestionDiagnostics(a,o)),c.sort(function(e,n){return e.start-n.start})},e.isReturnStatementWithFixablePromiseHandler=r,e.isFixablePromiseHandler=a}(u||(u={})),function(e){!function(n){function t(n,t,a){var i=r(n,t,a);if(""!==i)return i;var o=e.getCombinedLocalAndExportSymbolFlags(t);return 32&o?e.getDeclarationOfKind(t,210)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":i}function r(n,t,r){var i=n.getRootSymbols(t);if(1===i.length&&8192&e.first(i).flags&&0!==n.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length)return"method";if(n.isUndefinedSymbol(t))return"var";if(n.isArgumentsSymbol(t))return"local var";if(101===r.kind&&e.isExpression(r))return"parameter";var o=e.getCombinedLocalAndExportSymbolFlags(t);if(3&o)return e.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&e.isVarConst(t.valueDeclaration)?"const":e.forEach(t.declarations,e.isLet)?"let":a(t)?"local var":"var";if(16&o)return a(t)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(4&o){if(33554432&o&&6&t.checkFlags){var s=e.forEach(n.getRootSymbols(t),function(n){var t=n.getFlags();if(98311&t)return"property";e.Debug.assert(!!(8208&t))});return s||(n.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}switch(r.parent&&r.parent.kind){case 263:case 261:case 262:return 73===r.kind?"property":"JSX attribute";case 268:return"JSX attribute";default:return"property"}}return""}function a(n){return!n.parent&&e.forEach(n.declarations,function(n){if(197===n.kind)return!0;if(238!==n.kind&&240!==n.kind)return!1;for(var t=n.parent;!e.isFunctionBlock(t);t=t.parent)if(285===t.kind||246===t.kind)return!1;return!0})}n.getSymbolKind=t,n.getSymbolModifiers=function(n){var t=n&&n.declarations&&n.declarations.length>0?e.getNodeModifiers(n.declarations[0]):"",r=n&&16777216&n.flags?"optional":"";return t&&r?t+","+r:t||r},n.getSymbolDisplayPartsDocumentationAndSymbolKind=function n(a,i,o,s,l,c,d){void 0===c&&(c=e.getMeaningFromLocation(l));var u,m,p,f,g,_,y=[],v=e.getCombinedLocalAndExportSymbolFlags(i),h=1&c?r(a,i,l):"",b=!1,E=101===l.kind&&e.isInExpressionContext(l);if(101===l.kind&&!E)return{displayParts:[e.keywordPart(101)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==h||32&v||2097152&v){"getter"!==h&&"setter"!==h||(h="property");var T=void 0;if(p=E?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(i.exportSymbol||i,l),l.parent&&190===l.parent.kind){var S=l.parent.name;(S===l||S&&0===S.getFullWidth())&&(l=l.parent)}var L=void 0;if(e.isCallOrNewExpression(l)?L=l:e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)?L=l.parent:l.parent&&e.isJsxOpeningLikeElement(l.parent)&&e.isFunctionLike(i.valueDeclaration)&&(L=l.parent),L){T=a.getResolvedSignature(L);var A=193===L.kind||e.isCallExpression(L)&&99===L.expression.kind,x=A?p.getConstructSignatures():p.getCallSignatures();if(e.contains(x,T.target)||e.contains(x,T)||(T=x.length?x[0]:void 0),T){switch(A&&32&v?(h="constructor",z(p.symbol,h)):2097152&v?(X(h="alias"),y.push(e.spacePart()),A&&(y.push(e.keywordPart(96)),y.push(e.spacePart())),q(i)):z(i,h),h){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(57)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(a,p.symbol,s,void 0,5)),y.push(e.lineBreakPart())),A&&(y.push(e.keywordPart(96)),y.push(e.spacePart())),J(T,x,262144);break;default:J(T,x)}b=!0}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&v)||125===l.kind&&158===l.parent.kind){var C=l.parent;e.find(i.declarations,function(e){return e===(125===l.kind?C.parent:C)})&&(x=158===C.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures(),T=a.isImplementationOfOverload(C)?x[0]:a.getSignatureFromDeclaration(C),158===C.kind?(h="constructor",z(p.symbol,h)):z(161!==C.kind||2048&p.symbol.flags||4096&p.symbol.flags?i:p.symbol,h),J(T,x),b=!0)}}if(32&v&&!b&&!E&&(j(),e.getDeclarationOfKind(i,210)?X("local class"):y.push(e.keywordPart(77)),y.push(e.spacePart()),q(i),Y(i,o)),64&v&&2&c&&(K(),y.push(e.keywordPart(111)),y.push(e.spacePart()),q(i),Y(i,o)),524288&v&&2&c&&(K(),y.push(e.keywordPart(141)),y.push(e.spacePart()),q(i),Y(i,o),y.push(e.spacePart()),y.push(e.operatorPart(60)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(i),s,8388608))),384&v&&(K(),e.some(i.declarations,function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)})&&(y.push(e.keywordPart(78)),y.push(e.spacePart())),y.push(e.keywordPart(85)),y.push(e.spacePart()),q(i)),1536&v&&!E){K();var D=(B=e.getDeclarationOfKind(i,245))&&B.name&&73===B.name.kind;y.push(e.keywordPart(D?132:131)),y.push(e.spacePart()),q(i)}if(262144&v&&2&c)if(K(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),q(i),i.parent)W(),q(i.parent,s),Y(i.parent,s);else{var R=e.getDeclarationOfKind(i,151);if(void 0===R)return e.Debug.fail();(B=R.parent)&&(e.isFunctionLikeKind(B.kind)?(W(),T=a.getSignatureFromDeclaration(B),162===B.kind?(y.push(e.keywordPart(96)),y.push(e.spacePart())):161!==B.kind&&B.name&&q(B.symbol),e.addRange(y,e.signatureToDisplayParts(a,T,o,32))):243===B.kind&&(W(),y.push(e.keywordPart(141)),y.push(e.spacePart()),q(B.symbol),Y(B.symbol,o)))}if(8&v&&(h="enum member",z(i,"enum member"),279===(B=i.declarations[0]).kind)){var M=a.getConstantValue(B);void 0!==M&&(y.push(e.spacePart()),y.push(e.operatorPart(60)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(M),"number"==typeof M?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&v){if(K(),!b){var I=a.getAliasedSymbol(i);if(I!==i&&I.declarations&&I.declarations.length>0){var O=I.declarations[0],k=e.getNameOfDeclaration(O);if(k){var N=e.isModuleWithStringLiteralName(O)&&e.hasModifier(O,2),w="default"!==i.name&&!N,P=n(a,I,e.getSourceFileOfNode(O),O,k,c,w?i:I);y.push.apply(y,P.displayParts),y.push(e.lineBreakPart()),g=P.documentation,_=P.tags}}}switch(i.declarations[0].kind){case 248:y.push(e.keywordPart(86)),y.push(e.spacePart()),y.push(e.keywordPart(132));break;case 255:y.push(e.keywordPart(86)),y.push(e.spacePart()),y.push(e.keywordPart(i.declarations[0].isExportEquals?60:81));break;case 258:y.push(e.keywordPart(86));break;default:y.push(e.keywordPart(93))}y.push(e.spacePart()),q(i),e.forEach(i.declarations,function(n){if(249===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))y.push(e.spacePart()),y.push(e.operatorPart(60)),y.push(e.spacePart()),y.push(e.keywordPart(135)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(t)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var r=a.getSymbolAtLocation(t.moduleReference);r&&(y.push(e.spacePart()),y.push(e.operatorPart(60)),y.push(e.spacePart()),q(r,s))}return!0}})}if(!b)if(""!==h){if(p)if(E?(K(),y.push(e.keywordPart(101))):z(i,h),"property"===h||"JSX attribute"===h||3&v||"local var"===h||E)if(y.push(e.punctuationPart(57)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var G=e.mapToDisplayParts(function(n){var t=a.typeParameterToDeclaration(p,s);H().writeNode(4,t,e.getSourceFileOfNode(e.getParseTreeNode(s)),n)});e.addRange(y,G)}else e.addRange(y,e.typeToDisplayParts(a,p,s));else(16&v||8192&v||16384&v||131072&v||98304&v||"method"===h)&&(x=p.getNonNullableType().getCallSignatures()).length&&J(x[0],x)}else h=t(a,i,l);if(!u&&(u=i.getDocumentationComment(a),m=i.getJsDocTags(),0===u.length&&4&v&&i.parent&&e.forEach(i.parent.declarations,function(e){return 285===e.kind})))for(var F=0,V=i.declarations;F<V.length;F++){var B;if((B=V[F]).parent&&205===B.parent.kind){var U=a.getSymbolAtLocation(B.parent.right);if(U&&(u=U.getDocumentationComment(a),m=U.getJsDocTags(),u.length>0))break}}return 0===u.length&&g&&(u=g),0===m.length&&_&&(m=_),{displayParts:y,documentation:u,symbolKind:h,tags:0===m.length?void 0:m};function H(){return f||(f=e.createPrinter({removeComments:!0})),f}function K(){y.length&&y.push(e.lineBreakPart()),j()}function j(){d&&(X("alias"),y.push(e.spacePart()))}function W(){y.push(e.spacePart()),y.push(e.keywordPart(94)),y.push(e.spacePart())}function q(n,t){d&&n===i&&(n=d);var r=e.symbolToDisplayParts(a,n,t||o,void 0,7);e.addRange(y,r),16777216&i.flags&&y.push(e.punctuationPart(56))}function z(n,t){K(),t&&(X(t),n&&!e.some(n.declarations,function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name})&&(y.push(e.spacePart()),q(n)))}function X(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(n));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(n)),void y.push(e.punctuationPart(21))}}function J(n,t,r){void 0===r&&(r=0),e.addRange(y,e.signatureToDisplayParts(a,n,s,32|r)),t.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(38)),y.push(e.displayPart((t.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===t.length?"overload":"overloads")),y.push(e.punctuationPart(21)));var i=n.getDocumentationComment(a);u=0===i.length?void 0:i,m=n.getJsDocTags()}function Y(n,t){var r=e.mapToDisplayParts(function(r){var i=a.symbolToTypeParameterDeclarations(n,t);H().writeList(53776,i,e.getSourceFileOfNode(e.getParseTreeNode(t)),r)});e.addRange(y,r)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),function(e){function n(n,t){var a=[],i=t.compilerOptions?r(t.compilerOptions,a):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===i[s]&&(i[s]=o[s]);i.isolatedModules=!0,i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,i.noLib=!0,i.lib=void 0,i.types=void 0,i.noEmit=void 0,i.noEmitOnError=void 0,i.paths=void 0,i.rootDirs=void 0,i.declaration=void 0,i.composite=void 0,i.declarationDir=void 0,i.out=void 0,i.outFile=void 0,i.noResolve=!0;var l=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),c=e.createSourceFile(l,n,i.target);t.moduleName&&(c.moduleName=t.moduleName),t.renamedDependencies&&(c.renamedDependencies=e.createMapFromTemplate(t.renamedDependencies));var d,u,m=e.getNewLineCharacter(i),p={getSourceFile:function(n){return n===e.normalizePath(l)?c:void 0},writeFile:function(n,t){e.fileExtensionIs(n,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",n),u=t):(e.Debug.assertEqual(d,void 0,"Unexpected multiple outputs, file:",n),d=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return m},fileExists:function(e){return e===l},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},f=e.createProgram([l],i,p);return t.reportDiagnostics&&(e.addRange(a,f.getSyntacticDiagnostics(c)),e.addRange(a,f.getOptionsDiagnostics())),f.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===d?e.Debug.fail("Output generation failed"):{outputText:d,diagnostics:a,sourceMapText:u}}var t;function r(n,r){t=t||e.filter(e.optionDeclarations,function(n){return"object"==typeof n.type&&!e.forEachEntry(n.type,function(e){return"number"!=typeof e})}),n=e.cloneCompilerOptions(n);for(var a=function(t){if(!e.hasProperty(n,t.name))return"continue";var a=n[t.name];e.isString(a)?n[t.name]=e.parseCustomTypeOption(t,a,r):e.forEachEntry(t.type,function(e){return e===a})||r.push(e.createCompilerDiagnosticForInvalidCustomType(t))},i=0,o=t;i<o.length;i++){a(o[i])}return n}e.transpileModule=n,e.transpile=function(t,r,a,i,o){var s=n(t,{compilerOptions:r,fileName:a,reportDiagnostics:!!i,moduleName:o});return e.addRange(i,s.diagnostics),s.outputText},e.fixupCompilerOptions=r}(u||(u={})),function(e){!function(n){!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(n.FormattingRequestKind||(n.FormattingRequestKind={}));var t=function(){function n(e,n,t){this.sourceFile=e,this.formattingRequestKind=n,this.options=t}return n.prototype.updateContext=function(n,t,r,a,i){this.currentTokenSpan=e.Debug.assertDefined(n),this.currentTokenParent=e.Debug.assertDefined(t),this.nextTokenSpan=e.Debug.assertDefined(r),this.nextTokenParent=e.Debug.assertDefined(a),this.contextNode=e.Debug.assertDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},n.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},n.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},n.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},n.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},n.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},n.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},n.prototype.BlockIsOnOneLine=function(n){var t=e.findChildOfKind(n,18,this.sourceFile),r=e.findChildOfKind(n,19,this.sourceFile);return!(!t||!r)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line},n}();n.FormattingContext=t}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t,r=e.createScanner(99,!1,0),a=e.createScanner(99,!1,1);!function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText"}(t||(t={})),n.getFormattingScanner=function(n,t,i,o,s){var l=1===t?a:r;l.setText(n),l.setTextPos(i);var c,d,u,m,p,f=!0,g=s({advance:function(){p=void 0,l.getStartPos()!==i?f=!!d&&4===e.last(d).kind:l.scan(),c=void 0,d=void 0;for(var n=l.getStartPos();n<o;){var t=l.getToken();if(!e.isTrivia(t))break;l.scan();var r={pos:n,end:l.getStartPos(),kind:t};n=l.getStartPos(),c=e.append(c,r)}u=l.getStartPos()},readTokenInfo:function(n){e.Debug.assert(_());var t=function(e){switch(e.kind){case 32:case 68:case 69:case 48:case 47:return!0}return!1}(n)?1:13===n.kind?2:function(e){return 16===e.kind||17===e.kind}(n)?3:function(n){if(n.parent)switch(n.parent.kind){case 268:case 263:case 264:case 262:return e.isKeyword(n.kind)||73===n.kind}return!1}(n)?4:11===n.kind?5:0;if(p&&t===m)return y(p,n);l.getStartPos()!==u&&(e.Debug.assert(void 0!==p),l.setTextPos(u),l.scan());var r=function(n,t){var r,a=l.getToken();switch(m=0,t){case 1:if(30===a){m=1;var i=l.reScanGreaterToken();return e.Debug.assert(n.kind===i),i}break;case 2:if(42===(r=a)||65===r){m=2;var i=l.reScanSlashToken();return e.Debug.assert(n.kind===i),i}break;case 3:if(19===a)return m=3,l.reScanTemplateToken();break;case 4:return m=4,l.scanJsxIdentifier();case 5:return m=5,l.reScanJsxToken();case 0:break;default:e.Debug.assertNever(t)}return a}(n,t),a={pos:l.getStartPos(),end:l.getTextPos(),kind:r};for(d&&(d=void 0);l.getStartPos()<o&&(r=l.scan(),e.isTrivia(r));){var i={pos:l.getStartPos(),end:l.getTextPos(),kind:r};if(d||(d=[]),d.push(i),4===r){l.scan();break}}return y(p={leadingTrivia:c,trailingTrivia:d,token:a},n)},isOnToken:_,getCurrentLeadingTrivia:function(){return c},lastTrailingTriviaWasNewLine:function(){return f},skipToEndOf:function(e){l.setTextPos(e.end),u=l.getStartPos(),m=void 0,p=void 0,f=!1,c=void 0,d=void 0}});return p=void 0,l.setText(void 0),g;function _(){var n=p?p.token.kind:l.getToken();return(p?p.token.pos:l.getStartPos())<o&&1!==n&&!e.isTrivia(n)}function y(n,t){return e.isToken(t)&&n.token.kind!==t.kind&&(n.token.kind=t.kind),n}}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){n.anyContext=e.emptyArray,function(e){e[e.Ignore=1]="Ignore",e[e.Space=2]="Space",e[e.NewLine=4]="NewLine",e[e.Delete=8]="Delete"}(n.RuleAction||(n.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(n.RuleFlags||(n.RuleFlags={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){function t(e,n,t,r,i,o){return void 0===o&&(o=0),{leftTokenRange:a(n),rightTokenRange:a(t),rule:{debugName:e,context:r,action:i,flags:o}}}function r(e){return{tokens:e,isSpecific:!0}}function a(n){return"number"==typeof n?r([n]):e.isArray(n)?r(n):n}function i(n,t,a){void 0===a&&(a=[]);for(var i=[],o=n;o<=t;o++)e.contains(a,o)||i.push(o);return r(i)}function s(e){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!!n.options[e]}}function l(e){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!n.options[e]}}function c(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]}}function d(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]||n.TokensAreOnSameLine()}}function u(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!!n.options[e]}}function m(e){return 226===e.contextNode.kind}function p(e){return!m(e)}function f(e){switch(e.contextNode.kind){case 205:case 206:case 176:case 213:case 258:case 254:case 164:case 174:case 175:return!0;case 187:case 243:case 249:case 238:case 152:case 279:case 155:case 154:return 60===e.currentTokenSpan.kind||60===e.nextTokenSpan.kind;case 227:case 151:return 94===e.currentTokenSpan.kind||94===e.nextTokenSpan.kind||60===e.currentTokenSpan.kind||60===e.nextTokenSpan.kind;case 228:return 148===e.currentTokenSpan.kind||148===e.nextTokenSpan.kind}return!1}function g(e){return!f(e)}function _(e){return!y(e)}function y(n){var t=n.contextNode.kind;return 155===t||154===t||152===t||238===t||e.isFunctionLikeKind(t)}function v(e){return 206===e.contextNode.kind||176===e.contextNode.kind}function h(e){return e.TokensAreOnSameLine()||L(e)}function b(e){return 185===e.contextNode.kind||182===e.contextNode.kind||function(e){return S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function E(e){return L(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function T(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return A(e.contextNode)}function L(e){return A(e.nextTokenParent)}function A(e){if(M(e))return!0;switch(e.kind){case 219:case 247:case 189:case 246:return!0}return!1}function x(e){switch(e.contextNode.kind){case 240:case 157:case 156:case 159:case 160:case 161:case 197:case 158:case 198:case 242:return!0}return!1}function C(e){return!x(e)}function D(e){return 240===e.contextNode.kind||197===e.contextNode.kind}function R(e){return M(e.contextNode)}function M(e){switch(e.kind){case 241:case 210:case 242:case 244:case 169:case 245:case 256:case 257:case 250:case 253:return!0}return!1}function I(e){switch(e.currentTokenParent.kind){case 241:case 245:case 244:case 275:case 246:case 233:return!0;case 219:var n=e.currentTokenParent.parent;if(!n||198!==n.kind&&197!==n.kind)return!0}return!1}function O(e){switch(e.contextNode.kind){case 223:case 233:case 226:case 227:case 228:case 225:case 236:case 224:case 232:case 275:return!0;default:return!1}}function k(e){return 189===e.contextNode.kind}function N(e){return function(e){return 192===e.contextNode.kind}(e)||function(e){return 193===e.contextNode.kind}(e)}function w(e){return 27!==e.currentTokenSpan.kind}function P(e){return 23!==e.nextTokenSpan.kind}function G(e){return 198===e.contextNode.kind}function F(e){return 184===e.contextNode.kind}function V(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function B(e){return 261!==e.contextNode.kind&&265!==e.contextNode.kind}function U(e){return 271===e.contextNode.kind||270===e.contextNode.kind}function H(e){return 268===e.nextTokenParent.kind}function K(e){return 268===e.contextNode.kind}function j(e){return 262===e.contextNode.kind}function W(e){return!x(e)&&!L(e)}function q(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&z(e.currentTokenParent)&&!z(e.nextTokenParent)}function z(n){for(;e.isExpressionNode(n);)n=n.parent;return 153===n.kind}function X(e){return 239===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function J(e){return 2!==e.formattingRequestKind}function Y(e){return 245===e.contextNode.kind}function Q(e){return 169===e.contextNode.kind}function Z(e){return 162===e.contextNode.kind}function $(e,n){if(28!==e.kind&&30!==e.kind)return!1;switch(n.kind){case 165:case 195:case 243:case 241:case 210:case 242:case 240:case 197:case 198:case 157:case 156:case 161:case 162:case 192:case 193:case 212:return!0;default:return!1}}function ee(e){return $(e.currentTokenSpan,e.currentTokenParent)||$(e.nextTokenSpan,e.nextTokenParent)}function ne(e){return 195===e.contextNode.kind}function te(e){return 107===e.currentTokenSpan.kind&&201===e.currentTokenParent.kind}function re(e){return 208===e.contextNode.kind&&void 0!==e.contextNode.expression}function ae(e){return 214===e.contextNode.kind}n.getAllRules=function(){for(var a=[],S=0;S<=148;S++)a.push(S);function A(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return{tokens:a.filter(function(n){return!e.some(function(e){return e===n})}),isSpecific:!1}}var M={tokens:a,isSpecific:!1},z=r(o(a,[3])),$=i(74,148),ie=i(28,72),oe=[94,95,148,120,129],se=o([73],e.typeKeywords),le=z,ce=r([73,3,77,86,93]),de=r([21,3,83,104,89,84]),ue=[t("IgnoreBeforeComment",M,[2,3],n.anyContext,1),t("IgnoreAfterLineComment",2,M,n.anyContext,1),t("NotSpaceBeforeColon",M,57,[V,g,_],8),t("SpaceAfterColon",57,M,[V,g],2),t("NoSpaceBeforeQuestionMark",M,56,[V,g],8),t("SpaceAfterQuestionMarkInConditionalOperator",56,M,[V,v],2),t("NoSpaceAfterQuestionMark",56,M,[V],8),t("NoSpaceBeforeDot",M,24,[V],8),t("NoSpaceAfterDot",24,M,[V],8),t("NoSpaceBetweenImportParenInImportType",93,20,[V,F],8),t("NoSpaceAfterUnaryPrefixOperator",[44,45,53,52],[8,9,73,20,22,18,101,96],[V,g],8),t("NoSpaceAfterUnaryPreincrementOperator",44,[73,20,101,96],[V],8),t("NoSpaceAfterUnaryPredecrementOperator",45,[73,20,101,96],[V],8),t("NoSpaceBeforeUnaryPostincrementOperator",[73,21,23,96],44,[V],8),t("NoSpaceBeforeUnaryPostdecrementOperator",[73,21,23,96],45,[V],8),t("SpaceAfterPostincrementWhenFollowedByAdd",44,38,[V,f],2),t("SpaceAfterAddWhenFollowedByUnaryPlus",38,38,[V,f],2),t("SpaceAfterAddWhenFollowedByPreincrement",38,44,[V,f],2),t("SpaceAfterPostdecrementWhenFollowedBySubtract",45,39,[V,f],2),t("SpaceAfterSubtractWhenFollowedByUnaryMinus",39,39,[V,f],2),t("SpaceAfterSubtractWhenFollowedByPredecrement",39,45,[V,f],2),t("NoSpaceAfterCloseBrace",19,[27,26],[V],8),t("NewLineBeforeCloseBraceInBlockContext",z,19,[T],4),t("SpaceAfterCloseBrace",19,A(21),[V,I],2),t("SpaceBetweenCloseBraceAndElse",19,84,[V],2),t("SpaceBetweenCloseBraceAndWhile",19,108,[V],2),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,k],8),t("SpaceAfterConditionalClosingParen",21,22,[O],2),t("NoSpaceBetweenFunctionKeywordAndStar",91,40,[D],8),t("SpaceAfterStarInGeneratorDeclaration",40,73,[D],2),t("SpaceAfterFunctionInFuncDecl",91,M,[x],2),t("NewLineAfterOpenBraceInBlockContext",18,M,[T],4),t("SpaceAfterGetSetInMember",[127,138],73,[x],2),t("NoSpaceBetweenYieldKeywordAndStar",118,40,[V,re],8),t("SpaceBetweenYieldOrYieldStarAndOperand",[118,40],M,[V,re],2),t("NoSpaceBetweenReturnAndSemicolon",98,26,[V],8),t("SpaceAfterCertainKeywords",[106,102,96,82,98,105,123],M,[V],2),t("SpaceAfterLetConstInVariableDeclaration",[112,78],M,[V,X],2),t("NoSpaceBeforeOpenParenInFuncCall",M,20,[V,N,w],8),t("SpaceBeforeBinaryKeywordOperator",M,oe,[V,f],2),t("SpaceAfterBinaryKeywordOperator",oe,M,[V,f],2),t("SpaceAfterVoidOperator",107,M,[V,te],2),t("SpaceBetweenAsyncAndOpenParen",122,20,[G,V],2),t("SpaceBetweenAsyncAndFunctionKeyword",122,91,[V],2),t("NoSpaceBetweenTagAndTemplateString",[73,21],[14,15],[V],8),t("SpaceBeforeJsxAttribute",M,73,[H,V],2),t("SpaceBeforeSlashInJsxOpeningElement",M,42,[j,V],2),t("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",42,30,[j,V],8),t("NoSpaceBeforeEqualInJsxAttribute",M,60,[K,V],8),t("NoSpaceAfterEqualInJsxAttribute",60,M,[K,V],8),t("NoSpaceAfterModuleImport",[131,135],20,[V],8),t("SpaceAfterCertainTypeScriptKeywords",[119,77,126,81,85,86,87,127,110,93,111,131,132,114,116,115,134,138,117,141,145,130,128],M,[V],2),t("SpaceBeforeCertainTypeScriptKeywords",M,[87,110,145],[V],2),t("SpaceAfterModuleName",10,18,[Y],2),t("SpaceBeforeArrow",M,37,[V],2),t("SpaceAfterArrow",37,M,[V],2),t("NoSpaceAfterEllipsis",25,73,[V],8),t("NoSpaceAfterOptionalParameters",56,[21,27],[V,g],8),t("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[V,Q],8),t("NoSpaceBeforeOpenAngularBracket",se,28,[V,ee],8),t("NoSpaceBetweenCloseParenAndAngularBracket",21,28,[V,ee],8),t("NoSpaceAfterOpenAngularBracket",28,M,[V,ee],8),t("NoSpaceBeforeCloseAngularBracket",M,30,[V,ee],8),t("NoSpaceAfterCloseAngularBracket",30,[20,22,30,27],[V,ee,C],8),t("SpaceBeforeAt",[21,73],58,[V],2),t("NoSpaceAfterAt",58,M,[V],8),t("SpaceAfterDecorator",M,[119,73,86,81,77,117,116,114,115,127,138,22,40],[q],2),t("NoSpaceBeforeNonNullAssertionOperator",M,52,[V,ae],8),t("NoSpaceAfterNewKeywordOnConstructorSignature",96,20,[V,Z],8),t("SpaceLessThanAndNonJSXTypeAnnotation",28,28,[V],2)],me=[t("SpaceAfterConstructor",125,20,[s("insertSpaceAfterConstructor"),V],2),t("NoSpaceAfterConstructor",125,20,[c("insertSpaceAfterConstructor"),V],8),t("SpaceAfterComma",27,M,[s("insertSpaceAfterCommaDelimiter"),V,B,P],2),t("NoSpaceAfterComma",27,M,[c("insertSpaceAfterCommaDelimiter"),V,B],8),t("SpaceAfterAnonymousFunctionKeyword",[91,40],20,[s("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),x],2),t("NoSpaceAfterAnonymousFunctionKeyword",[91,40],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),x],8),t("SpaceAfterKeywordInControl",$,20,[s("insertSpaceAfterKeywordsInControlFlowStatements"),O],2),t("NoSpaceAfterKeywordInControl",$,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),O],8),t("SpaceAfterOpenParen",20,M,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],2),t("SpaceBeforeCloseParen",M,21,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],2),t("SpaceBetweenOpenParens",20,20,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],2),t("NoSpaceBetweenParens",20,21,[V],8),t("NoSpaceAfterOpenParen",20,M,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],8),t("NoSpaceBeforeCloseParen",M,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],8),t("SpaceAfterOpenBracket",22,M,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],2),t("SpaceBeforeCloseBracket",M,23,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],2),t("NoSpaceBetweenBrackets",22,23,[V],8),t("NoSpaceAfterOpenBracket",22,M,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],8),t("NoSpaceBeforeCloseBracket",M,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],8),t("SpaceAfterOpenBrace",18,M,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],2),t("SpaceBeforeCloseBrace",M,19,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],2),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,k],8),t("NoSpaceAfterOpenBrace",18,M,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],8),t("NoSpaceBeforeCloseBrace",M,19,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],8),t("SpaceAfterTemplateHeadAndMiddle",[15,16],M,[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],2),t("SpaceBeforeTemplateMiddleAndTail",M,[16,17],[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],2),t("NoSpaceAfterTemplateHeadAndMiddle",[15,16],M,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],8),t("NoSpaceBeforeTemplateMiddleAndTail",M,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],8),t("SpaceAfterOpenBraceInJsxExpression",18,M,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,U],2),t("SpaceBeforeCloseBraceInJsxExpression",M,19,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,U],2),t("NoSpaceAfterOpenBraceInJsxExpression",18,M,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,U],8),t("NoSpaceBeforeCloseBraceInJsxExpression",M,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,U],8),t("SpaceAfterSemicolonInFor",26,M,[s("insertSpaceAfterSemicolonInForStatements"),V,m],2),t("NoSpaceAfterSemicolonInFor",26,M,[c("insertSpaceAfterSemicolonInForStatements"),V,m],8),t("SpaceBeforeBinaryOperator",M,ie,[s("insertSpaceBeforeAndAfterBinaryOperators"),V,f],2),t("SpaceAfterBinaryOperator",ie,M,[s("insertSpaceBeforeAndAfterBinaryOperators"),V,f],2),t("NoSpaceBeforeBinaryOperator",M,ie,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,f],8),t("NoSpaceAfterBinaryOperator",ie,M,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,f],8),t("SpaceBeforeOpenParenInFuncDecl",M,20,[s("insertSpaceBeforeFunctionParenthesis"),V,x],2),t("NoSpaceBeforeOpenParenInFuncDecl",M,20,[c("insertSpaceBeforeFunctionParenthesis"),V,x],8),t("NewLineBeforeOpenBraceInControl",de,18,[s("placeOpenBraceOnNewLineForControlBlocks"),O,E],4,1),t("NewLineBeforeOpenBraceInFunction",le,18,[s("placeOpenBraceOnNewLineForFunctions"),x,E],4,1),t("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ce,18,[s("placeOpenBraceOnNewLineForFunctions"),R,E],4,1),t("SpaceAfterTypeAssertion",30,M,[s("insertSpaceAfterTypeAssertion"),V,ne],2),t("NoSpaceAfterTypeAssertion",30,M,[c("insertSpaceAfterTypeAssertion"),V,ne],8),t("SpaceBeforeTypeAnnotation",M,57,[s("insertSpaceBeforeTypeAnnotation"),V,y],2),t("NoSpaceBeforeTypeAnnotation",M,57,[c("insertSpaceBeforeTypeAnnotation"),V,y],8)],pe=[t("NoSpaceBeforeSemicolon",M,26,[V],8),t("SpaceBeforeOpenBraceInControl",de,18,[d("placeOpenBraceOnNewLineForControlBlocks"),O,J,h],2,1),t("SpaceBeforeOpenBraceInFunction",le,18,[d("placeOpenBraceOnNewLineForFunctions"),x,L,J,h],2,1),t("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ce,18,[d("placeOpenBraceOnNewLineForFunctions"),R,J,h],2,1),t("NoSpaceBeforeComma",M,27,[V],8),t("NoSpaceBeforeOpenBracket",A(122,75),22,[V],8),t("NoSpaceAfterCloseBracket",23,M,[V,W],8),t("SpaceAfterSemicolon",26,M,[V],2),t("SpaceBetweenForAndAwaitKeyword",90,123,[V],2),t("SpaceBetweenStatements",[21,83,84,75],M,[V,B,p],2),t("SpaceAfterTryFinally",[104,89],18,[V],2)];return o(ue,me,pe)}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t;function r(n,t){return e.Debug.assert(n<=148&&t<=148,"Must compute formatting context from tokens"),n*s+t}n.getFormatContext=function(a){return{options:a,getRule:(void 0===t&&(i=n.getAllRules(),o=function(e){for(var n=new Array(s*s),t=new Array(n.length),a=0,i=e;a<i.length;a++)for(var o=i[a],c=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,d=0,u=o.leftTokenRange.tokens;d<u.length;d++)for(var m=u[d],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var g=f[p],_=r(m,g),y=n[_];void 0===y&&(y=n[_]=[]),l(y,o.rule,c,t,_)}return n}(i),t=function(n){var t=o[r(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];return t&&e.find(t,function(t){return e.every(t.context,function(e){return e(n)})})}),t)};var i,o};var a,i=5,o=31,s=149;function l(t,r,s,l,c){var d,u,m,p=1===r.action?s?a.IgnoreRulesSpecific:a.IgnoreRulesAny:r.context!==n.anyContext?s?a.ContextRulesSpecific:a.ContextRulesAny:s?a.NoContextRulesSpecific:a.NoContextRulesAny,f=l[c]||0;t.splice(function(e,n){for(var t=0,r=0;r<=n;r+=i)t+=e&o,e>>=i;return t}(f,p),0,r),l[c]=(m=1+((d=f)>>(u=p)&o),e.Debug.assert((m&o)===m,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),d&~(o<<u)|m<<u)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*i]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*i]="ContextRulesSpecific",e[e.ContextRulesAny=3*i]="ContextRulesAny",e[e.NoContextRulesSpecific=4*i]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*i]="NoContextRulesAny"}(a||(a={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t,r,a,i,o;function s(n,t,r){var a=e.findPrecedingToken(n,r);return a&&a.kind===t&&n===a.getEnd()?a:void 0}function l(e){for(var n=e;n&&n.parent&&n.parent.end===e.end&&!c(n.parent,n);)n=n.parent;return n}function c(n,t){switch(n.kind){case 241:case 242:return e.rangeContainsRange(n.members,t);case 245:var r=n.body;return!!r&&246===r.kind&&e.rangeContainsRange(r.statements,t);case 285:case 219:case 246:return e.rangeContainsRange(n.statements,t);case 275:return e.rangeContainsRange(n.block.statements,t)}return!1}function d(n,t,r,a){return n?u({pos:e.getLineStartPositionForPosition(n.getStart(t),t),end:n.end},t,r,a):[]}function u(t,r,a,i){var o=function(n,t){return function r(a){var i=e.forEachChild(a,function(r){return e.startEndContainsRange(r.getStart(t),r.end,n)&&r});if(i){var o=r(i);if(o)return o}return a}(t)}(t,r);return n.getFormattingScanner(r.text,r.languageVariant,function(n,t,r){var a=n.getStart(r);if(a===t.pos&&n.end===t.end)return a;var i=e.findPrecedingToken(t.pos,r);return i?i.end>=t.pos?n.pos:i.end:n.pos}(o,t,r),t.end,function(s){return m(t,o,n.SmartIndenter.getIndentationForNode(o,t,r,a.options),function(e,t,r){for(var a,i=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&o!==i)break;if(n.SmartIndenter.shouldIndentChildNode(t,e,a,r))return t.indentSize;i=o,a=e,e=e.parent}return 0}(o,a.options,r),s,a,i,function(n,t){if(!n.length)return i;var r=n.filter(function(n){return e.rangeOverlapsWithStartEnd(t,n.start,n.start+n.length)}).sort(function(e,n){return e.start-n.start});if(!r.length)return i;var a=0;return function(n){for(;;){if(a>=r.length)return!1;var t=r[a];if(n.end<=t.start)return!1;if(e.startEndOverlapsWithStartEnd(n.pos,n.end,t.start,t.start+t.length))return!0;a++}};function i(){return!1}}(r.parseDiagnostics,t),r)})}function m(t,r,a,i,o,s,l,c,d){var u,m,f,g,_=s.options,y=s.getRule,v=new n.FormattingContext(d,l,_),h=-1,b=[];if(o.advance(),o.isOnToken()){var E=d.getLineAndCharacterOfPosition(r.getStart(d)).line,T=E;r.decorators&&(T=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,d)).line),function r(a,i,s,l,m,p){if(!e.rangeOverlapsWithStartEnd(t,a.getStart(d),a.getEnd()))return;var f=L(a,s,m,p);var y=i;e.forEachChild(a,function(e){b(e,-1,a,f,s,l,!1)},function(t){!function(t,r,i,s){e.Debug.assert(e.isNodeArray(t));var l=function(e,n){switch(e.kind){case 158:case 240:case 197:case 157:case 156:case 198:if(e.typeParameters===n)return 28;if(e.parameters===n)return 20;break;case 192:case 193:if(e.typeArguments===n)return 28;if(e.arguments===n)return 20;break;case 165:if(e.typeArguments===n)return 28;break;case 169:return 18}return 0}(r,t),c=s,u=i;if(0!==l)for(;o.isOnToken();){var m=o.readTokenInfo(r);if(m.token.end>t.pos)break;if(m.token.kind===l){u=d.getLineAndCharacterOfPosition(m.token.pos).line,E(m,r,s,r);var p=void 0;if(-1!==h)p=h;else{var f=e.getLineStartPositionForPosition(m.token.pos,d);p=n.SmartIndenter.findFirstNonWhitespaceColumn(f,m.token.pos,d,_)}c=L(r,i,p,_.indentSize)}else E(m,r,s,r)}for(var g=-1,y=0;y<t.length;y++){var v=t[y];g=b(v,g,a,c,u,u,!0,0===y)}var T=function(e){switch(e){case 20:return 21;case 28:return 30;case 18:return 19}return 0}(l);if(0!==T&&o.isOnToken()){var m=o.readTokenInfo(r);27===m.token.kind&&e.isCallLikeExpression(r)&&(o.advance(),m=o.isOnToken()?o.readTokenInfo(r):void 0),m&&m.token.kind===T&&e.rangeContainsRange(r,m.token)&&E(m,r,c,r,!0)}}(t,a,s,f)});for(;o.isOnToken();){var v=o.readTokenInfo(a);if(v.token.end>a.end)break;E(v,a,f,a)}function b(i,s,l,c,u,m,p,f){var v=i.getStart(d),b=d.getLineAndCharacterOfPosition(v).line,T=b;i.decorators&&(T=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(i,d)).line);var S=-1;if(p&&e.rangeContainsRange(t,l)&&-1!==(S=function(t,r,a,i,o){if(e.rangeOverlapsWithStartEnd(i,t,r)||e.rangeContainsStartEnd(i,t,r)){if(-1!==o)return o}else{var s=d.getLineAndCharacterOfPosition(t).line,l=e.getLineStartPositionForPosition(t,d),c=n.SmartIndenter.findFirstNonWhitespaceColumn(l,t,d,_);if(s!==a||t===c){var u=n.SmartIndenter.getBaseIndentation(_);return u>c?u:c}}return-1}(v,i.end,u,t,s))&&(s=S),!e.rangeOverlapsWithStartEnd(t,i.pos,i.end))return i.end<t.pos&&o.skipToEndOf(i),s;if(0===i.getFullWidth())return s;for(;o.isOnToken();){var L=o.readTokenInfo(a);if(L.token.end>v)break;E(L,a,c,a)}if(!o.isOnToken())return s;if(e.isToken(i)&&11!==i.kind){var L=o.readTokenInfo(i);return e.Debug.assert(L.token.end===i.end,"Token end is child end"),E(L,a,c,i),s}var A=153===i.kind?b:m,x=function(e,t,r,a,i,o){var s=n.SmartIndenter.shouldIndentChildNode(_,e)?_.indentSize:0;return o===t?{indentation:t===g?h:i.getIndentation(),delta:Math.min(_.indentSize,i.getDelta(e)+s)}:-1===r?20===e.kind&&t===g?{indentation:h,delta:i.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,t,d)?{indentation:i.getIndentation(),delta:s}:n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(a,e,t,d)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:r,delta:s}}(i,b,S,a,c,A);if(r(i,y,b,T,x.indentation,x.delta),11===i.kind){var C={pos:i.getStart(),end:i.getEnd()};R(C,x.indentation,!0,!1)}return y=a,f&&188===l.kind&&-1===s&&(s=x.indentation),s}function E(n,r,a,i,s){e.Debug.assert(e.rangeContainsRange(r,n.token));var l=o.lastTrailingTriviaWasNewLine(),m=!1;n.leadingTrivia&&x(n.leadingTrivia,r,y,a);var p=0,f=e.rangeContainsRange(t,n.token),_=d.getLineAndCharacterOfPosition(n.token.pos);if(f){var v=c(n.token),b=u;if(p=C(n.token,_,r,y,a),!v)if(0===p){var E=b&&d.getLineAndCharacterOfPosition(b.end).line;m=l&&_.line!==E}else m=1===p}if(n.trailingTrivia&&x(n.trailingTrivia,r,y,a),m){var T=f&&!c(n.token)?a.getIndentationForToken(_.line,n.token.kind,i,!!s):-1,S=!0;if(n.leadingTrivia){var L=a.getIndentationForComment(n.token.kind,T,i);S=A(n.leadingTrivia,L,S,function(e){return D(e.pos,L,!1)})}-1!==T&&S&&(D(n.token.pos,T,1===p),g=_.line,h=T)}o.advance(),y=r}}(r,r,E,T,a,i)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(A(S,a,!1,function(e){return C(e,d.getLineAndCharacterOfPosition(e.pos),r,r,void 0)}),function(){var e=u?u.end:t.pos,n=d.getLineAndCharacterOfPosition(e).line,r=d.getLineAndCharacterOfPosition(t.end).line;M(n,r+1,u)}())}return b;function L(t,r,a,i){return{getIndentationForComment:function(e,n,t){switch(e){case 19:case 23:case 21:return a+o(t)}return-1!==n?n:a},getIndentationForToken:function(n,i,s,l){return!l&&function(n,a,i){switch(a){case 18:case 19:case 21:case 84:case 108:case 58:return!1;case 42:case 30:switch(i.kind){case 263:case 264:case 262:return!1}break;case 22:case 23:if(182!==i.kind)return!1}return r!==n&&!(t.decorators&&a===function(n){if(n.modifiers&&n.modifiers.length)return n.modifiers[0].kind;switch(n.kind){case 241:return 77;case 242:return 111;case 240:return 91;case 244:return 244;case 159:return 127;case 160:return 138;case 157:if(n.asteriskToken)return 40;case 155:case 152:var t=e.getNameOfDeclaration(n);if(t)return t.kind}}(t))}(n,i,s)?a+o(s):a},getIndentation:function(){return a},getDelta:o,recomputeIndentation:function(e){t.parent&&n.SmartIndenter.shouldIndentChildNode(_,t.parent,t,d)&&(a+=e?_.indentSize:-_.indentSize,i=n.SmartIndenter.shouldIndentChildNode(_,t)?_.indentSize:0)}};function o(e){return n.SmartIndenter.nodeWillIndentChild(_,t,e,d,!0)?i:0}}function A(n,r,a,i){for(var o=0,s=n;o<s.length;o++){var l=s[o],c=e.rangeContainsRange(t,l);switch(l.kind){case 3:c&&R(l,r,!a),a=!1;break;case 2:a&&c&&i(l),a=!1;break;case 4:a=!0}}return a}function x(n,r,a,i){for(var o=0,s=n;o<s.length;o++){var l=s[o];if(e.isComment(l.kind)&&e.rangeContainsRange(t,l))C(l,d.getLineAndCharacterOfPosition(l.pos),r,a,i)}}function C(n,r,a,i,o){var s=0;c(n)||(u?s=function(n,t,r,a,i,o,s,l){v.updateContext(a,o,n,r,s);var c,u=y(v),m=0;if(u){switch(m=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 O(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 k(n.end,r.pos-n.end,_.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!==d.text.charCodeAt(n.end))return k(n.end,r.pos-n.end," "),i?2:0}return 0}(u,a,i,n,t)){case 2:r.getStart(d)===n.pos&&l.recomputeIndentation(!1);break;case 1:r.getStart(d)===n.pos&&l.recomputeIndentation(!0);break;default:e.Debug.assert(0===m)}c=!(8&u.action)&&1!==u.flags}else c=!0;t!==i&&c&&M(i,t,a);return m}(n,r.line,a,u,f,m,i,o):M(d.getLineAndCharacterOfPosition(t.pos).line,r.line));return u=n,m=a,f=r.line,s}function D(n,t,r){var a=p(t,_);if(r)k(n,0,a);else{var i=d.getLineAndCharacterOfPosition(n),o=e.getStartPositionOfLine(i.line,d);(t!==function(e,n){for(var t=0,r=0;r<n;r++)9===d.text.charCodeAt(e+r)?t+=_.tabSize-t%_.tabSize:t++;return t}(o,i.character)||function(e,n){return e!==d.text.substr(n,e.length)}(a,o))&&k(o,i.character,a)}}function R(t,r,a,i){void 0===i&&(i=!0);var o=d.getLineAndCharacterOfPosition(t.pos).line,s=d.getLineAndCharacterOfPosition(t.end).line;if(o!==s){for(var l=[],c=t.pos,u=o;u<s;u++){var m=e.getEndLinePosition(u,d);l.push({pos:c,end:m}),c=e.getStartPositionOfLine(u+1,d)}if(i&&l.push({pos:c,end:t.end}),0!==l.length){var f=e.getStartPositionOfLine(o,d),g=n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,l[0].pos,d,_);if(r!==g.column){var y=0;a&&(y=1,o++);for(var v=r-g.column,h=y;h<l.length;h++,o++){var b=e.getStartPositionOfLine(o,d),E=0===h?g:n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(l[h].pos,l[h].end,d,_),T=E.column+v;if(T>0){var S=p(T,_);k(b,E.character,S)}else O(b,E.character)}}}}else a||D(t.pos,r,!1)}function M(n,t,r){for(var a=n;a<t;a++){var i=e.getStartPositionOfLine(a,d),o=e.getEndLinePosition(a,d);if(!(r&&(e.isComment(r.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o)){var s=I(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(d.text.charCodeAt(s-1))),O(s,o+1-s))}}}function I(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(d.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function O(n,t){t&&b.push(e.createTextChangeFromStartLength(n,t,""))}function k(n,t,r){(t||r)&&b.push(e.createTextChangeFromStartLength(n,t,r))}}function p(n,t){if((!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},i=o=void 0),t.convertTabsToSpaces){var r=void 0,s=Math.floor(n/t.indentSize),l=n%t.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",t.indentSize*s),o[s]=r):r=o[s],l?r+e.repeatString(" ",l):r}var c=Math.floor(n/t.tabSize),d=n-c*t.tabSize,u=void 0;return i||(i=[]),void 0===i[c]?i[c]=u=e.repeatString("\t",c):u=i[c],d?u+e.repeatString(" ",d):u}!function(e){e[e.Unknown=-1]="Unknown"}(t||(t={})),n.formatOnEnter=function(n,t,r){var a=t.getLineAndCharacterOfPosition(n).line;if(0===a)return[];for(var i=e.getEndLinePosition(a,t);e.isWhiteSpaceSingleLine(t.text.charCodeAt(i));)i--;return e.isLineBreak(t.text.charCodeAt(i))&&i--,u({pos:e.getStartPositionOfLine(a-1,t),end:i+1},t,r,2)},n.formatOnSemicolon=function(e,n,t){return d(l(s(e,26,n)),n,t,3)},n.formatOnOpeningCurly=function(n,t,r){var a=s(n,18,t);if(!a)return[];var i=l(a.parent);return u({pos:e.getLineStartPositionForPosition(i.getStart(t),t),end:n},t,r,4)},n.formatOnClosingCurly=function(e,n,t){return d(l(s(e,19,n)),n,t,5)},n.formatDocument=function(e,n){return u({pos:0,end:e.text.length},e,n,0)},n.formatSelection=function(n,t,r,a){return u({pos:e.getLineStartPositionForPosition(n,r),end:t},r,a,1)},n.formatNodeGivenIndentation=function(e,t,r,a,i,o){var s={pos:0,end:t.text.length};return n.getFormattingScanner(t.text,r,s.pos,s.end,function(n){return m(s,e,a,i,n,o,1,function(e){return!1},t)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),n.getRangeOfEnclosingComment=function(n,t,r,a){void 0===a&&(a=e.getTokenAtPosition(n,t));var i=e.findAncestor(a,e.isJSDoc);if(i&&(a=i.parent),!(a.getStart(n)<=t&&t<a.getEnd())){var o=(r=null===r?void 0:void 0===r?e.findPrecedingToken(t,n):r)&&e.getTrailingCommentRanges(n.text,r.end),s=e.getLeadingCommentRangesOfNode(a,n),l=e.concatenate(o,s);return l&&e.find(l,function(r){return e.rangeContainsPositionExclusive(r,t)||t===r.end&&(2===r.kind||t===n.getFullWidth())})}},n.getIndentationString=p}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){!function(t){var r,a;function i(e){return e.baseIndentSize||0}function o(e,n,t,r,a,o,c){for(var d=e.parent;d;){var p=!0;if(t){var f=e.getStart(a);p=f<t.pos||f>t.end}var g=s(d,e,a),y=g.line===n.line||m(d,e,n.line,a);if(p){var v=_(e,a,c,!y);if(-1!==v)return v+r;if(-1!==(v=l(e,d,n,y,a,c)))return v+r}T(c,d,e,a,o)&&!y&&(r+=c.indentSize);var h=u(d,e,n.line,a);d=(e=d).parent,n=h?a.getLineAndCharacterOfPosition(e.getStart(a)):g}return r+i(c)}function s(e,n,t){var r=p(n,t),a=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(a)}function l(n,t,r,a,i,o){return(e.isDeclaration(n)||e.isStatementButNotDeclaration(n))&&(285===t.kind||!a)?v(r,i,o):-1}function c(n,t,r,a){var i=e.findNextToken(n,t,a);return i?18===i.kind?1:19===i.kind&&r===d(i,a).line?2:0:0}function d(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function u(n,t,r,a){if(!e.isCallExpression(n)||!e.contains(n.arguments,t))return!1;var i=n.expression.getEnd();return e.getLineAndCharacterOfPosition(a,i).line===r}function m(n,t,r,a){if(223===n.kind&&n.elseStatement===t){var i=e.findChildOfKind(n,84,a);return e.Debug.assert(void 0!==i),d(i,a).line===r}return!1}function p(e,n){return e.parent&&f(e.getStart(n),e.getEnd(),e.parent,n)}function f(n,t,r,a){switch(r.kind){case 165:return i(r.typeArguments);case 189:return i(r.properties);case 188:return i(r.elements);case 169:return i(r.members);case 240:case 197:case 198:case 157:case 156:case 161:case 158:case 167:case 162:return i(r.typeParameters)||i(r.parameters);case 241:case 210:case 242:case 243:case 311:return i(r.typeParameters);case 193:case 192:return i(r.typeArguments)||i(r.arguments);case 239:return i(r.declarations);case 253:case 257:return i(r.elements);case 185:case 186:return i(r.elements)}function i(i){return i&&e.rangeContainsStartEnd(function(e,n,t){for(var r=e.getChildren(t),a=1;a<r.length-1;a++)if(r[a].pos===n.pos&&r[a].end===n.end)return{pos:r[a-1].end,end:r[a+1].getStart(t)};return n}(r,i,a),n,t)?i:void 0}}function g(e,n,t){return e?v(n.getLineAndCharacterOfPosition(e.pos),n,t):-1}function _(e,n,t,r){if(e.parent&&239===e.parent.kind)return-1;var a=p(e,n);if(a){var i=a.indexOf(e);if(-1!==i){var o=y(a,i,n,t);if(-1!==o)return o}return g(a,n,t)+(r?t.indentSize:0)}return-1}function y(n,t,r,a){e.Debug.assert(t>=0&&t<n.length);for(var i=d(n[t],r),o=t-1;o>=0;o--)if(27!==n[o].kind){if(r.getLineAndCharacterOfPosition(n[o].end).line!==i.line)return v(i,r,a);i=d(n[o],r)}return-1}function v(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,n,t)}function h(n,t,r,a){for(var i=0,o=0,s=n;s<t;s++){var l=r.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(l))break;9===l?o+=a.tabSize+o%a.tabSize:o++,i++}return{column:o,character:i}}function b(e,n,t,r){return h(e,n,t,r).column}function E(n,t,r,a,i){var o=r?r.kind:0;switch(t.kind){case 222:case 241:case 210:case 242:case 244:case 243:case 188:case 219:case 246:case 189:case 169:case 182:case 171:case 247:case 273:case 272:case 196:case 190:case 192:case 193:case 220:case 255:case 231:case 206:case 186:case 185:case 263:case 266:case 262:case 271:case 156:case 161:case 162:case 152:case 166:case 167:case 178:case 194:case 202:case 257:case 253:case 258:case 254:case 155:return!0;case 238:case 276:return!(!n.indentMultiLineObjectLiteralBeginningOnBlankLine&&a&&189===o)||function(n,t){var r=e.skipTrivia(n.text,t.pos),a=n.getLineAndCharacterOfPosition(r).line,i=n.getLineAndCharacterOfPosition(t.end).line;return a===i}(a,r);case 224:case 225:case 227:case 228:case 226:case 223:case 240:case 197:case 157:case 198:case 158:case 159:case 160:return 219!==o;case 256:return 257!==o;case 250:return 251!==o||!!r.namedBindings&&253!==r.namedBindings.kind;case 261:return 264!==o;case 265:return 267!==o;case 175:case 174:if(169===o)return!1}return i}function T(e,n,t,r,a){return void 0===a&&(a=!1),E(e,n,t,r,!1)&&!(a&&t&&function(e,n){switch(e){case 231:case 235:case 229:case 230:return 219!==n.kind;default:return!1}}(t.kind,n))}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.getIndentation=function(t,r,a,s){if(void 0===s&&(s=!1),t>r.text.length)return i(a);if(a.indentStyle===e.IndentStyle.None)return 0;var l=e.findPrecedingToken(t,r,void 0,!0),u=n.getRangeOfEnclosingComment(r,t,l||null);if(u&&3===u.kind)return function(n,t,r,a){var i=e.getLineAndCharacterOfPosition(n,t).line-1,o=e.getLineAndCharacterOfPosition(n,a.pos).line;if(e.Debug.assert(o>=0),i<=o)return b(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(i,n),l=h(s,t,n,r),c=l.column,d=l.character;return 0===c?c:42===n.text.charCodeAt(s+d)?c-1:c}(r,t,a,u);if(!l)return i(a);if(e.isStringOrRegularExpressionOrTemplateLiteral(l.kind)&&l.getStart(r)<=t&&t<l.end)return 0;var m=r.getLineAndCharacterOfPosition(t).line;if(a.indentStyle===e.IndentStyle.Block)return function(n,t,r){for(var a=t;a>0;){var i=n.text.charCodeAt(a);if(!e.isWhiteSpaceLike(i))break;a--}return b(e.getLineStartPositionForPosition(a,n),a,n,r)}(r,t,a);if(27===l.kind&&205!==l.parent.kind){var p=function(n,t,r){var a=e.findListItemInfo(n);return a&&a.listItemIndex>0?y(a.list.getChildren(),a.listItemIndex-1,t,r):-1}(l,r,a);if(-1!==p)return p}var v=function(e,n,t){return n&&f(e,e,n,t)}(t,l.parent,r);return v&&!e.rangeContainsRange(v,l)?g(v,r,a)+a.indentSize:function(n,t,r,a,s,l){for(var u,m=r;m;){if(e.positionBelongsToNode(m,t,n)&&T(l,m,u,n,!0)){var p=d(m,n),f=c(r,m,a,n),g=0!==f?s&&2===f?l.indentSize:0:a!==p.line?l.indentSize:0;return o(m,p,void 0,g,n,!0,l)}var y=_(m,n,l,!0);if(-1!==y)return y;u=m,m=m.parent}return i(l)}(r,t,l,m,s,a)},t.getIndentationForNode=function(e,n,t,r){return o(e,t.getLineAndCharacterOfPosition(e.getStart(t)),n,0,t,!1,r)},t.getBaseIndentation=i,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(a||(a={})),t.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,t.childStartsOnTheSameLineWithElseInIfStatement=m,t.argumentStartsOnSameLineAsPreviousArgument=function(n,t,r,a){if(e.isCallOrNewExpression(n)){if(!n.arguments)return!1;var i=e.Debug.assertDefined(e.find(n.arguments,function(e){return e.pos===t.pos})),o=n.arguments.indexOf(i);if(0===o)return!1;var s=n.arguments[o-1];if(r===e.getLineAndCharacterOfPosition(a,s.getEnd()).line)return!0}return!1},t.getContainingList=p,t.findFirstNonWhitespaceCharacterAndColumn=h,t.findFirstNonWhitespaceColumn=b,t.nodeWillIndentChild=E,t.shouldIndentChildNode=T}(n.SmartIndenter||(n.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){function t(n){var t=n.__pos;return e.Debug.assert("number"==typeof t),t}function r(n,t){e.Debug.assert("number"==typeof t),n.__pos=t}function a(n){var t=n.__end;return e.Debug.assert("number"==typeof t),t}function i(n,t){e.Debug.assert("number"==typeof t),n.__end=t}var l,c;function d(n,t){return e.skipTrivia(n,t,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll"}(l=n.LeadingTriviaOption||(n.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(c=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));var u,m={leadingTriviaOption:l.Exclude,trailingTriviaOption:c.Exclude};function p(e,n,t,r){return{pos:f(e,n,r),end:g(e,t,r)}}function f(n,t,r){var a=r.leadingTriviaOption;if(a===l.Exclude)return t.getStart(n);var i=t.getFullStart(),o=t.getStart(n);if(i===o)return o;var s=e.getLineStartPositionForPosition(i,n);if(e.getLineStartPositionForPosition(o,n)===s)return a===l.IncludeAll?i:o;var c=i>0?1:0,u=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,s)+c,n);return u=d(n.text,u),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,u),n)}function g(n,t,r){var a=t.end,i=r.trailingTriviaOption;if(i===c.Exclude||e.isExpression(t)&&i!==c.Include)return a;var o=e.skipTrivia(n.text,a,!0);return o===a||i!==c.Include&&!e.isLineBreak(n.text.charCodeAt(o-1))?a:o}function _(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.kind&&189===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(u||(u={})),n.isThisTypeAnnotatable=function(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)};var y,v,h=function(){function n(n,t){this.newLineCharacter=n,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.deleteRange=function(e,n){this.changes.push({kind:u.Remove,sourceFile:e,range:n})},n.prototype.delete=function(e,n){this.deletedNodes.push({sourceFile:e,node:n})},n.prototype.deleteModifier=function(n,t){this.deleteRange(n,{pos:t.getStart(n),end:e.skipTrivia(n.text,t.end,!0)})},n.prototype.deleteNodeRange=function(e,n,t,r){void 0===r&&(r={leadingTriviaOption:l.IncludeAll});var a=f(e,n,r),i=g(e,t,r);this.deleteRange(e,{pos:a,end:i})},n.prototype.deleteNodeRangeExcludingEnd=function(e,n,t,r){void 0===r&&(r={leadingTriviaOption:l.IncludeAll});var a=f(e,n,r),i=void 0===t?e.text.length:f(e,t,r);this.deleteRange(e,{pos:a,end:i})},n.prototype.replaceRange=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:u.ReplaceWithSingleNode,sourceFile:e,range:n,options:r,node:t})},n.prototype.replaceNode=function(e,n,t,r){void 0===r&&(r=m),this.replaceRange(e,p(e,n,n,r),t,r)},n.prototype.replaceNodeRange=function(e,n,t,r,a){void 0===a&&(a=m),this.replaceRange(e,p(e,n,t,a),r,a)},n.prototype.replaceRangeWithNodes=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:u.ReplaceWithMultipleNodes,sourceFile:e,range:n,options:r,nodes:t})},n.prototype.replaceNodeWithNodes=function(e,n,t,r){void 0===r&&(r=m),this.replaceRangeWithNodes(e,p(e,n,n,r),t,r)},n.prototype.replaceNodeWithText=function(e,n,t){this.replaceRangeWithText(e,p(e,n,n,m),t)},n.prototype.replaceNodeRangeWithNodes=function(e,n,t,r,a){void 0===a&&(a=m),this.replaceRangeWithNodes(e,p(e,n,t,a),r,a)},n.prototype.nextCommaToken=function(n,t){var r=e.findNextToken(t,t.parent,n);return r&&27===r.kind?r:void 0},n.prototype.replacePropertyAssignment=function(e,n,t){var r=this.nextCommaToken(e,n)?"":","+this.newLineCharacter;this.replaceNode(e,n,t,{suffix:r})},n.prototype.insertNodeAt=function(n,t,r,a){void 0===a&&(a={}),this.replaceRange(n,e.createRange(t),r,a)},n.prototype.insertNodesAt=function(n,t,r,a){void 0===a&&(a={}),this.replaceRangeWithNodes(n,e.createRange(t),r,a)},n.prototype.insertNodeAtTopOfFile=function(n,t,r){var a=function(n){for(var t,r=0,a=n.statements;r<a.length;r++){var i=a[r];if(!e.isPrologueDirective(i))break;t=i}var o=0,s=n.text;if(t)return o=t.end,p(),o;var l=e.getShebang(s);void 0!==l&&(o=l.length,p());var c=e.getLeadingCommentRanges(s,o);if(!c)return o;c.length&&3===c[0].kind&&e.isPinnedComment(s,c[0].pos)&&(o=c[0].end,p(),c=c.slice(1));for(var d=0,u=c;d<u.length;d++){var m=u[d];if(2!==m.kind||!e.isRecognizedTripleSlashComment(s,m.pos,m.end))break;o=m.end,p()}return o;function p(){if(o<s.length){var n=s.charCodeAt(o);e.isLineBreak(n)&&++o<s.length&&13===n&&10===s.charCodeAt(o)&&o++}}}(n);this.insertNodeAt(n,a,t,{prefix:0===a?void 0:this.newLineCharacter,suffix:(e.isLineBreak(n.text.charCodeAt(a))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")})},n.prototype.insertNodeBefore=function(e,n,t,r){void 0===r&&(r=!1),this.insertNodeAt(e,f(e,n,{}),t,this.getOptionsForInsertNodeBefore(n,r))},n.prototype.insertModifierBefore=function(n,t,r){var a=r.getStart(n);this.insertNodeAt(n,a,e.createToken(t),{suffix:" "})},n.prototype.insertLastModifierBefore=function(n,t,r){if(r.modifiers){var a=r.modifiers.end;this.insertNodeAt(n,a,e.createToken(t),{prefix:" "})}else this.insertModifierBefore(n,t,r)},n.prototype.insertCommentBeforeLine=function(n,t,r,a){var i=e.getStartPositionOfLine(t,n),o=e.getFirstNonSpaceCharacterPosition(n.text,i),s=x(n,o),l=e.getTouchingToken(n,s?o:r),c=n.text.slice(i,o),d=(s?"":this.newLineCharacter)+"//"+a+this.newLineCharacter+c;this.insertText(n,l.getStart(n),d)},n.prototype.insertJsdocCommentBefore=function(n,t,r){var a=t.getStart(n);if(t.jsDoc)for(var i=0,o=t.jsDoc;i<o.length;i++){var s=o[i];this.deleteRange(n,{pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:g(n,s,{})})}var l=e.getPrecedingNonSpaceCharacterPosition(n.text,a-1),c=n.text.slice(l,a);this.insertNodeAt(n,a,r,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+c})},n.prototype.replaceRangeWithText=function(e,n,t){this.changes.push({kind:u.Text,sourceFile:e,range:n,text:t})},n.prototype.insertText=function(n,t,r){this.replaceRangeWithText(n,e.createRange(t),r)},n.prototype.tryInsertTypeAnnotation=function(n,t,r){var a;if(e.isFunctionLike(t)){if(!(a=e.findChildOfKind(t,21,n))){if(!e.isArrowFunction(t))return;a=e.first(t.parameters)}}else a=238!==t.kind&&t.questionToken?t.questionToken:t.name;this.insertNodeAt(n,a.end,r,{prefix:": "})},n.prototype.tryInsertThisTypeAnnotation=function(n,t,r){var a=e.findChildOfKind(t,20,n).getStart(n)+1,i=t.parameters.length?", ":"";this.insertNodeAt(n,a,r,{prefix:"this: ",suffix:i})},n.prototype.insertTypeParameters=function(n,t,r){var a=(e.findChildOfKind(t,20,n)||e.first(t.parameters)).getStart(n);this.insertNodesAt(n,a,r,{prefix:"<",suffix:">"})},n.prototype.getOptionsForInsertNodeBefore=function(n,t){return e.isStatement(n)||e.isClassElement(n)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?{}:e.isStringLiteral(n)&&e.isImportDeclaration(n.parent)||e.isNamedImports(n)?{suffix:", "}:e.Debug.failBadSyntaxKind(n)},n.prototype.insertNodeAtConstructorStart=function(n,t,r){var a=e.firstOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeBefore(n,a,r):this.replaceConstructorBody(n,t,o([r],t.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(n,t,r){var a=e.lastOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,o(t.body.statements,[r]))},n.prototype.replaceConstructorBody=function(n,t,r){this.replaceNode(n,t.body,e.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(n,t,r){var a=f(n,t.getLastToken(),{});this.insertNodeAt(n,a,r,{prefix:e.isLineBreak(n.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtObjectStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtStartWorker=function(n,t,r){var a=t.getStart(n),i=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,n),a,n,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(n,T(t).pos,r,s({indentation:i},this.getInsertNodeAtStartPrefixSuffix(n,t)))},n.prototype.getInsertNodeAtStartPrefixSuffix=function(n,t){var r=e.isObjectLiteralExpression(t)?",":"";if(0===T(t).length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(t),{node:t,sourceFile:n})){var a=e.positionsAreOnSameLine.apply(void 0,o(E(t,n),[n]));return{prefix:this.newLineCharacter,suffix:r+(a?this.newLineCharacter:"")}}return{prefix:"",suffix:r+this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:r}},n.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))},n.prototype.insertNodeAfter=function(e,n,t){var r=this.insertNodeAfterWorker(e,n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},n.prototype.insertNodeAtEndOfList=function(e,n,t){this.insertNodeAt(e,n.end,t,{prefix:", "})},n.prototype.insertNodesAfter=function(n,t,r){var a=this.insertNodeAfterWorker(n,t,e.first(r));this.insertNodesAt(n,a,r,this.getInsertNodeAfterOptions(n,t))},n.prototype.insertNodeAfterWorker=function(n,t,r){var a,i;return a=t,i=r,((e.isPropertySignature(a)||e.isPropertyDeclaration(a))&&e.isClassOrTypeElement(i)&&150===i.name.kind||e.isStatementButNotDeclaration(a)&&e.isStatementButNotDeclaration(i))&&59!==n.text.charCodeAt(t.end-1)&&this.replaceRange(n,e.createRange(t.end),e.createToken(26)),g(n,t,{})},n.prototype.getInsertNodeAfterOptions=function(n,t){var r=this.getInsertNodeAfterOptionsWorker(t);return s(s({},r),{prefix:t.end===n.end&&e.isStatement(t)?r.prefix?"\n"+r.prefix:"\n":r.prefix})},n.prototype.getInsertNodeAfterOptionsWorker=function(n){switch(n.kind){case 241:case 245:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 238:case 10:case 73:return{prefix:", "};case 276:return{suffix:","+this.newLineCharacter};case 86:return{prefix:" "};case 152:return{};default:return e.Debug.assert(e.isStatement(n)||e.isClassOrTypeElement(n)),{suffix:this.newLineCharacter}}},n.prototype.insertName=function(n,t,r){if(e.Debug.assert(!t.name),198===t.kind){var a=e.findChildOfKind(t,37,n),i=e.findChildOfKind(t,20,n);i?(this.insertNodesAt(n,i.getStart(n),[e.createToken(91),e.createIdentifier(r)],{joiner:" "}),C(this,n,a)):(this.insertText(n,e.first(t.parameters).getStart(n),"function "+r+"("),this.replaceRange(n,a,e.createToken(21))),219!==t.body.kind&&(this.insertNodesAt(n,t.body.getStart(n),[e.createToken(18),e.createToken(98)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,t.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(t,197===t.kind?91:77,n).end;this.insertNodeAt(n,o,e.createIdentifier(r),{prefix:" "})}},n.prototype.insertExportModifier=function(e,n){this.insertText(e,n.getStart(e),"export ")},n.prototype.insertNodeInListAfter=function(n,t,r,a){if(void 0===a&&(a=e.formatting.SmartIndenter.getContainingList(t,n)),a){var i=e.indexOfNode(a,t);if(!(i<0)){var o=t.getEnd();if(i!==a.length-1){var s=e.getTokenAtPosition(n,t.end);if(s&&_(t,s)){var l=e.getLineAndCharacterOfPosition(n,d(n.text,a[i+1].getFullStart())),c=e.getLineAndCharacterOfPosition(n,s.end),u=void 0,m=void 0;c.line===l.line?(m=s.end,u=function(e){for(var n="",t=0;t<e;t++)n+=" ";return n}(l.character-c.character)):m=e.getStartPositionOfLine(l.line,n);var p=""+e.tokenToString(s.kind)+n.text.substring(s.end,a[i+1].getStart(n));this.replaceRange(n,e.createRange(m,a[i+1].getStart(n)),r,{prefix:u,suffix:p})}}else{var f=t.getStart(n),g=e.getLineStartPositionForPosition(f,n),y=void 0,v=!1;if(1===a.length)y=27;else{var h=e.findPrecedingToken(t.pos,n);y=_(t,h)?h.kind:27,v=e.getLineStartPositionForPosition(a[i-1].getStart(n),n)!==g}if(function(n,t){for(var r=t;r<n.length;){var a=n.charCodeAt(r);if(!e.isWhiteSpaceSingleLine(a))return 47===a;r++}return!1}(n.text,t.end)&&(v=!0),v){this.replaceRange(n,e.createRange(o),e.createToken(y));var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,f,n,this.formatContext.options),E=e.skipTrivia(n.text,o,!0,!1);E!==o&&e.isLineBreak(n.text.charCodeAt(E-1))&&E--,this.replaceRange(n,e.createRange(E),r,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(n,e.createRange(o),r,{prefix:e.tokenToString(y)+" "})}}}else e.Debug.fail("node is not a list element")},n.prototype.parenthesizeExpression=function(n,t){this.replaceRange(n,e.rangeOfNode(t),e.createParen(t))},n.prototype.finishClassesWithNodesInsertedAtStart=function(){var n=this;this.classesWithNodesInsertedAtStart.forEach(function(t){var r=t.node,a=t.sourceFile,i=E(r,a),o=i[0],s=i[1];e.positionsAreOnSameLine(o,s,a)&&o!==s-1&&n.deleteRange(a,e.createRange(o,s-1))})},n.prototype.finishDeleteDeclarations=function(){for(var n=this,t=new e.NodeSet,r=function(n,r){a.deletedNodes.some(function(t){return t.sourceFile===n&&e.rangeContainsRangeExclusive(t.node,r)})||(e.isArray(r)?a.deleteRange(n,e.rangeOfTypeParameters(r)):v.deleteDeclaration(a,t,n,r))},a=this,i=0,o=this.deletedNodes;i<o.length;i++){var s=o[i];r(s.sourceFile,s.node)}t.forEach(function(r){var a=r.getSourceFile(),i=e.formatting.SmartIndenter.getContainingList(r,a);if(r===e.last(i)){var o=e.findLastIndex(i,function(e){return!t.has(e)},i.length-2);-1!==o&&n.deleteRange(a,{pos:i[o].end,end:b(a,i[o+1])})}})},n.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var n=y.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(y.newFileChanges(i,o,s,this.newLineCharacter,this.formatContext))}return n},n.prototype.createNewFile=function(e,n,t){this.newFiles.push({oldFile:e,fileName:n,statements:t})},n}();function b(n,t){return e.skipTrivia(n.text,f(n,t,{leadingTriviaOption:l.IncludeAll}),!1,!0)}function E(n,t){return[e.findChildOfKind(n,18,t).end,e.findChildOfKind(n,19,t).end]}function T(n){return e.isObjectLiteralExpression(n)?n.properties:n.members}function S(n,t){for(var r=t.length-1;r>=0;r--){var a=t[r],i=a.span,o=a.newText;n=""+n.substring(0,i.start)+o+n.substring(e.textSpanEnd(i))}return n}function L(n){var r=e.visitEachChild(n,L,e.nullTransformationContext,A,L),i=e.nodeIsSynthesized(r)?r:Object.create(r);return i.pos=t(n),i.end=a(n),i}function A(n,r,i,o,s){var l=e.visitNodes(n,r,i,o,s);if(!l)return l;var c=l===n?e.createNodeArray(l.slice(0)):l;return c.pos=t(n),c.end=a(n),c}function x(n,t){return!(e.isInComment(n,t)||e.isInString(n,t)||e.isInTemplateString(n,t)||e.isInJSXText(n,t))}function C(e,n,t,r){void 0===r&&(r={leadingTriviaOption:l.IncludeAll});var a=f(n,t,r),i=g(n,t,r);e.deleteRange(n,{pos:a,end:i})}function D(n,t,r,a){var i=e.Debug.assertDefined(e.formatting.SmartIndenter.getContainingList(a,r)),o=e.indexOfNode(i,a);e.Debug.assert(-1!==o),1!==i.length?(e.Debug.assert(!t.has(a),"Deleting a node twice"),t.add(a),n.deleteRange(r,{pos:b(r,a),end:o===i.length-1?g(r,a,{}):b(r,i[o+1])})):C(n,r,a)}n.ChangeTracker=h,n.getNewFileText=function(e,n,t,r){return y.newFileChangesWorker(void 0,n,e,t,r)},function(n){function t(n,t,r,i,o){var s=r.map(function(e){return a(e,n,i).text}).join(i),l=e.createSourceFile("any file name",s,99,!0,t);return S(s,e.formatting.formatDocument(l,o))+i}function a(n,t,a){var o=!!t&&!e.probablyUsesSemicolons(t),s=function(n,t){var a=0,o=t?e.getTrailingSemicolonOmittingWriter(e.createTextWriter(n)):e.createTextWriter(n);function s(n,t){if(t||!function(n){return e.skipTrivia(n,0)===n.length}(n)){a=o.getTextPos();for(var r=0;e.isWhiteSpaceLike(n.charCodeAt(n.length-r-1));)r++;a-=r}}return{onEmitNode:function(e,n,t){n&&r(n,a),t(e,n),n&&i(n,a)},onBeforeEmitNodeArray:function(e){e&&r(e,a)},onAfterEmitNodeArray:function(e){e&&i(e,a)},onBeforeEmitToken:function(e){e&&r(e,a)},onAfterEmitToken:function(e){e&&i(e,a)},write:function(e){o.write(e),s(e,!1)},writeComment:function(e){o.writeComment(e)},writeKeyword:function(e){o.writeKeyword(e),s(e,!1)},writeOperator:function(e){o.writeOperator(e),s(e,!1)},writePunctuation:function(e){o.writePunctuation(e),s(e,!1)},writeTrailingSemicolon:function(e){o.writeTrailingSemicolon(e),s(e,!1)},writeParameter:function(e){o.writeParameter(e),s(e,!1)},writeProperty:function(e){o.writeProperty(e),s(e,!1)},writeSpace:function(e){o.writeSpace(e),s(e,!1)},writeStringLiteral:function(e){o.writeStringLiteral(e),s(e,!1)},writeSymbol:function(e,n){o.writeSymbol(e,n),s(e,!1)},writeLine:function(){o.writeLine()},increaseIndent:function(){o.increaseIndent()},decreaseIndent:function(){o.decreaseIndent()},getText:function(){return o.getText()},rawWrite:function(e){o.rawWrite(e),s(e,!1)},writeLiteral:function(e){o.writeLiteral(e),s(e,!0)},getTextPos:function(){return o.getTextPos()},getLine:function(){return o.getLine()},getColumn:function(){return o.getColumn()},getIndent:function(){return o.getIndent()},isAtStartOfLine:function(){return o.isAtStartOfLine()},clear:function(){o.clear(),a=0}}}(a,o),l="\n"===a?1:0;return e.createPrinter({newLine:l,neverAsciiEscape:!0,omitTrailingSemicolon:o},s).writeNode(4,n,t,s),{text:s.getText(),node:L(n)}}n.getTextChangesFromChanges=function(n,t,r,i){return e.group(n,function(e){return e.sourceFile.path}).map(function(n){for(var o=n[0].sourceFile,s=e.stableSort(n,function(e,n){return e.range.pos-n.range.pos||e.range.end-n.range.end}),l=function(n){e.Debug.assert(s[n].range.end<=s[n+1].range.pos,"Changes overlap",function(){return JSON.stringify(s[n].range)+" and "+JSON.stringify(s[n+1].range)})},c=0;c<s.length-1;c++)l(c);var d=s.map(function(n){return e.createTextChange(e.createTextSpanFromRange(n.range),function(n,t,r,i,o){if(n.kind===u.Remove)return"";if(n.kind===u.Text)return n.text;var s=n.options,l=void 0===s?{}:s,c=n.range.pos,d=function(n){return function(n,t,r,i,o,s,l){var c=i.indentation,d=i.prefix,u=i.delta,m=a(n,t,o),p=m.node,f=m.text;l&&l(p,f);var g=s.options,_=void 0!==c?c:e.formatting.SmartIndenter.getIndentation(r,t,g,d===o||e.getLineStartPositionForPosition(r,t)===r);void 0===u&&(u=e.formatting.SmartIndenter.shouldIndentChildNode(s.options,n)&&g.indentSize||0);var y={text:f,getLineAndCharacterOfPosition:function(n){return e.getLineAndCharacterOfPosition(this,n)}},v=e.formatting.formatNodeGivenIndentation(p,y,t.languageVariant,_,u,s);return S(f,v)}(n,t,c,l,r,i,o)},m=n.kind===u.ReplaceWithMultipleNodes?n.nodes.map(function(n){return e.removeSuffix(d(n),r)}).join(n.options.joiner||r):d(n.node),p=l.preserveLeadingWhitespace||void 0!==l.indentation||e.getLineStartPositionForPosition(c,t)===c?m:m.replace(/^\s+/,"");return(l.prefix||"")+p+(l.suffix||"")}(n,o,t,r,i))});return{fileName:o.fileName,textChanges:d}})},n.newFileChanges=function(n,r,a,i,o){var s=t(n,e.getScriptKindFromFileName(r),a,i,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},n.newFileChangesWorker=t,n.getNonformattedText=a}(y||(y={})),n.applyChanges=S,n.isValidLocationToAddComment=x,function(n){function t(n,t,r){if(r.parent.name){var a=e.Debug.assertDefined(e.getTokenAtPosition(t,r.pos-1));n.deleteRange(t,{pos:a.getStart(t),end:r.end})}else{C(n,t,e.getAncestor(r,250))}}n.deleteDeclaration=function(n,r,a,i){switch(i.kind){case 152:var o=i.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,a)?n.replaceNodeWithText(a,i,"()"):D(n,r,a,i);break;case 250:C(n,a,i,i===a.imports[0].parent?{leadingTriviaOption:l.Exclude}:void 0);break;case 187:var s=i.parent;186===s.kind&&i!==e.last(s.elements)?C(n,a,i):D(n,r,a,i);break;case 238:!function(n,t,r,a){var i=a.parent;if(275!==i.kind)if(1===i.declarations.length){var o=i.parent;switch(o.kind){case 228:case 227:n.replaceNode(r,a,e.createObjectLiteral());break;case 226:C(n,r,i);break;case 220:C(n,r,o);break;default:e.Debug.assertNever(o)}}else D(n,t,r,a);else n.deleteNodeRange(r,e.findChildOfKind(i,20,r),e.findChildOfKind(i,21,r))}(n,r,a,i);break;case 151:D(n,r,a,i);break;case 254:var d=i.parent;1===d.elements.length?t(n,a,d):D(n,r,a,i);break;case 252:t(n,a,i);break;default:e.isImportClause(i.parent)&&i.parent.name===i?function(n,t,r){if(r.namedBindings){var a=r.name.getStart(t),i=e.getTokenAtPosition(t,r.name.end);if(i&&27===i.kind){var o=e.skipTrivia(t.text,i.end,!1,!0);n.deleteRange(t,{pos:a,end:o})}else C(n,t,r.name)}else C(n,t,r.parent)}(n,a,i.parent):e.isCallLikeExpression(i.parent)?D(n,r,a,i):C(n,a,i,26===i.kind?{trailingTriviaOption:c.Exclude}:void 0)}}}(v||(v={})),n.deleteNode=C}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(n){var t=e.createMultiMap(),r=e.createMap();function a(n){return e.isArray(n)?e.formatStringFromArgs(e.getLocaleSpecificMessage(n[0]),n.slice(1)):e.getLocaleSpecificMessage(n)}function i(e,n,t,r,a,i){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:a,commands:i?[i]:void 0}}function o(e,n){return{changes:e,commands:n}}function s(n,t,r){for(var a=n.program,i=n.sourceFile,o=n.cancellationToken,s=0,l=a.getSemanticDiagnostics(i,o).concat(e.computeSuggestionDiagnostics(i,a,o));s<l.length;s++){var c=l[s];e.contains(t,c.code)&&r(c)}}n.createCodeFixActionNoFixId=function(e,n,t){return i(e,a(t),n,void 0,void 0)},n.createCodeFixAction=function(e,n,t,r,o,s){return i(e,a(t),n,r,a(o),s)},n.registerCodeFix=function(n){for(var a=0,i=n.errorCodes;a<i.length;a++){var o=i[a];t.add(String(o),n)}if(n.fixIds)for(var s=0,l=n.fixIds;s<l.length;s++){var c=l[s];e.Debug.assert(!r.has(c)),r.set(c,n)}},n.getSupportedErrorCodes=function(){return e.arrayFrom(t.keys())},n.getFixes=function(n){return e.flatMap(t.get(String(n.errorCode))||e.emptyArray,function(e){return e.getCodeActions(n)})},n.getAllFixes=function(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)},n.createCombinedCodeActions=o,n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var a=[];return o(e.textChanges.ChangeTracker.with(n,function(e){return s(n,t,function(n){return r(e,n,a)})}),0===a.length?void 0:a)},n.eachDiagnostic=s}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=e.createMap();n.registerRefactor=function(e,n){t.set(e,n)},n.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(t.values(),function(e){return n.cancellationToken&&n.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(n)}))},n.getEditsForRefactor=function(e,n,r){var a=t.get(n);return a&&a.getEditsForAction(e,r)}}(e.refactor||(e.refactor={})),e.getRefactorContextSpan=function(n){var t=n.startPosition,r=n.endPosition;return e.createTextSpanFromBounds(t,void 0===r?t:r)}}(u||(u={})),function(e){!function(n){var t="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.Debug.assertDefined(e.findAncestor(a,function(n){return e.isAsExpression(n)||e.isTypeAssertion(n)})),o=e.isAsExpression(i)?e.createAsExpression(i.expression,e.createKeywordTypeNode(144)):e.createTypeAssertion(e.createKeywordTypeNode(144),i.expression);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start)});return[n.createCodeFixAction(t,i,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,t,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n.start)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingAwait",r=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],i=o([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,r],a);function s(t,r,a,i,o){var s=t.sourceFile,l=function(n,t,r){if(!e.isIdentifier(n))return;var a=r.getSymbolAtLocation(n);if(!a)return;var i=e.tryCast(a.valueDeclaration,e.isVariableDeclaration),o=e.tryCast(i&&i.name,e.isIdentifier),s=e.getAncestor(i,220);if(!i||!s||i.type||!i.initializer||s.getSourceFile()!==t||e.hasModifier(s,1)||!o||!d(i.initializer))return;if(e.FindAllReferences.Core.eachSymbolReferenceInFile(o,r,t,function(e){return e!==n}))return;return i.initializer}(r,s,i);if(l){var c=o(function(e){return u(e,a,s,i,l)});return n.createCodeFixActionNoFixId("addMissingAwaitToInitializer",c,[e.Diagnostics.Add_await_to_initializer_for_0,r.getText(s)])}}function l(r,a,i,o,s){var l=s(function(e){return u(e,i,r.sourceFile,o,a)});return n.createCodeFixAction(t,l,e.Diagnostics.Add_await,t,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function c(n,t,r,a,i){var o=e.getTokenAtPosition(n,r.start),s=e.findAncestor(o,function(t){return t.getStart(n)<r.start||t.getEnd()>e.textSpanEnd(r)?"quit":e.isExpression(t)&&e.textSpansEqual(r,e.createTextSpanFromNode(t,n))});return s&&function(n,t,r,a,i){var o=i.getDiagnosticsProducingTypeChecker().getDiagnostics(n,a);return e.some(o,function(n){var a=n.start,i=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},r)&&s===t&&!!o&&e.some(o,function(n){return n.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}(n,t,r,a,i)&&d(s)?s:void 0}function d(n){return 16384&n.kind||!!e.findAncestor(n,function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n||e.isBlock(n)&&(240===n.parent.kind||197===n.parent.kind||198===n.parent.kind||157===n.parent.kind)})}function u(n,t,i,o,s){if(e.isBinaryExpression(s)){var l=s.left,c=s.right,d=o.getTypeAtLocation(l),u=o.getTypeAtLocation(c),m=o.getPromisedTypeOfPromise(d)?e.createAwait(l):l,p=o.getPromisedTypeOfPromise(u)?e.createAwait(c):c;n.replaceNode(i,l,m),n.replaceNode(i,c,p)}else t===r&&e.isPropertyAccessExpression(s.parent)?n.replaceNode(i,s.parent.expression,e.createParen(e.createAwait(s.parent.expression))):e.contains(a,t)&&e.isCallOrNewExpression(s.parent)?n.replaceNode(i,s,e.createParen(e.createAwait(s))):n.replaceNode(i,s,e.createAwait(s))}n.registerCodeFix({fixIds:[t],errorCodes:i,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,a=c(t,r,n.span,n.cancellationToken,n.program);if(a){var i=n.program.getTypeChecker(),o=function(t){return e.textChanges.ChangeTracker.with(n,t)};return e.compact([s(n,a,r,i,o),l(n,a,r,i,o)])}},getAllCodeActions:function(e){var t=e.sourceFile,r=e.program,a=e.cancellationToken,o=e.program.getTypeChecker();return n.codeFixAll(e,i,function(n,i){var d=c(t,i.code,i,a,r);if(d){var u=function(e){return e(n),[]};return s(e,d,i.code,o,u)||l(e,d,i.code,o,u)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingConst",r=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function a(n,t,r,a,o){var s=e.getTokenAtPosition(t,r),l=e.findAncestor(s,function(n){return e.isForInOrOfStatement(n.parent)?n.parent.initializer===n:!function(e){switch(e.kind){case 73:case 188:case 189:case 276:case 277:return!0;default:return!1}}(n)&&"quit"});if(l)return i(n,l,t,o);var c=s.parent;if(e.isBinaryExpression(c)&&e.isExpressionStatement(c.parent))return i(n,s,t,o);if(e.isArrayLiteralExpression(c)){var d=a.getTypeChecker();if(!e.every(c.elements,function(n){return t=n,r=d,!!(a=e.isIdentifier(t)?t:e.isAssignmentExpression(t,!0)&&e.isIdentifier(t.left)?t.left:void 0)&&!r.getSymbolAtLocation(a);var t,r,a}))return;return i(n,c,t,o)}var u=e.findAncestor(s,function(n){return!!e.isExpressionStatement(n.parent)||!function(e){switch(e.kind){case 73:case 205:case 27:return!0;default:return!1}}(n)&&"quit"});if(u){if(!function n(t,r){if(!e.isBinaryExpression(t))return!1;if(27===t.operatorToken.kind)return e.every([t.left,t.right],function(e){return n(e,r)});return e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left)}(u,a.getTypeChecker()))return;return i(n,u,t,o)}}function i(e,n,t,r){r&&!r.tryAdd(n)||e.insertModifierBefore(t,78,n)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start,r.program)});if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Add_const_to_unresolved_variable,t,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.NodeSet;return n.codeFixAll(t,r,function(e,n){return a(e,n.file,n.start,t.program,i)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.findAncestor(a,e.isDecorator);e.Debug.assert(!!i,"Expected position to be owned by a decorator.");var o=e.createCall(i.expression,void 0,void 0);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start)});return[n.createCodeFixAction(t,i,e.Diagnostics.Call_decorator_expression,t,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n.start)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r);if(!e.isIdentifier(a))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(a.kind));var i=a.parent;if(!e.isParameter(i))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(a.kind));var o=i.parent.parameters.indexOf(i);e.Debug.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.createParameter(void 0,i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,e.createTypeReferenceNode(a,void 0),i.initializer);n.replaceNode(t,a,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start)});return[n.createCodeFixAction(t,i,e.Diagnostics.Add_parameter_name,t,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n.start)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,i)}function i(n){return function(n){return e.isFunctionLikeDeclaration(n)||238===n.kind||154===n.kind||155===n.kind}(n)&&o(n)}function o(n){return e.isFunctionLikeDeclaration(n)?n.parameters.some(o)||!n.type&&!!e.getJSDocReturnType(n):!n.type&&!!e.getJSDocType(n)}function s(n,t,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some(function(n){return!!e.getJSDocType(n)}))){if(!r.typeParameters){var a=e.getJSDocTypeParameterDeclarations(r);a.length&&n.insertTypeParameters(t,r,a)}var i=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,t);i&&n.insertNodeBefore(t,e.first(r.parameters),e.createToken(20));for(var o=0,s=r.parameters;o<s.length;o++){var c=s[o];if(!c.type){var d=e.getJSDocType(c);d&&n.tryInsertTypeAnnotation(t,c,l(d))}}if(i&&n.insertNodeAfter(t,e.last(r.parameters),e.createToken(21)),!r.type){var u=e.getJSDocReturnType(r);u&&n.tryInsertTypeAnnotation(t,r,l(u))}}else{var m=e.Debug.assertDefined(e.getJSDocType(r));e.Debug.assert(!r.type),n.tryInsertTypeAnnotation(t,r,l(m))}}function l(n){switch(n.kind){case 290:case 291:return e.createTypeReferenceNode("any",e.emptyArray);case 294:return function(n){return e.createUnionTypeNode([e.visitNode(n.type,l),e.createTypeReferenceNode("undefined",e.emptyArray)])}(n);case 293:return l(n.type);case 292:return function(n){return e.createUnionTypeNode([e.visitNode(n.type,l),e.createTypeReferenceNode("null",e.emptyArray)])}(n);case 296:return function(n){return e.createArrayTypeNode(e.visitNode(n.type,l))}(n);case 295:return function(n){return e.createFunctionTypeNode(e.emptyArray,n.parameters.map(c),n.type)}(n);case 165:return function(n){var t=n.typeName,r=n.typeArguments;if(e.isIdentifier(n.typeName)){if(e.isJSDocIndexSignature(n))return function(n){var t=e.createParameter(void 0,void 0,void 0,136===n.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(136===n.typeArguments[0].kind?"number":"string",[]),void 0),r=e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[t],n.typeArguments[1])]);return e.setEmitFlags(r,1),r}(n);var a=n.typeName.text;switch(n.typeName.text){case"String":case"Boolean":case"Object":case"Number":a=a.toLowerCase();break;case"array":case"date":case"promise":a=a[0].toUpperCase()+a.slice(1)}t=e.createIdentifier(a),r="Array"!==a&&"Promise"!==a||n.typeArguments?e.visitNodes(n.typeArguments,l):e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}return e.createTypeReferenceNode(t,r)}(n);default:var t=e.visitEachChild(n,l,void 0);return e.setEmitFlags(t,1),t}}function c(n){var t=n.parent.parameters.indexOf(n),r=296===n.type.kind&&t===n.parent.parameters.length-1,a=n.name||(r?"rest":"arg"+t),i=r?e.createToken(25):n.dotDotDotToken;return e.createParameter(n.decorators,n.modifiers,i,a,n.questionToken,e.visitNode(n.type,l),n.initializer)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=a(r.sourceFile,r.span.start);if(i){var o=e.textChanges.ChangeTracker.with(r,function(e){return s(e,r.sourceFile,i)});return[n.createCodeFixAction(t,o,e.Diagnostics.Annotate_with_type_from_JSDoc,t,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){var t=a(n.file,n.start);t&&s(e,n.file,t)})}}),n.parameterShouldGetTypeFromJSDoc=i}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="inferFromUsage",a=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(n,r,a,i,o,m,g,_){if(e.isParameterPropertyModifier(a.kind)||73===a.kind||25===a.kind||101===a.kind){var y=a.parent;switch(i=function(n){switch(n){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return n}(i)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(y)&&g(y)||e.isPropertyDeclaration(y)||e.isPropertySignature(y))return s(n,r,y,o,_,m),y;if(e.isPropertyAccessExpression(y)){var v=p(y.name,o,m),h=e.getTypeNodeIfAccessible(v,y,o,_);if(h){var b=e.createJSDocTypeTag(e.createJSDocTypeExpression(h),"");u(n,r,e.cast(y.parent.parent,e.isExpressionStatement),[b])}return y}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var E=o.getTypeChecker().getSymbolAtLocation(a);return E&&E.valueDeclaration&&e.isVariableDeclaration(E.valueDeclaration)&&g(E.valueDeclaration)?(s(n,r,E.valueDeclaration,o,_,m),E.valueDeclaration):void 0}var T=e.getContainingFunction(a);if(void 0!==T)switch(i){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(T))return l(n,r,T,o,_,m),T;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(g(T)){var S=e.cast(y,e.isParameter);return function(n,r,a,i,o,s,l){if(!e.isIdentifier(a.name))return;var u=f(i,r,o,l),m=t.inferTypeForParametersFromReferences(u,i,o,l)||i.parameters.map(function(n){return{declaration:n,type:e.isIdentifier(n.name)?p(n.name,o,l):o.getTypeChecker().getAnyType()}});if(e.Debug.assert(i.parameters.length===m.length),e.isInJSFile(i))d(n,r,m,o,s);else{var g=e.isArrowFunction(i)&&!e.findChildOfKind(i,20,r);g&&n.insertNodeBefore(r,e.first(i.parameters),e.createToken(20));for(var _=0,y=m;_<y.length;_++){var v=y[_],h=v.declaration,b=v.type;!h||h.type||h.initializer||c(n,r,h,b,o,s)}g&&n.insertNodeAfter(r,e.last(i.parameters),e.createToken(21))}}(n,r,S,T,o,_,m),S}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return e.isGetAccessorDeclaration(T)&&e.isIdentifier(T.name)?(c(n,r,T,p(T.name,o,m),o,_),T):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessorDeclaration(T)?(l(n,r,T,o,_,m),T):void 0;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.textChanges.isThisTypeAnnotatable(T)&&g(T)?(function(n,r,a,i,o,s){var l=f(a,r,i,s);if(!l)return;var c=t.inferTypeForThisFromReferences(l,i,s);if(!c)return;var d=e.getTypeNodeIfAccessible(c,a,i,o);if(!d)return;e.isInJSFile(a)?function(n,t,r,a){u(n,t,r,[e.createJSDocThisTag(e.createJSDocTypeExpression(a))])}(n,r,a,d):n.tryInsertThisTypeAnnotation(r,a,d)}(n,r,T,o,_,m),T):void 0;default:return e.Debug.fail(String(i))}}}function s(n,t,r,a,i,o){e.isIdentifier(r.name)&&c(n,t,r,p(r.name,a,o),a,i)}function l(n,t,r,a,i,o){var s=e.firstOrUndefined(r.parameters);if(s&&e.isIdentifier(r.name)&&e.isIdentifier(s.name)){var l=p(r.name,a,o);l===a.getTypeChecker().getAnyType()&&(l=p(s.name,a,o)),e.isInJSFile(r)?d(n,t,[{declaration:s,type:l}],a,i):c(n,t,s,l,a,i)}}function c(n,t,r,a,i,o){var s=e.getTypeNodeIfAccessible(a,r,i,o);if(s)if(e.isInJSFile(t)&&154!==r.kind){var l=e.isVariableDeclaration(r)?e.tryCast(r.parent.parent,e.isVariableStatement):r;if(!l)return;var c=e.createJSDocTypeExpression(s);u(n,t,l,[e.isGetAccessorDeclaration(r)?e.createJSDocReturnTag(c,""):e.createJSDocTypeTag(c,"")])}else n.tryInsertTypeAnnotation(t,r,s)}function d(n,t,r,a,i){var o=r.length&&r[0].declaration.parent;o&&u(n,t,o,e.mapDefined(r,function(n){var t=n.declaration;if(!t.initializer&&!e.getJSDocType(t)&&e.isIdentifier(t.name)){var r=n.type&&e.getTypeNodeIfAccessible(n.type,t,a,i),o=e.getSynthesizedClone(t.name);return e.setEmitFlags(o,3584),r&&e.createJSDocParamTag(o,!!n.isOptional,e.createJSDocTypeExpression(r),"")}}))}function u(n,t,r,a){var i=e.mapDefined(r.jsDoc,function(e){return e.comment}),s=e.flatMapToMutable(r.jsDoc,function(e){return e.tags}),l=a.filter(function(n){return!s||!s.some(function(t,r){var a=function(n,t){if(n.kind!==t.kind)return;switch(n.kind){case 307:var r=n,a=t;return e.isIdentifier(r.name)&&e.isIdentifier(a.name)&&r.name.escapedText===a.name.escapedText?e.createJSDocParamTag(a.name,a.isBracketed,a.typeExpression,r.comment):void 0;case 308:return e.createJSDocReturnTag(t.typeExpression,n.comment)}}(t,n);return a&&(s[r]=a),!!a})}),c=e.createJSDocComment(i.join("\n"),e.createNodeArray(o(s||e.emptyArray,l))),d=198===r.kind?function(e){if(155===e.parent.kind)return e.parent;return e.parent.parent}(r):r;d.jsDoc=r.jsDoc,d.jsDocCache=r.jsDocCache,n.insertJsdocCommentBefore(t,d,c)}function m(n,t,r){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r),function(n){return 0!==n.kind?e.tryCast(n.node,e.isIdentifier):void 0})}function p(e,n,r){var a=m(e,n,r),i=n.getTypeChecker(),o=t.inferTypesFromReferences(a,i,r);return t.unifyFromContext(o,i)}function f(n,t,r,a){var i;switch(n.kind){case 158:i=e.findChildOfKind(n,125,t);break;case 198:case 197:var o=n.parent;i=e.isVariableDeclaration(o)&&e.isIdentifier(o.name)?o.name:n.name;break;case 240:case 157:i=n.name}if(i)return m(i,r,a)}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){var a,o=t.sourceFile,s=t.program,l=t.span.start,c=t.errorCode,d=t.cancellationToken,u=t.host,m=e.getTokenAtPosition(o,l),p=e.textChanges.ChangeTracker.with(t,function(n){a=i(n,o,m,c,s,d,e.returnTrue,u)}),f=a&&e.getNameOfDeclaration(a);return f&&0!==p.length?[n.createCodeFixAction(r,p,[function(n,t){switch(n){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(t))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}(c,m),f.getText(o)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions:function(t){var r=t.sourceFile,o=t.program,s=t.cancellationToken,l=t.host,c=e.nodeSeenTracker();return n.codeFixAll(t,a,function(n,t){i(n,r,e.getTokenAtPosition(t.file,t.start),t.code,o,s,c,l)})}}),function(n){function t(e,n,t){for(var a={},i=0,o=e;i<o.length;i++){var l=o[i];t.throwIfCancellationRequested(),r(l,n,a)}return s(a,n)}function r(n,t,i){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;switch(n.parent.kind){case 204:i.isNumber=!0;break;case 203:!function(e,n){switch(e.operator){case 44:case 45:case 39:case 53:n.isNumber=!0;break;case 38:n.isNumberOrString=!0}}(n.parent,i);break;case 205:!function(n,t,r,a){switch(t.operatorToken.kind){case 41:case 40:case 42:case 43:case 46:case 47:case 48:case 49:case 50:case 51:case 62:case 64:case 63:case 65:case 66:case 70:case 71:case 72:case 67:case 69:case 68:case 39:case 28:case 31:case 30:case 32:var i=r.getTypeAtLocation(t.left===n?t.right:t.left);1056&i.flags?d(a,i):a.isNumber=!0;break;case 61:case 38:var o=r.getTypeAtLocation(t.left===n?t.right:t.left);1056&o.flags?d(a,o):296&o.flags?a.isNumber=!0:132&o.flags?a.isString=!0:a.isNumberOrString=!0;break;case 60:case 33:case 35:case 36:case 34:d(a,r.getTypeAtLocation(t.left===n?t.right:t.left));break;case 94:n===t.left&&(a.isString=!0);break;case 55:n!==t.left||238!==n.parent.parent.kind&&!e.isAssignmentExpression(n.parent.parent,!0)||d(a,r.getTypeAtLocation(t.right))}}(n,n.parent,t,i);break;case 272:case 273:!function(e,n,t){d(t,n.getTypeAtLocation(e.parent.parent.expression))}(n.parent,t,i);break;case 192:case 193:n.parent.expression===n?function(e,n,t){var a={argumentTypes:[],returnType:{}};if(e.arguments)for(var i=0,o=e.arguments;i<o.length;i++){var s=o[i];a.argumentTypes.push(n.getTypeAtLocation(s))}r(e,n,a.returnType),192===e.kind?(t.callContexts||(t.callContexts=[])).push(a):(t.constructContexts||(t.constructContexts=[])).push(a)}(n.parent,t,i):a(n,t,i);break;case 190:!function(n,t,a){var i=e.escapeLeadingUnderscores(n.name.text);a.properties||(a.properties=e.createUnderscoreEscapedMap());var o=a.properties.get(i)||{};r(n,t,o),a.properties.set(i,o)}(n.parent,t,i);break;case 191:!function(e,n,t,a){if(n===e.argumentExpression)return void(a.isNumberOrString=!0);var i=t.getTypeAtLocation(e.argumentExpression),o={};r(e,t,o),296&i.flags?a.numberIndexContext=o:a.stringIndexContext=o}(n.parent,n,t,i);break;case 276:case 277:!function(n,t,r){var a=e.isShorthandPropertyAssignment(n)?n.parent:n.parent.parent,i=e.isVariableDeclaration(a.parent)?a.parent:a;u(r,t.getTypeAtLocation(i))}(n.parent,t,i);break;case 155:!function(e,n,t){u(t,n.getTypeAtLocation(e.parent))}(n.parent,t,i);break;case 238:var o=n.parent,s=o.name,l=o.initializer;if(n===s){l&&d(i,t.getTypeAtLocation(l));break}default:return a(n,t,i)}}function a(n,t,r){e.isExpressionNode(n)&&d(r,t.getContextualType(n))}function i(n,t,r){if(void 0===r&&(r=t.getAnyType()),!n.length)return r;var a=t.getUnionType([t.getStringType(),t.getNumberType()]),i=function(n,t){for(var r=[],a=0,i=n;a<i.length;a++)for(var o=i[a],s=0,l=t;s<l.length;s++){var c=l[s],d=c.high,u=c.low;d(o)&&(e.Debug.assert(!u(o)),r.push(u))}return n.filter(function(e){return r.every(function(n){return!n(e)})})}(n,[{high:function(e){return e===t.getStringType()||e===t.getNumberType()},low:function(e){return e===a}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(e){return!(114689&e.flags||16&t.getObjectFlags(e))},low:function(e){return!!(16&t.getObjectFlags(e))}}]),o=i.filter(function(e){return 16&t.getObjectFlags(e)});return o.length&&(i=i.filter(function(e){return!(16&t.getObjectFlags(e))})).push(function(n,t){if(1===n.length)return n[0];for(var r=[],a=[],i=[],o=[],s=!1,l=!1,c=e.createMultiMap(),d=0,u=n;d<u.length;d++){for(var m=u[d],p=0,f=t.getPropertiesOfType(m);p<f.length;p++){var g=f[p];c.add(g.name,t.getTypeOfSymbolAtLocation(g,g.valueDeclaration))}r.push.apply(r,t.getSignaturesOfType(m,0)),a.push.apply(a,t.getSignaturesOfType(m,1)),m.stringIndexInfo&&(i.push(m.stringIndexInfo.type),s=s||m.stringIndexInfo.isReadonly),m.numberIndexInfo&&(o.push(m.numberIndexInfo.type),l=l||m.numberIndexInfo.isReadonly)}var _=e.mapEntries(c,function(e,r){var a=r.length<n.length?16777216:0,i=t.createSymbol(4|a,e);return i.type=t.getUnionType(r),[e,i]});return t.createAnonymousType(n[0].symbol,_,r,a,i.length?t.createIndexInfo(t.getUnionType(i),s):void 0,o.length?t.createIndexInfo(t.getUnionType(o),l):void 0)}(o,t)),t.getWidenedType(t.getUnionType(i))}function s(n,t){var r=[];if(n.isNumber&&r.push(t.getNumberType()),n.isString&&r.push(t.getStringType()),n.isNumberOrString&&r.push(t.getUnionType([t.getStringType(),t.getNumberType()])),r.push.apply(r,(n.candidateTypes||[]).map(function(e){return t.getBaseTypeOfLiteralType(e)})),n.properties&&p(n.properties.get("then"))){var a=l(0,n.properties.get("then").callContexts,!1,t).getCallSignatures().map(function(e){return e.getReturnType()});a.push(t.createPromiseType(a.length?t.getUnionType(a,2):t.getAnyType()))}else n.properties&&p(n.properties.get("push"))&&r.push(t.createArrayType(l(0,n.properties.get("push").callContexts,!1,t)));if(n.numberIndexContext)r.push(t.createArrayType(b(n.numberIndexContext)));else if(n.properties||n.callContexts||n.constructContexts||n.stringIndexContext){var o=e.createUnderscoreEscapedMap(),d=[],u=[],m=void 0;if(n.properties&&n.properties.forEach(function(e,n){var r=t.createSymbol(4,n);r.type=b(e),o.set(n,r)}),n.callContexts)for(var f=0,g=n.callContexts;f<g.length;f++){var _=g[f];d.push(c(_,t))}if(n.constructContexts)for(var y=0,v=n.constructContexts;y<v.length;y++){var h=v[y];u.push(c(h,t))}n.stringIndexContext&&(m=t.createIndexInfo(b(n.stringIndexContext),!1)),r.push(t.createAnonymousType(void 0,o,d,u,m,void 0))}return r;function b(e){return i(s(e,t),t)}}function l(n,t,r,a){var i=[];if(t)for(var o=0,s=t;o<s.length;o++){var l=s[o];l.argumentTypes.length>n&&(r?i=e.concatenate(i,e.map(l.argumentTypes.slice(n),function(e){return a.getBaseTypeOfLiteralType(e)})):i.push(a.getBaseTypeOfLiteralType(l.argumentTypes[n])))}if(i.length){var c=a.getWidenedType(a.getUnionType(i,2));return r?a.createArrayType(c):c}}function c(n,t){for(var r=[],a=0;a<n.argumentTypes.length;a++){var o=t.createSymbol(1,e.escapeLeadingUnderscores("arg"+a));o.type=t.getWidenedType(t.getBaseTypeOfLiteralType(n.argumentTypes[a])),r.push(o)}var l=i(s(n.returnType,t),t,t.getVoidType());return t.createSignature(void 0,void 0,void 0,r,l,void 0,n.argumentTypes.length,!1,!1)}function d(e,n){!n||1&n.flags||131072&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function u(e,n){!n||1&n.flags||131072&n.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(n)}function p(e){return!!e&&!!e.callContexts}n.inferTypesFromReferences=t,n.inferTypeForParametersFromReferences=function(n,a,s,l){if(void 0!==n&&0!==n.length&&a.parameters){for(var c=s.getTypeChecker(),d={},u=0,p=n;u<p.length;u++){var f=p[u];l.throwIfCancellationRequested(),r(f,c,d)}var g=o(d.constructContexts||[],d.callContexts||[]);return a.parameters.map(function(n,r){for(var o=[],d=e.isRestParameter(n),u=!1,p=0,f=g;p<f.length;p++){var _=f[p];if(_.argumentTypes.length<=r)u=e.isInJSFile(a),o.push(c.getUndefinedType());else if(d)for(var y=r;y<_.argumentTypes.length;y++)o.push(c.getBaseTypeOfLiteralType(_.argumentTypes[y]));else o.push(c.getBaseTypeOfLiteralType(_.argumentTypes[r]))}if(e.isIdentifier(n.name)){var v=t(m(n.name,s,l),c,l);o.push.apply(o,d?e.mapDefined(v,c.getElementTypeOfArrayType):v)}var h=i(o,c);return{type:d?c.createArrayType(h):h,isOptional:u&&!d,declaration:n}})}},n.inferTypeForThisFromReferences=function(n,t,a){if(0!==n.length){for(var o=t.getTypeChecker(),s={},l=0,c=n;l<c.length;l++){var d=c[l];a.throwIfCancellationRequested(),r(d,o,s)}return i(s.candidateThisTypes||e.emptyArray,o)}},n.unifyFromContext=i}(t||(t={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="convertFunctionToEs6Class",r=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function a(n,t,r,a){var o=a.getSymbolAtLocation(e.getTokenAtPosition(t,r));if(o&&19&o.flags){var s,l,c=o.valueDeclaration;switch(c.kind){case 240:s=c,n.delete(t,c),l=function(n){var t=d(o);n.body&&t.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body));var r=i(n,86);return e.createClassDeclaration(void 0,r,n.name,void 0,void 0,t)}(c);break;case 238:s=c.parent.parent,l=function(n){var t=n.initializer;if(!t||197!==t.kind)return;if(73!==n.name.kind)return;var r=d(n.symbol);t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var a=i(s,86);return e.createClassDeclaration(void 0,a,n.name,void 0,void 0,r)}(c),1===c.parent.declarations.length?(e.copyLeadingComments(s,l,t),n.delete(t,s)):n.delete(t,c)}l&&(e.copyLeadingComments(c,l,t),n.insertNodeAfter(t,s,l))}function d(r){var a=[];return r.members&&r.members.forEach(function(e){var n=o(e,void 0);n&&a.push(n)}),r.exports&&r.exports.forEach(function(n){var t=o(n,[e.createToken(117)]);t&&a.push(t)}),a;function o(r,a){if(8192&r.flags){var o=r.valueDeclaration,s=o.parent;if(l=s.right,e.isFunctionLike(l)){var l,c=s.parent&&222===s.parent.kind?s.parent:s;if(n.delete(t,c),!s.right)return e.createProperty([],a,r.name,void 0,void 0,void 0);switch(s.right.kind){case 197:var d=s.right,u=e.concatenate(a,i(d,122)),m=e.createMethod(void 0,u,void 0,o.name,void 0,void 0,d.parameters,void 0,d.body);return e.copyLeadingComments(s,m,t),m;case 198:var p=s.right,f=p.body,g=void 0;g=219===f.kind?f:e.createBlock([e.createReturn(f)]);u=e.concatenate(a,i(p,122)),m=e.createMethod(void 0,u,void 0,o.name,void 0,void 0,p.parameters,void 0,g);return e.copyLeadingComments(s,m,t),m;default:if(e.isSourceFileJS(t))return;var _=e.createProperty(void 0,a,o.name,void 0,void 0,s.right);return e.copyLeadingComments(s.parent,_,t),_}}}}}}function i(n,t){return e.filter(n.modifiers,function(e){return e.kind===t})}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start,r.program.getTypeChecker())});return[n.createCodeFixAction(t,i,e.Diagnostics.Convert_function_to_an_ES2015_class,t,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){return a(n,t.file,t.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],i=!0;function o(n,t,r,a,i){var o,u=e.getTokenAtPosition(t,r);if(o=e.isIdentifier(u)&&e.isVariableDeclaration(u.parent)&&u.parent.initializer&&e.isFunctionLikeDeclaration(u.parent.initializer)?u.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(t,r)),e.isFunctionLikeDeclaration)){var m,p,f=e.createMap(),_=e.createMap(),y=[],v=e.isInJSFile(o),h=function(n,t){if(!n.body)return e.createMap();var r=e.createMap();return e.forEachChild(n.body,function n(a){s(a,t,"then")?(r.set(e.getNodeId(a).toString(),!0),e.forEach(a.arguments,n)):s(a,t,"catch")?(r.set(e.getNodeId(a).toString(),!0),e.forEachChild(a,n)):s(a,t)?r.set(e.getNodeId(a).toString(),!0):e.forEachChild(a,n)}),r}(o,a),E=function(n,t,r,a,i,o,s){var d=e.createMap(),u=e.createMap();return e.forEachChild(n,function n(o){if(e.isIdentifier(o)){var m=t.getSymbolAtLocation(o),p=m&&function(e,n){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===n}(m,a.sourceFile);if(m&&p){var f=g(t.getTypeAtLocation(o),t),_=e.getSymbolId(m).toString();if(!f||e.isFunctionLikeDeclaration(o.parent)||r.has(_)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var y=o.text,v=u.get(y);if(v&&v.some(function(e){return e!==m})){var h=c(o,u);d.set(_,h.identifier),r.set(_,h),s.push({identifier:h.identifier,symbol:m}),l(u,y,m)}else{var E=e.getSynthesizedDeepClone(o);d.set(_,E),r.set(_,b(E,[],s.filter(function(e){return e.identifier.text===o.text}).length)),(e.isParameter(o.parent)&&function(n){var r=n.parent;if(e.isCallExpression(r)||e.isIdentifier(r)&&!i.get(e.getNodeId(r).toString())){var a=t.getTypeAtLocation(r),o=a&&t.getPromisedTypeOfPromise(a);return!!o}return!1}(o.parent.parent)||e.isVariableDeclaration(o.parent))&&(s.push({identifier:E,symbol:m}),l(u,y,m))}}}else{var T=e.firstOrUndefined(f.parameters),S=T&&e.isParameter(T.valueDeclaration)&&e.tryCast(T.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result"),L=c(S,u);r.set(_,L),s.push({identifier:L.identifier,symbol:m}),l(u,S.text,m)}}}else e.forEachChild(o,n)}),e.getSynthesizedDeepCloneWithRenames(n,!0,d,t,function(n,a){if(e.isIdentifier(n)){var s=t.getSymbolAtLocation(n),l=s&&e.getSymbolId(s).toString(),c=s&&r.get(l);if(c){var d=t.getTypeAtLocation(n);o.set(e.getNodeId(a).toString(),d)}}var u=i.get(e.getNodeId(n).toString());void 0!==u&&(i.delete(e.getNodeId(n).toString()),i.set(e.getNodeId(a).toString(),u))})}(o,a,f,i,h,_,y),T=function(e){var n=[];return e.forEach(function(e){0===e.numberOfAssignmentsOriginal&&n.push(e.identifier)}),n}(f),S=E.body&&e.isBlock(E.body)?(m=E.body,p=[],e.forEachReturnStatement(m,function(n){e.isReturnStatementWithFixablePromiseHandler(n)&&p.push(n)}),p):e.emptyArray,L={checker:a,synthNamesMap:f,allVarNames:y,setOfExpressionsToReturn:h,constIdentifiers:T,originalTypeMap:_,isInJSFile:v};if(S.length){n.insertLastModifierBefore(t,122,o);for(var A=function(r){e.forEachChild(r,function a(i){e.isCallExpression(i)?function(e,r){var a=d(e,L,e);n.replaceNodeWithNodes(t,r,a)}(i,r):e.isFunctionLike(i)||e.forEachChild(i,a)})},x=0,C=S;x<C.length;x++){A(C[x])}}}}function s(n,t,r){var a=(r?e.isCallExpression(n):e.isExpression(n))&&(!r||e.hasPropertyAccessExpressionWithName(n,r))&&t.getTypeAtLocation(n);return!(!a||!t.getPromisedTypeOfPromise(a))}function l(e,n,t){e.has(n)?e.get(n).push(t):e.set(n,[t])}function c(n,t){var r=(t.get(n.text)||e.emptyArray).length;return b(0===r?n:e.createIdentifier(n.text+"_"+r),[],0)}function d(n,t,r,a){if(!n)return e.emptyArray;var o=e.isIdentifier(n)&&t.originalTypeMap.get(e.getNodeId(n).toString())||t.checker.getTypeAtLocation(n);return e.isCallExpression(n)&&e.hasPropertyAccessExpressionWithName(n,"then")&&o&&t.checker.getPromisedTypeOfPromise(o)?function(n,t,r,a){var i=n.arguments,o=i[0],s=i[1];if(!o)return d(n.expression,t,r);var l=y(o,t),c=f(o,a,l,n,t);if(s){var u=y(s,t),m=e.createBlock(d(n.expression,t,n,l).concat(c)),p=f(s,a,u,n,t),g=u?E(u)?u.identifier.text:u.bindingPattern:"e",_=e.createVariableDeclaration(g),v=e.createCatchClause(_,e.createBlock(p));return[e.createTry(m,v,void 0)]}return d(n.expression,t,n,l).concat(c)}(n,t,r,a):e.isCallExpression(n)&&e.hasPropertyAccessExpressionWithName(n,"catch")&&o&&t.checker.getPromisedTypeOfPromise(o)?function(n,t,r){var a,i=n.arguments[0],o=y(i,t),s=t.setOfExpressionsToReturn.get(e.getNodeId(n).toString());r&&!s&&(E(r)?(a=r,t.synthNamesMap.forEach(function(e,n){if(e.identifier.text===r.identifier.text){var a=u(r);t.synthNamesMap.set(n,a)}})):a=b(e.createOptimisticUniqueName("result"),r.types),a.numberOfAssignmentsOriginal=2,t.constIdentifiers.some(function(e){return e.text===a.identifier.text})&&t.constIdentifiers.push(u(a).identifier));var l,c,m=e.createBlock(d(n.expression,t,n,a)),p=f(i,a,o,n,t),g=o?E(o)?o.identifier.text:o.bindingPattern:"e",_=e.createVariableDeclaration(g),v=e.createCatchClause(_,e.createBlock(p));if(a&&!s){c=e.getSynthesizedDeepClone(a.identifier);var h=a.types,T=t.checker.getUnionType(h,2),S=t.isInJSFile?void 0:t.checker.typeToTypeNode(T),L=[e.createVariableDeclaration(c,S)];l=e.createVariableStatement(void 0,e.createVariableDeclarationList(L,1))}var A=e.createTry(m,v,void 0),x=r&&c&&(C=r,1===C.kind)&&e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepCloneWithRenames(r.bindingPattern),void 0,c)],2));var C;return e.compact([l,A,x])}(n,t,a):e.isPropertyAccessExpression(n)?d(n.expression,t,r,a):o&&t.checker.getPromisedTypeOfPromise(o)?function(n,t,r){var a=t.setOfExpressionsToReturn.get(e.getNodeId(n).toString()),i=n.original?n.original.parent:n.parent;if(r&&!a&&(!i||e.isPropertyAccessExpression(i)))return p(r,e.createAwait(n),t);if(!r&&!a&&(!i||e.isPropertyAccessExpression(i)))return[e.createStatement(e.createAwait(n))];return[e.createReturn(e.getSynthesizedDeepClone(n))]}(n,t,a):(i=!1,e.emptyArray)}function u(n){return b(e.createOptimisticUniqueName(n.identifier.text))}function m(n,t){var r=function n(t){return e.isIdentifier(t)?[t.text]:e.flatMap(t.elements,function(t){return e.isOmittedExpression(t)?[]:n(t.name)})}(h(n));return t.some(function(n){return e.contains(r,n.text)})?2:1}function p(n,t,r){return!n||v(n)?[e.createStatement(t)]:E(n)&&n.types.length<n.numberOfAssignmentsOriginal?[e.createStatement(e.createAssignment(e.getSynthesizedDeepClone(n.identifier),t))]:[e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(h(n)),void 0,t)],m(n,r.constIdentifiers)))]}function f(n,t,r,a,o){var l=o.setOfExpressionsToReturn.get(e.getNodeId(a).toString());switch(n.kind){case 97:break;case 73:if(!r)break;var c=e.createCall(e.getSynthesizedDeepClone(n),void 0,E(r)?[r.identifier]:[]);if(l)return[e.createReturn(c)];var d=o.originalTypeMap.get(e.getNodeId(n).toString())||o.checker.getTypeAtLocation(n),u=o.checker.getSignaturesOfType(d,0);if(!u.length){i=!1;break}var f=u[0].getReturnType(),y=p(t,e.createAwait(c),o);return t&&t.types.push(f),y;case 197:case 198:var v=n.body;if(e.isBlock(v)){for(var b=[],T=!1,S=0,L=v.statements;S<L.length;S++){var A=L[S];e.isReturnStatement(A)&&(T=!0),e.isReturnStatementWithFixablePromiseHandler(A)?b=b.concat(_(o,[A],t)):b.push(A)}return l?b.map(function(n){return e.getSynthesizedDeepClone(n)}):function(n,t,r,a){for(var i=[],o=0,l=n;o<l.length;o++){var c=l[o];if(e.isReturnStatement(c)){if(c.expression){var d=s(c.expression,r.checker)?e.createAwait(c.expression):c.expression;void 0===t?i.push(e.createExpressionStatement(d)):i.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(h(t),void 0,d)],m(t,r.constIdentifiers))))}}else i.push(e.getSynthesizedDeepClone(c))}a||void 0===t||i.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(h(t),void 0,e.createIdentifier("undefined"))],m(t,r.constIdentifiers))));return i}(b,t,o,T)}var x=_(o,e.isFixablePromiseHandler(v)?[e.createReturn(v)]:e.emptyArray,t);if(x.length>0)return x;var C=g(o.checker.getTypeAtLocation(n),o.checker).getReturnType(),D=e.getSynthesizedDeepClone(v),R=o.checker.getPromisedTypeOfPromise(C)?e.createAwait(D):D;if(l)return[e.createReturn(R)];var M=p(t,R,o);return t&&t.types.push(C),M;default:i=!1}return e.emptyArray}function g(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function _(n,t,r){for(var a=[],i=0,o=t;i<o.length;i++){var s=o[i];e.forEachChild(s,function t(i){if(e.isCallExpression(i)){var o=d(i,n,i,r);if((a=a.concat(o)).length>0)return}else e.isFunctionLike(i)||e.forEachChild(i,t)})}return a}function y(n,t){var r,a=0,i=[];e.isFunctionLikeDeclaration(n)?n.parameters.length>0&&(r=function n(t){if(e.isIdentifier(t))return o(t);var r=e.flatMap(t.elements,function(t){return e.isOmittedExpression(t)?[]:[n(t.name)]});return function(n,t,r){void 0===t&&(t=e.emptyArray);void 0===r&&(r=[]);return{kind:1,bindingPattern:n,elements:t,types:r}}(t,r)}(n.parameters[0].name)):e.isIdentifier(n)&&(r=o(n));if(r&&!("identifier"in r&&"undefined"===r.identifier.text))return r;function o(n){var r,o=function(e){return e.symbol?e.symbol:t.checker.getSymbolAtLocation(e)}((r=n).original?r.original:r);return o&&t.synthNamesMap.get(e.getSymbolId(o).toString())||b(n,i,a)}}function v(n){return!n||(E(n)?!n.identifier.text:e.every(n.elements,v))}function h(e){return E(e)?e.identifier:e.bindingPattern}function b(e,n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),{kind:0,identifier:e,types:n,numberOfAssignmentsOriginal:t}}function E(e){return 0===e.kind}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){i=!0;var a=e.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t)});return i?[n.createCodeFixAction(r,a,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,a,function(n,t){return o(n,t.file,t.start,e.program.getTypeChecker(),e)})}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(t||(t={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n,t,r,a){for(var i=0,o=n.imports;i<o.length;i++){var s=o[i],l=e.getResolvedModule(n,s.text);if(l&&l.resolvedFileName===t.fileName){var c=e.importFromModuleSpecifier(s);switch(c.kind){case 249:r.replaceNode(n,c,e.makeImport(c.name,void 0,s,a));break;case 192:e.isRequireCall(c,!1)&&r.replaceNode(n,c,e.createPropertyAccess(e.getSynthesizedDeepClone(c),"default"))}}}}function r(n,t){n.forEachChild(function r(a){if(e.isPropertyAccessExpression(a)&&e.isExportsOrModuleExportsOrAlias(n,a.expression)){var i=a.parent;t(a,e.isBinaryExpression(i)&&i.left===a&&60===i.operatorToken.kind)}a.forEachChild(r)})}function a(t,r,a,p,f,g,_,y){switch(r.kind){case 220:return function(t,r,a,i,o,l,m){var p=r.declarationList,f=!1,g=e.flatMap(p.declarations,function(r){var g=r.name,_=r.initializer;if(_){if(e.isExportsOrModuleExportsOrAlias(t,_))return f=!0,[];if(e.isRequireCall(_,!0))return f=!0,function(t,r,a,i,o,l,c,m){switch(r.kind){case 185:var p=e.mapAllOrFail(r.elements,function(n){return n.dotDotDotToken||n.initializer||n.propertyName&&!e.isIdentifier(n.propertyName)||!e.isIdentifier(n.name)?void 0:d(n.propertyName&&n.propertyName.text,n.name.text)});if(p)return[e.makeImport(void 0,p,a,m)];case 186:var f=s(n.moduleSpecifierToValidIdentifier(a.text,c),l);return[e.makeImport(e.createIdentifier(f),void 0,a,m),u(void 0,e.getSynthesizedDeepClone(r),e.createIdentifier(f))];case 73:return function(n,t,r,a,i,o,l){for(var c=i.getSymbolAtLocation(t),d=e.createMap(),u=!1,m=0,p=o.original.get(t.text);m<p.length;m++){var f=p[m];if(i.getSymbolAtLocation(f)===c&&f!==t){var g=f.parent;if(e.isPropertyAccessExpression(g)){var _=g.expression,y=g.name.text;e.Debug.assert(_===f);var v=d.get(y);void 0===v&&(v=s(y,o),d.set(y,v)),a.replaceNode(n,g,e.createIdentifier(v))}else u=!0}}var h=0===d.size?void 0:e.arrayFrom(e.mapIterator(d.entries(),function(n){var t=n[0],r=n[1];return e.createImportSpecifier(t===r?void 0:e.createIdentifier(t),e.createIdentifier(r))}));h||(u=!0);return[e.makeImport(u?e.getSynthesizedDeepClone(t):void 0,h,r,l)]}(t,r,a,i,o,l,m);default:return e.Debug.assertNever(r)}}(t,g,_.arguments[0],a,i,o,l,m);if(e.isPropertyAccessExpression(_)&&e.isRequireCall(_.expression,!0))return f=!0,function(n,t,r,a,i){switch(n.kind){case 185:case 186:var o=s(t,a);return[c(o,t,r,i),u(void 0,n,e.createIdentifier(o))];case 73:return[c(n.text,t,r,i)];default:return e.Debug.assertNever(n)}}(g,_.name.text,_.expression.arguments[0],o,m)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([r],p.flags))});f&&a.replaceNodeWithNodes(t,r,g)}(t,r,p,a,f,g,y),!1;case 222:var v=r.expression;switch(v.kind){case 192:return e.isRequireCall(v,!0)&&p.replaceNode(t,r,e.makeImport(void 0,void 0,v.arguments[0],y)),!1;case 205:return 60===v.operatorToken.kind&&function(n,t,r,a,s){var c=r.left,d=r.right;if(!e.isPropertyAccessExpression(c))return!1;if(e.isExportsOrModuleExportsOrAlias(n,c)){if(!e.isExportsOrModuleExportsOrAlias(n,d)){var p=e.isObjectLiteralExpression(d)?(f=d,(g=e.mapAllOrFail(f.properties,function(n){switch(n.kind){case 159:case 160:case 277:case 278:return;case 276:return e.isIdentifier(n.name)?function(n,t){var r=[e.createToken(86)];switch(t.kind){case 197:var a=t.name;if(a&&a.text!==n)return i();case 198:return l(n,r,t);case 210:return function(n,t,r){return e.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),e.getSynthesizedDeepClones(r.members))}(n,r,t);default:return i()}function i(){return u(r,e.createIdentifier(n),t)}}(n.name.text,n.initializer):void 0;case 157:return e.isIdentifier(n.name)?l(n.name.text,[e.createToken(86)],n):void 0;default:e.Debug.assertNever(n)}}))&&[g,!1]):e.isRequireCall(d,!0)?function(n,t){var r=n.text,a=t.getSymbolAtLocation(n),s=a?a.exports:e.emptyUnderscoreEscapedMap;return s.has("export=")?[[o(r)],!0]:s.has("default")?s.size>1?[[i(r),o(r)],!0]:[[o(r)],!0]:[[i(r)],!1]}(d.arguments[0],t):void 0;return p?(a.replaceNodeWithNodes(n,r.parent,p[0]),p[1]):(a.replaceRangeWithText(n,e.createRange(c.getStart(n),d.pos),"export default"),!0)}a.delete(n,r.parent)}else e.isExportsOrModuleExportsOrAlias(n,c.expression)&&function(n,t,r,a){var i=t.left.name.text,o=a.get(i);if(void 0!==o){var s=[u(void 0,o,t.right),m([e.createExportSpecifier(o,i)])];r.replaceNodeWithNodes(n,t.parent,s)}else!function(n,t,r){var a=n.left,i=n.right,o=n.parent,s=a.name.text;if(!(e.isFunctionExpression(i)||e.isArrowFunction(i)||e.isClassExpression(i))||i.name&&i.name.text!==s)r.replaceNodeRangeWithNodes(t,a.expression,e.findChildOfKind(a,24,t),[e.createToken(86),e.createToken(78)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:a.getStart(t),end:i.getStart(t)},e.createToken(86),{suffix:" "}),i.name||r.insertName(t,i,s);var l=e.findChildOfKind(o,26,t);l&&r.delete(t,l)}}(t,n,r)}(n,r,a,s);var f,g;return!1}(t,a,v,p,_)}default:return!1}}function i(e){return m(void 0,e)}function o(n){return m([e.createExportSpecifier(void 0,"default")],n)}function s(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_"+e;return n.additional.set(e,!0),e}function l(n,t,r){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(r.body)))}function c(n,t,r,a){return"default"===t?e.makeImport(e.createIdentifier(n),void 0,r,a):e.makeImport(void 0,[d(t,n)],r,a)}function d(n,t){return e.createImportSpecifier(void 0!==n&&n!==t?e.createIdentifier(n):void 0,e.createIdentifier(t))}function u(n,t,r){return e.createVariableStatement(n,e.createVariableDeclarationList([e.createVariableDeclaration(t,void 0,r)],2))}function m(n,t){return e.createExportDeclaration(void 0,void 0,n&&e.createNamedExports(n),void 0===t?void 0:e.createLiteral(t))}n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(i){var o=i.sourceFile,l=i.program,c=i.preferences,d=e.textChanges.ChangeTracker.with(i,function(n){if(function(n,t,i,o,l){var c={original:(u=n,m=e.createMultiMap(),function n(t,r){e.isIdentifier(t)&&function(e){var n=e.parent;switch(n.kind){case 190:return n.name!==e;case 187:case 254:return n.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild(function(e){return n(e,r)})}(u,function(e){return m.add(e.text,e)}),m),additional:e.createMap()},d=function(n,t,a){var i=e.createMap();return r(n,function(n){var r=n.name,o=r.text,l=r.originalKeywordKind;!i.has(o)&&(void 0!==l&&e.isNonContextualKeyword(l)||t.resolveName(n.name.text,n,111551,!0))&&i.set(o,s("_"+o,a))}),i}(n,t,c);var u,m;!function(n,t,a){r(n,function(r,i){if(!i){var o=r.name.text;a.replaceNode(n,r,e.createIdentifier(t.get(o)||o))}})}(n,d,i);for(var p=!1,f=0,g=n.statements;f<g.length;f++){var _=g[f],y=a(n,_,t,i,c,o,d,l);p=p||y}return p}(o,l.getTypeChecker(),n,l.getCompilerOptions().target,e.getQuotePreference(o,c)))for(var i=0,d=l.getSourceFiles();i<d.length;i++){var u=d[i];t(u,o,n,e.getQuotePreference(u,c))}});return[n.createCodeFixActionNoFixId("convertToEs6Module",d,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="correctQualifiedNameToIndexedAccessType",r=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function a(n,t){var r=e.findAncestor(e.getTokenAtPosition(n,t),e.isQualifiedName);return e.Debug.assert(!!r,"Expected position to be owned by a qualified name."),e.isIdentifier(r.left)?r:void 0}function i(n,t,r){var a=r.right.text,i=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(r.left,void 0),e.createLiteralTypeNode(e.createLiteral(a)));n.replaceNode(t,r,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=a(r.sourceFile,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,o)}),l=o.left.text+'["'+o.right.text+'"]';return[n.createCodeFixAction(t,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,l],t,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],r="fixClassIncorrectlyImplementsInterface";function a(n,t){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(n,t)))}function i(n){return!(8&e.getModifierFlags(n.valueDeclaration))}function o(t,r,a,o,s,l){var c=t.program.getTypeChecker(),d=function(n,t){var r=e.getEffectiveBaseTypeNode(n);if(!r)return e.createSymbolTable();var a=t.getTypeAtLocation(r),o=t.getPropertiesOfType(a);return e.createSymbolTable(o.filter(i))}(o,c),u=c.getTypeAtLocation(r),m=c.getPropertiesOfType(u).filter(e.and(i,function(e){return!d.has(e.escapedName)})),p=c.getTypeAtLocation(o);function f(e,r){var i=c.getIndexInfoOfType(e,r);i&&s.insertNodeAtClassStart(a,o,c.indexInfoToIndexSignatureDeclaration(i,r,o,void 0,n.getNoopSymbolTrackerWithResolver(t)))}p.getNumberIndexType()||f(u,1),p.getStringIndexType()||f(u,0),n.createMissingMemberNodes(o,m,t,l,function(e){return s.insertNodeAtClassStart(a,o,e)})}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var i=t.sourceFile,s=t.span,l=a(i,s.start);return e.mapDefined(e.getClassImplementsHeritageClauseElements(l),function(a){var s=e.textChanges.ChangeTracker.with(t,function(e){return o(t,a,i,l,e,t.preferences)});return 0===s.length?void 0:n.createCodeFixAction(r,s,[e.Diagnostics.Implement_interface_0,a.getText(i)],r,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[r],getAllCodeActions:function(r){var i=e.createMap();return n.codeFixAll(r,t,function(n,t){var s=a(t.file,t.start);if(e.addToSeen(i,e.getNodeId(s)))for(var l=0,c=e.getClassImplementsHeritageClauseElements(s);l<c.length;l++){var d=c[l];o(r,d,t.file,s,n,r.preferences)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){n.importFixId="fixMissingImport";var t,r,a=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function i(n,t){return!(111551&e.skipAlias(n,t).flags)}function l(n,t,r,a,i,s,l){var u=a.getTypeChecker(),m=e.flatMap(n,function(n){return function(n,t,r){var a=n.moduleSymbol,i=n.importKind;return n.exportedSymbolIsTypeOnly&&e.isSourceFileJS(r)?e.emptyArray:e.mapDefined(r.imports,function(n){var r=e.importFromModuleSpecifier(n);return 250!==r.kind&&249!==r.kind||t.getSymbolAtLocation(n)!==a?void 0:{declaration:r,importKind:i}})}(n,u,i)}),p=void 0===r?void 0:function(n,t,r,a){return e.firstDefined(n,function(n){var i=n.declaration,o=function(n){if(250===n.kind){var t=n.importClause&&e.isImportClause(n.importClause)&&n.importClause.namedBindings;return t&&252===t.kind?t.name:void 0}return n.name}(i);if(o){var s=a.getAliasedSymbol(a.getSymbolAtLocation(o));if(s&&s.exports.has(e.escapeLeadingUnderscores(t)))return{kind:0,namespacePrefix:o.text,position:r}}})}(m,t,r,u),f=function(n){return e.firstDefined(n,function(e){var n=e.declaration,t=e.importKind;if(250===n.kind){var r=n.importClause;if(r){var a=r.name,i=r.namedBindings;return 1===t&&!a||0===t&&(!i||253===i.kind)?{kind:2,importClause:r,importKind:t}:void 0}}})}(m),g=f?[f]:function(n,t,r,a,i,o,s){var l=e.firstDefined(t,d);return l?[l]:c(r,a,i,n,o,s)}(n,m,a,i,r,s,l);return o(p?[p]:e.emptyArray,g)}function c(n,t,r,a,i,o){var s=e.isSourceFileJS(t),l=e.flatMap(a,function(a){var l=a.moduleSymbol,c=a.importKind,d=a.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(l,n.getCompilerOptions(),t,i,n.getSourceFiles(),o,n.redirectTargetsMap).map(function(n){return d&&s?{kind:1,moduleSpecifier:n,position:e.Debug.assertDefined(r)}:{kind:3,moduleSpecifier:n,importKind:c}})});return e.sort(l,function(e,n){return e.moduleSpecifier.length-n.moduleSpecifier.length})}function d(n){var t=n.declaration,r=n.importKind,a=250===t.kind?t.moduleSpecifier:260===t.moduleReference.kind?t.moduleReference.expression:void 0;return a&&e.isStringLiteral(a)?{kind:3,moduleSpecifier:a.text,importKind:r}:void 0}function u(n,t,r){var a=e.getTokenAtPosition(n.sourceFile,r),o=t===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(n,t){var r=n.sourceFile,a=n.program,i=n.host,o=n.preferences,s=a.getTypeChecker(),c=function(n,t){var r=e.isIdentifier(n)?t.getSymbolAtLocation(n):void 0;if(e.isUMDExportSymbol(r))return r;var a=n.parent;return e.isJsxOpeningLikeElement(a)&&a.tagName===n||e.isJsxOpeningFragment(a)?e.tryCast(t.resolveName(t.getJsxNamespace(a),e.isJsxOpeningLikeElement(a)?n:a,111551,!1),e.isUMDExportSymbol):void 0}(t,s);if(!c)return;var d=s.getAliasedSymbol(c),u=c.name;return{fixes:l([{moduleSymbol:d,importKind:function(n,t){if(e.getAllowSyntheticDefaultImports(t))return 1;var r=e.getEmitModuleKind(t);switch(r){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(n)?e.isExternalModule(n)?2:4:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(r)}}(r,a.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],u,e.isIdentifier(t)?t.getStart(r):void 0,a,r,i,o),symbolName:u}}(n,a):e.isIdentifier(a)?function(n,t){var r=n.sourceFile,a=n.program,o=n.cancellationToken,s=n.host,c=n.preferences,d=a.getTypeChecker(),u=e.isJsxOpeningLikeElement(t.parent)&&t.parent.tagName===t&&(e.isIntrinsicJsxName(t.text)||d.resolveName(t.text,t,67108863,!1))?d.getJsxNamespace(r):t.text;return e.Debug.assert("default"!==u),{fixes:e.arrayFrom(e.flatMapIterator(function(n,t,r,a,o,s){var l=e.createMultiMap();function c(n,t,r){l.add(e.getUniqueSymbolId(t,o).toString(),{moduleSymbol:n,importKind:r,exportedSymbolIsTypeOnly:i(t,o)})}return b(o,a,s.getSourceFiles(),function(e){r.throwIfCancellationRequested();var i=m(a,e,o,s.getCompilerOptions());i&&i.name===n&&h(i.symbolForMeaning,t)&&c(e,i.symbol,i.kind);var l=o.tryGetMemberInModuleExportsAndProperties(n,e);l&&h(l,t)&&c(e,l,0)}),l}(u,e.getMeaningFromLocation(t),o,r,d,a).entries(),function(e){return e[0],l(e[1],u,t.getStart(r),a,r,s,c)})),symbolName:u}}(n,a):void 0;return o&&s(s({},o),{fixes:e.sort(o.fixes,function(e,n){return e.kind-n.kind})})}function m(n,t,r,a){var i=function(n,t,r,a){var i=r.tryGetMemberInModuleExports("default",t);if(i)return{symbol:i,kind:1};var o=r.resolveExternalModuleSymbol(t);return o===t?void 0:{symbol:o,kind:function(n,t,r){if(e.getAllowSyntheticDefaultImports(t)&&e.getEmitModuleKind(t)>=e.ModuleKind.ES2015)return 1;if(e.isInJSFile(n))return e.isExternalModule(n)?1:4;for(var a=0,i=n.statements;a<i.length;a++){var o=i[a];if(e.isImportEqualsDeclaration(o))return 3;if(e.isImportDeclaration(o)&&o.importClause&&o.importClause.name){var s=r.getImmediateAliasedSymbol(o.importClause.symbol);if(s&&"default"!==s.name)return 1}}return 3}(n,a,r)}}(n,t,r,a);if(i){var o=i.symbol,l=i.kind,c=function n(t,r,a,i){var o=e.getLocalSymbolForExportDefault(t);if(o)return{symbolForMeaning:o,name:o.name};var s=(l=t,l.declarations&&e.firstDefined(l.declarations,function(n){if(e.isExportAssignment(n)){if(e.isIdentifier(n.expression))return n.expression.text}else if(e.isExportSpecifier(n))return e.Debug.assert("default"===n.name.text),n.propertyName&&n.propertyName.text}));var l;if(void 0!==s)return{symbolForMeaning:t,name:s};if(2097152&t.flags){var c=a.getImmediateAliasedSymbol(t);return c&&n(c,e.Debug.assertDefined(c.parent),a,i)}if("default"!==t.escapedName&&"export="!==t.escapedName)return{symbolForMeaning:t,name:t.getName()};return{symbolForMeaning:t,name:T(r,i.target)}}(o,t,r,a);return c&&s({symbol:o,kind:l},c)}}function p(t,r,a,i,o){var s,l=e.textChanges.ChangeTracker.with(t,function(n){s=function(n,t,r,a,i){switch(a.kind){case 0:return g(n,t,a),[e.Diagnostics.Change_0_to_1,r,a.namespacePrefix+"."+r];case 1:return _(n,t,a,i),[e.Diagnostics.Change_0_to_1,r,y(a.moduleSpecifier,i)+r];case 2:var o=a.importClause,s=a.importKind;f(n,t,o,1===s?r:void 0,0===s?[r]:e.emptyArray);var l=e.stripQuotes(o.parent.moduleSpecifier.getText());return[1===s?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,r,l];case 3:var s=a.importKind,c=a.moduleSpecifier;return v(n,t,c,i,1===s?{defaultImport:r,namedImports:e.emptyArray,namespaceLikeImport:void 0}:0===s?{defaultImport:void 0,namedImports:[r],namespaceLikeImport:void 0}:{defaultImport:void 0,namedImports:e.emptyArray,namespaceLikeImport:{importKind:s,name:r}}),[1===s?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,r,c];default:return e.Debug.assertNever(a)}}(n,r,a,i,o)});return n.createCodeFixAction("import",l,s,n.importFixId,e.Diagnostics.Add_all_missing_imports)}function f(n,t,r,a,i){if(a&&(e.Debug.assert(!r.name),n.insertNodeAt(t,r.getStart(t),e.createIdentifier(a),{suffix:", "})),i.length){var o=i.map(function(n){return e.createImportSpecifier(void 0,e.createIdentifier(n))});if(r.namedBindings&&e.cast(r.namedBindings,e.isNamedImports).elements.length)for(var s=0,l=o;s<l.length;s++){var c=l[s];n.insertNodeInListAfter(t,e.last(e.cast(r.namedBindings,e.isNamedImports).elements),c)}else if(o.length){var d=e.createNamedImports(o);r.namedBindings?n.replaceNode(t,r.namedBindings,d):n.insertNodeAfter(t,e.Debug.assertDefined(r.name),d)}}}function g(e,n,t){var r=t.namespacePrefix,a=t.position;e.insertText(n,a,r+".")}function _(e,n,t,r){var a=t.moduleSpecifier,i=t.position;e.insertText(n,i,y(a,r))}function y(n,t){var r=e.getQuoteFromPreference(t);return"import("+r+n+r+")."}function v(n,t,r,a,i){var o=i.defaultImport,s=i.namedImports,l=i.namespaceLikeImport,c=e.makeStringLiteral(r,a);(void 0!==o||s.length)&&e.insertImport(n,t,e.makeImport(void 0===o?void 0:e.createIdentifier(o),s.map(function(n){return e.createImportSpecifier(void 0,e.createIdentifier(n))}),r,a)),l&&e.insertImport(n,t,3===l.importKind?e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(l.name),e.createExternalModuleReference(c)):4===l.importKind?function(n,t){return e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createIdentifier(n),void 0,e.createCall(e.createIdentifier("require"),void 0,[t]))],2))}(l.name,c):e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(l.name))),c))}function h(n,t){var r=n.declarations;return e.some(r,function(n){return!!(e.getMeaningFromDeclaration(n)&t)})}function b(n,t,r,a){E(n,r,function(n,r){var i,o,s;(void 0===r||r!==t&&(i=t.fileName,o=r.fileName,void 0===(s=e.forEachAncestorDirectory(o,function(n){return"node_modules"===e.getBaseFileName(n)?n:void 0}))||e.startsWith(i,e.getDirectoryPath(s))))&&a(n)})}function E(n,t,r){for(var a=0,i=n.getAmbientModules();a<i.length;a++){r(i[a],void 0)}for(var o=0,s=t;o<s.length;o++){var l=s[o];e.isExternalOrCommonJsModule(l)&&r(n.getMergedSymbol(l.symbol),l)}}function T(n,t){return S(e.removeFileExtension(e.stripQuotes(n.name)),t)}function S(n,t){var r=e.getBaseFileName(e.removeSuffix(n,"/index")),a="",i=!0,o=r.charCodeAt(0);e.isIdentifierStart(o,t)?a+=String.fromCharCode(o):i=!1;for(var s=1;s<r.length;s++){var l=r.charCodeAt(s),c=e.isIdentifierPart(l,t);if(c){var d=String.fromCharCode(l);i||(d=d.toUpperCase()),a+=d}i=c}return e.isStringANonContextualKeyword(a)?"_"+a:a||"_"}n.registerCodeFix({errorCodes:a,getCodeActions:function(n){var t=n.errorCode,r=n.preferences,a=n.sourceFile,i=n.span,o=u(n,t,i.start);if(o){var s=o.fixes,l=o.symbolName,c=e.getQuotePreference(a,r);return s.map(function(e){return p(n,a,l,e,c)})}},fixIds:[n.importFixId],getAllCodeActions:function(t){var r=t.sourceFile,i=t.preferences,o=[],s=[],l=e.createMap(),c=e.createMap();return n.eachDiagnostic(t,a,function(n){var r=u(t,n.code,n.start);if(r&&r.fixes.length){var a=r.fixes,i=r.symbolName,d=e.first(a);switch(d.kind){case 0:o.push(d);break;case 1:s.push(d);break;case 2:var m=d.importClause,p=d.importKind,f=String(e.getNodeId(m));(g=l.get(f))||l.set(f,g={importClause:m,defaultImport:void 0,namedImports:[]}),0===p?e.pushIfUnique(g.namedImports,i):(e.Debug.assert(void 0===g.defaultImport||g.defaultImport===i),g.defaultImport=i);break;case 3:var g,_=d.moduleSpecifier;p=d.importKind;switch((g=c.get(_))||c.set(_,g={defaultImport:void 0,namedImports:[],namespaceLikeImport:void 0}),p){case 1:e.Debug.assert(void 0===g.defaultImport||g.defaultImport===i),g.defaultImport=i;break;case 0:e.pushIfUnique(g.namedImports,i);break;case 3:case 2:e.Debug.assert(void 0===g.namespaceLikeImport||g.namespaceLikeImport.name===i),g.namespaceLikeImport={importKind:p,name:i}}break;default:e.Debug.assertNever(d)}}}),n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,function(n){for(var t=e.getQuotePreference(r,i),a=0,d=o;a<d.length;a++){var u=d[a];g(n,r,u)}for(var m=0,p=s;m<p.length;m++){u=p[m];_(n,r,u,t)}l.forEach(function(e){var t=e.importClause,a=e.defaultImport,i=e.namedImports;f(n,r,t,a,i)}),c.forEach(function(e,a){v(n,r,a,t,e)})}))}}),function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(t||(t={})),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.Equals=3]="Equals",e[e.ConstEquals=4]="ConstEquals"}(r||(r={})),n.getImportCompletionAction=function(n,t,r,a,o,s,d,u,f){var g=function(n,t,r,a,o,s,l,c){var d=[];return E(l,c,function(c,u){if(!u||c===r||!e.startsWith(o.fileName,e.getDirectoryPath(u.fileName))){var p=m(n,c,l,s);p&&p.name===a&&e.skipAlias(p.symbol,l)===t&&d.push({moduleSymbol:c,importKind:p.kind,exportedSymbolIsTypeOnly:i(p.symbol,l)});for(var f=0,g=l.getExportsOfModule(c);f<g.length;f++){var _=g[f];_.name===a&&e.skipAlias(_,l)===t&&d.push({moduleSymbol:c,importKind:0,exportedSymbolIsTypeOnly:i(_,l)})}}}),d}(r,n,t,a,r,s.getCompilerOptions(),s.getTypeChecker(),s.getSourceFiles());e.Debug.assert(g.some(function(e){return e.moduleSymbol===t}));var _,y,v,h,b=e.first(c(s,r,u,g,o,f)).moduleSpecifier,T=e.first(l(g,a,u,s,r,o,f));return{moduleSpecifier:b,codeAction:(_=p({host:o,formatContext:d},r,a,T,e.getQuotePreference(r,f)),y=_.description,v=_.changes,h=_.commands,{description:y,changes:v,commands:h})}},n.forEachExternalModuleToImportFrom=b,n.moduleSymbolToValidIdentifier=T,n.moduleSpecifierToValidIdentifier=S}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code];function r(n,t,r){var a,i=e.getTokenAtPosition(n,t),o=r.program.getTypeChecker();if(e.isPropertyAccessExpression(i.parent)&&i.parent.name===i){e.Debug.assert(73===i.kind);var s=o.getTypeAtLocation(i.parent.expression);a=o.getSuggestionForNonexistentProperty(i,s)}else if(e.isImportSpecifier(i.parent)&&i.parent.name===i){e.Debug.assert(73===i.kind);var l=function(n,t,r){if(!r||!e.isStringLiteralLike(r.moduleSpecifier))return;var a=e.getResolvedModule(n,r.moduleSpecifier.text);return a?t.program.getSourceFile(a.resolvedFileName):void 0}(n,r,e.findAncestor(i,e.isImportDeclaration));l&&l.symbol&&(a=o.getSuggestionForNonexistentExport(i,l.symbol))}else{var c=e.getMeaningFromLocation(i),d=e.getTextOfNode(i);e.Debug.assert(void 0!==d,"name should be defined"),a=o.getSuggestionForNonexistentSymbol(i,d,function(e){var n=0;4&e&&(n|=1920);2&e&&(n|=788968);1&e&&(n|=111551);return n}(c))}return void 0===a?void 0:{node:i,suggestion:a}}function a(n,t,r,a,i){!e.isIdentifierText(a,i)&&e.isPropertyAccessExpression(r.parent)?n.replaceNode(t,r.parent,e.createElementAccess(r.parent.expression,e.createLiteral(a))):n.replaceNode(t,r,e.createIdentifier(a))}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var i=t.sourceFile,o=r(i,t.span.start,t);if(o){var s=o.node,l=o.suggestion,c=t.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(t,function(e){return a(e,i,s,l,c)});return[n.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,l],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return n.codeFixAll(e,t,function(n,t){var i=r(t.file,t.start,e),o=e.host.getCompilationSettings().target;i&&a(n,e.sourceFile,i.node,i.suggestion,o)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="addMissingMember",a=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],i="addMissingMember";function o(n,t,r,a){var i=e.getTokenAtPosition(n,t);if(e.isIdentifier(i)){var o=i.parent;if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(r.getTypeAtLocation(o.expression)),l=s.symbol;if(l&&l.declarations){var c=e.find(l.declarations,e.isClassLike)||e.find(l.declarations,e.isInterfaceDeclaration);if(c&&!a.isSourceFileFromExternalLibrary(c.getSourceFile())){var d=(s.target||s)!==r.getDeclaredTypeOfSymbol(l),u=c.getSourceFile();return{kind:1,token:i,parentDeclaration:c,makeStatic:d,declSourceFile:u,inJs:e.isSourceFileJS(u),call:e.tryCast(o.parent,e.isCallExpression)}}var m=e.find(l.declarations,e.isEnumDeclaration);return m&&!a.isSourceFileFromExternalLibrary(m.getSourceFile())?{kind:0,token:i,parentDeclaration:m}:void 0}}}}function s(n,t,r,a,i){if(i){if(210===r.kind)return;var o=r.name.getText(),s=l(e.createIdentifier(o),a);n.insertNodeAfter(t,r,s)}else{var c=e.getFirstConstructorWithBody(r);if(!c)return;var d=l(e.createThis(),a);n.insertNodeAtConstructorEnd(t,c,d)}}function l(n,t){return e.createStatement(e.createAssignment(e.createPropertyAccess(n,t),e.createIdentifier("undefined")))}function c(n,t,r){var a;if(205===r.parent.parent.kind){var i=r.parent.parent,o=r.parent===i.left?i.right:i.left,s=n.getWidenedType(n.getBaseTypeOfLiteralType(n.getTypeAtLocation(o)));a=n.typeToTypeNode(s,t)}else{var l=n.getContextualType(r.parent);a=l?n.typeToTypeNode(l):void 0}return a||e.createKeywordTypeNode(121)}function d(n,t,r,a,i,o){var s=e.createProperty(void 0,o?[e.createToken(117)]:void 0,a,void 0,i,void 0),l=function(n){for(var t,r=0,a=n.members;r<a.length;r++){var i=a[r];if(!e.isPropertyDeclaration(i))break;t=i}return t}(r);l?n.insertNodeAfter(t,l,s):n.insertNodeAtClassStart(t,r,s)}function u(t,r,a,i,o,s,l,c,d){var u=n.createMethodFromCallExpression(t,s,o.text,c,l,d,i),m=e.getAncestor(s,157);m&&m.parent===i?r.insertNodeAfter(a,m,u):r.insertNodeAtClassStart(a,i,u)}function m(n,t,r,a){var i=e.some(a.members,function(e){var n=t.getTypeAtLocation(e);return!!(n&&132&n.flags)}),o=e.createEnumMember(r,i?e.createStringLiteral(r.text):void 0);n.replaceNode(a.getSourceFile(),a,e.updateEnumDeclaration(a,a.decorators,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(o))))}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){var a=o(t.sourceFile,t.span.start,t.program.getTypeChecker(),t.program);if(a){if(0===a.kind){var l=a.token,p=a.parentDeclaration,f=e.textChanges.ChangeTracker.with(t,function(e){return m(e,t.program.getTypeChecker(),l,p)});return[n.createCodeFixAction(r,f,[e.Diagnostics.Add_missing_enum_member_0,l.text],i,e.Diagnostics.Add_all_missing_members)]}var g=a.parentDeclaration,_=a.declSourceFile,y=a.inJs,v=a.makeStatic,h=a.token,b=a.call,E=b&&function(t,a,o,s,l,c,d,m){var p=e.textChanges.ChangeTracker.with(t,function(e){return u(t,e,a,o,s,l,c,d,m)});return n.createCodeFixAction(r,p,[c?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,s.text],i,e.Diagnostics.Add_all_missing_members)}(t,_,g,h,b,v,y,t.preferences),T=y&&!e.isInterfaceDeclaration(g)?e.singleElementArray(function(t,a,o,l,c){var d=e.textChanges.ChangeTracker.with(t,function(e){return s(e,a,o,l,c)});return 0===d.length?void 0:n.createCodeFixAction(r,d,[c?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,l],i,e.Diagnostics.Add_all_missing_members)}(t,_,g,h.text,v)):function(t,a,o,s,l){var u=c(t.program.getTypeChecker(),o,s),m=function(t,a,o,s,l,c){var u=e.textChanges.ChangeTracker.with(t,function(e){return d(e,a,o,l,c,s)});return n.createCodeFixAction(r,u,[s?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],i,e.Diagnostics.Add_all_missing_members)}(t,a,o,l,s.text,u);return l?[m]:[m,function(t,a,i,o,s){var l=e.createKeywordTypeNode(139),c=e.createParameter(void 0,void 0,void 0,"x",void 0,l,void 0),d=e.createIndexSignature(void 0,void 0,[c],s),u=e.textChanges.ChangeTracker.with(t,function(e){return e.insertNodeAtClassStart(a,i,d)});return n.createCodeFixActionNoFixId(r,u,[e.Diagnostics.Add_index_signature_for_property_0,o])}(t,a,o,s.text,u)]}(t,_,g,h,v);return e.concatenate(e.singleElementArray(E),T)}},fixIds:[i],getAllCodeActions:function(t){var r=t.program,i=t.preferences,l=r.getTypeChecker(),p=e.createMap(),f=new e.NodeMap;return n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,function(g){n.eachDiagnostic(t,a,function(n){var r=o(n.file,n.start,l,t.program);if(r&&e.addToSeen(p,e.getNodeId(r.parentDeclaration)+"#"+r.token.text))if(0===r.kind){var a=r.token,i=r.parentDeclaration;m(g,l,a,i)}else{i=r.parentDeclaration;var s=r.token,c=f.getOrUpdate(i,function(){return[]});c.some(function(e){return e.token.text===s.text})||c.push(r)}}),f.forEach(function(n,a){for(var o=function(n,t){var r=[];for(;n;){var a=e.getClassExtendsHeritageElement(n),i=a&&t.getSymbolAtLocation(a.expression),o=i&&e.find(i.declarations,e.isClassLike);o&&r.push(o),n=o}return r}(a,l),m=function(n){if(o.some(function(e){var t=f.get(e);return!!t&&t.some(function(e){return e.token.text===n.token.text})}))return"continue";var a=n.parentDeclaration,l=n.declSourceFile,m=n.inJs,p=n.makeStatic,_=n.token,y=n.call;if(y)u(t,g,l,a,_,y,p,m,i);else if(m&&!e.isInterfaceDeclaration(a))s(g,l,a,_.text,p);else{var v=c(r.getTypeChecker(),a,_);d(g,l,a,_.text,v,p)}},p=0,_=n;p<_.length;p++){m(_[p])}})}))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(t||(t={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingNewOperator",r=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function a(n,t,r){var a=e.cast(function(n,t){var r=e.getTokenAtPosition(n,t.start),a=e.textSpanEnd(t);for(;r.end<a;)r=r.parent;return r}(t,r),e.isCallExpression),i=e.createNew(a.expression,a.typeArguments,a.arguments);n.replaceNode(t,a,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,o=r.span,s=e.textChanges.ChangeTracker.with(r,function(e){return a(e,i,o)});return[n.createCodeFixAction(t,s,e.Diagnostics.Add_missing_new_operator_to_call,t,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){return a(n,e.sourceFile,t)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=e.Diagnostics.Cannot_find_module_0.code,r=[t,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,n){return{type:"install package",file:e,packageName:n}}function i(n,t){var r=e.cast(e.getTokenAtPosition(n,t),e.isStringLiteral).text,a=e.parsePackageName(r).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}function o(n,r,a){return a===t?e.JsTyping.nodeCoreModules.has(n)?"@types/node":void 0:r.isKnownTypesPackageName(n)?e.getTypesPackageName(n):void 0}n.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.host,s=t.sourceFile,l=i(s,t.span.start);if(void 0!==l){var c=o(l,r,t.errorCode);return void 0===c?[]:[n.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,c],"installTypesPackage",e.Diagnostics.Install_all_missing_types_packages,a(s.fileName,c))]}},fixIds:["installTypesPackage"],getAllCodeActions:function(t){return n.codeFixAll(t,r,function(n,r,s){var l=i(r.file,r.start);if(void 0!==l)switch(t.fixId){case"installTypesPackage":var c=o(l,t.host,r.code);c&&s.push(a(r.file.fileName,c));break;default:e.Debug.fail("Bad fixId: "+t.fixId)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],r="fixClassDoesntImplementInheritedAbstractMember";function a(n,t){var r=e.getTokenAtPosition(n,t);return e.cast(r.parent,e.isClassLike)}function i(t,r,a,i,s){var l=e.getEffectiveBaseTypeNode(t),c=a.program.getTypeChecker(),d=c.getTypeAtLocation(l),u=c.getPropertiesOfType(d).filter(o);n.createMissingMemberNodes(t,u,a,s,function(e){return i.insertNodeAtClassStart(r,t,e)})}function o(n){var t=e.getModifierFlags(e.first(n.getDeclarations()));return!(8&t||!(128&t))}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=t.sourceFile,s=t.span,l=e.textChanges.ChangeTracker.with(t,function(e){return i(a(o,s.start),o,t,e,t.preferences)});return 0===l.length?void 0:[n.createCodeFixAction(r,l,e.Diagnostics.Implement_inherited_abstract_class,r,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();return n.codeFixAll(r,t,function(n,t){var s=a(t.file,t.start);e.addToSeen(o,e.getNodeId(s))&&i(s,r.sourceFile,r,n,r.preferences)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="classSuperMustPrecedeThisAccess",r=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function a(e,n,t,r){e.insertNodeAtConstructorStart(n,t,r),e.delete(n,r)}function i(n,t){var r=e.getTokenAtPosition(n,t);if(101===r.kind){var a=e.getContainingFunction(r),i=o(a.body);return i&&!i.expression.arguments.some(function(n){return e.isPropertyAccessExpression(n)&&n.expression===r})?{constructor:a,superCall:i}:void 0}}function o(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,l=i(o,s.start);if(l){var c=l.constructor,d=l.superCall,u=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,c,d)});return[n.createCodeFixAction(t,u,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,t,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[t],getAllCodeActions:function(t){var o=t.sourceFile,s=e.createMap();return n.codeFixAll(t,r,function(n,t){var r=i(t.file,t.start);if(r){var l=r.constructor,c=r.superCall;e.addToSeen(s,e.getNodeId(l.parent))&&a(n,o,l,c)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="constructorForDerivedNeedSuperCall",r=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(125===r.kind),r.parent}function i(n,t,r){var a=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));n.insertNodeAtConstructorStart(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,l=a(o,s.start),c=e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l)});return[n.createCodeFixAction(t,c,e.Diagnostics.Add_missing_super_call,t,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){return i(n,e.sourceFile,a(t.file,t.start))})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="enableExperimentalDecorators",r=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function a(t,r){n.setJsonCompilerOptionValue(t,r,"experimentalDecorators",e.createTrue())}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.program.getCompilerOptions().configFile;if(void 0!==i){var o=e.textChanges.ChangeTracker.with(r,function(e){return a(e,i)});return[n.createCodeFixActionNoFixId(t,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n){var t=e.program.getCompilerOptions().configFile;void 0!==t&&a(n,t)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingClass(r).heritageClauses,i=a[0].getFirstToken();return 87===i.kind?{extendsToken:i,heritageClauses:a}:void 0}function i(n,t,r,a){if(n.replaceNode(t,r,e.createToken(110)),2===a.length&&87===a[0].token&&110===a[1].token){var i=a[1].getFirstToken(),o=i.getFullStart();n.replaceRange(t,{pos:o,end:o},e.createToken(27));for(var s=t.text,l=i.end;l<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(l));)l++;n.deleteRange(t,{pos:i.getStart(),end:l})}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=a(o,r.span.start);if(s){var l=s.extendsToken,c=s.heritageClauses,d=e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l,c)});return[n.createCodeFixAction(t,d,e.Diagnostics.Change_extends_to_implements,t,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t.extendsToken,t.heritageClauses)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="forgottenThisPropertyAccess",r=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,a=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,r];function i(n,t,a){var i=e.getTokenAtPosition(n,t);if(e.isIdentifier(i))return{node:i,className:a===r?e.getContainingClass(i).name.text:void 0}}function o(n,t,r){var a=r.node,i=r.className;e.suppressLeadingAndTrailingTrivia(a),n.replaceNode(t,a,e.createPropertyAccess(i?e.createIdentifier(i):e.createThis(),a))}n.registerCodeFix({errorCodes:a,getCodeActions:function(r){var a=r.sourceFile,s=i(a,r.span.start,r.errorCode);if(s){var l=e.textChanges.ChangeTracker.with(r,function(e){return o(e,a,s)});return[n.createCodeFixAction(t,l,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],t,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,a,function(n,t){var r=i(t.file,t.start,t.code);r&&o(n,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="unusedIdentifier",r="unusedIdentifier_prefix",a="unusedIdentifier_delete",i="unusedIdentifier_infer",o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function s(n,t,r){n.replaceNode(t,r.parent,e.createKeywordTypeNode(144))}function l(r,i){return n.createCodeFixAction(t,r,i,a,e.Diagnostics.Delete_all_unused_declarations)}function c(n,t,r){n.delete(t,e.Debug.assertDefined(e.cast(r.parent,e.isDeclarationWithTypeParameterChildren).typeParameters))}function d(n){return 93===n.kind?e.tryCast(n.parent,e.isImportDeclaration):void 0}function u(n,t,r,a,i,o){if(18!==n.kind||!e.isObjectBindingPattern(n.parent))return!1;var s=n.parent.parent;return 152===s.kind?g(t,r,s,a,i,o):t.delete(r,s),!0}function m(n,t,r){var a=e.tryCast(t.parent,e.isVariableDeclarationList);return!(!a||a.getChildren(n)[0]!==t)&&(r.delete(n,220===a.parent.kind?a.parent:a),!0)}function p(n,t,r,a){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(128===a.kind&&(a=e.cast(a.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(a)&&function(e){switch(e.parent.kind){case 152:case 151:return!0;case 238:var n=e.parent;switch(n.parent.parent.kind){case 228:case 227:return!0}}return!1}(a)&&n.replaceNode(r,a,e.createIdentifier("_"+a.text)))}function f(n,t,r,a,i,o){!function(n,t,r,a,i,o){var s=n.parent;e.isParameter(s)?g(t,r,s,a,i,o):t.delete(r,e.isImportClause(s)?n:e.isComputedPropertyName(s)?s.parent:s)}(t,r,n,a,i,o),e.isIdentifier(t)&&function(n,t,r,a){e.FindAllReferences.Core.eachSymbolReferenceInFile(r,a,t,function(r){e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),e.isBinaryExpression(r.parent)&&e.isExpressionStatement(r.parent.parent)&&r.parent.left===r&&n.delete(t,r.parent.parent)})}(r,n,t,a)}function g(n,t,r,a,i,o){(function(n,t,r){var a=n.parent;switch(a.kind){case 157:var i=t.getSymbolAtLocation(a.name);if(e.isMemberSymbolInBaseType(i,t))return!1;case 158:case 240:return!0;case 197:case 198:var o=a.parameters,s=o.indexOf(n);return e.Debug.assert(-1!==s),r?o.slice(s+1).every(function(e){return 73===e.name.kind&&!e.symbol.isReferenced}):s===o.length-1;case 160:return!1;default:return e.Debug.failBadSyntaxKind(a)}})(r,a,o)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,a,t))?r.modifiers.forEach(function(e){n.deleteModifier(t,e)}):(n.delete(t,r),function(n,t,r,a,i){e.FindAllReferences.Core.eachSignatureCall(r.parent,a,i,function(e){var a=r.parent.parameters.indexOf(r);e.arguments.length>a&&n.delete(t,e.arguments[a])})}(n,t,r,i,a)))}n.registerCodeFix({errorCodes:o,getCodeActions:function(a){var o=a.errorCode,g=a.sourceFile,_=a.program,y=_.getTypeChecker(),v=_.getSourceFiles(),h=e.getTokenAtPosition(g,a.span.start);if(e.isJSDocTemplateTag(h))return[l(e.textChanges.ChangeTracker.with(a,function(e){return e.delete(g,h)}),e.Diagnostics.Remove_template_tag)];if(28===h.kind)return[l(L=e.textChanges.ChangeTracker.with(a,function(e){return c(e,g,h)}),e.Diagnostics.Remove_type_parameters)];var b=d(h);if(b)return[l(L=e.textChanges.ChangeTracker.with(a,function(e){return e.delete(g,b)}),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var E=e.textChanges.ChangeTracker.with(a,function(e){return u(h,e,g,y,v,!1)});if(E.length)return[l(E,e.Diagnostics.Remove_destructuring)];var T=e.textChanges.ChangeTracker.with(a,function(e){return m(g,h,e)});if(T.length)return[l(T,e.Diagnostics.Remove_variable_statement)];var S=[];if(128===h.kind){var L=e.textChanges.ChangeTracker.with(a,function(e){return s(e,g,h)}),A=e.cast(h.parent,e.isInferTypeNode).typeParameter.name.text;S.push(n.createCodeFixAction(t,L,[e.Diagnostics.Replace_infer_0_with_unknown,A],i,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var x=e.textChanges.ChangeTracker.with(a,function(e){return f(g,h,e,y,v,!1)});if(x.length){A=e.isComputedPropertyName(h.parent)?h.parent:h;S.push(l(x,[e.Diagnostics.Remove_declaration_for_Colon_0,A.getText(g)]))}}var C=e.textChanges.ChangeTracker.with(a,function(e){return p(e,o,g,h)});return C.length&&S.push(n.createCodeFixAction(t,C,[e.Diagnostics.Prefix_0_with_an_underscore,h.getText(g)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[r,a,i],getAllCodeActions:function(t){var l=t.sourceFile,g=t.program,_=g.getTypeChecker(),y=g.getSourceFiles();return n.codeFixAll(t,o,function(n,o){var g=e.getTokenAtPosition(l,o.start);switch(t.fixId){case r:p(n,o.code,l,g);break;case a:if(128===g.kind)break;var v=d(g);v?n.delete(l,v):e.isJSDocTemplateTag(g)?n.delete(l,g):28===g.kind?c(n,l,g):u(g,n,l,_,y,!0)||m(l,g,n)||f(l,g,n,_,y,!0);break;case i:128===g.kind&&s(n,l,g);break;default:e.Debug.fail(JSON.stringify(t.fixId))}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function a(n,t,r,a){var i=e.getTokenAtPosition(t,r),o=e.findAncestor(i,e.isStatement);e.Debug.assert(o.getStart(t)===i.getStart(t));var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements))switch(s.kind){case 223:if(s.elseStatement){if(e.isBlock(o.parent))break;return void n.replaceNode(t,o,e.createBlock(e.emptyArray))}case 225:case 226:return void n.delete(t,s)}if(e.isBlock(o.parent)){var l=r+a,c=e.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}(e.sliceAfter(o.parent.statements,o),function(e){return e.pos<l}));n.deleteNodeRange(t,o,c)}else n.delete(t,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start,r.span.length)});return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unreachable_code,t,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n.start,n.length)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixUnusedLabel",r=[e.Diagnostics.Unused_label.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.cast(a.parent,e.isLabeledStatement),o=a.getStart(t),s=i.statement.getStart(t),l=e.positionsAreOnSameLine(o,s,t)?s:e.skipTrivia(t.text,e.findChildOfKind(i,57,t).end,!0);n.deleteRange(t,{pos:o,end:l})}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start)});return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unused_label,t,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n.start)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function r(e,n,t,r,a){e.replaceNode(n,t,a.typeToTypeNode(r,t))}function a(n,t,r){var a=e.findAncestor(e.getTokenAtPosition(n,t),i),o=a&&a.type;return o&&{typeNode:o,type:r.getTypeFromTypeNode(o)}}function i(e){switch(e.kind){case 213:case 161:case 162:case 240:case 159:case 163:case 182:case 157:case 156:case 152:case 155:case 154:case 160:case 243:case 195:case 238:return!0;default:return!1}}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var i=t.sourceFile,o=t.program.getTypeChecker(),s=a(i,t.span.start,o);if(s){var l=s.typeNode,c=s.type,d=l.getText(i),u=[m(c,"fixJSDocTypes_plain",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 292===l.kind&&u.push(m(o.getNullableType(c,32768),"fixJSDocTypes_nullable",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u}function m(a,s,c){var u=e.textChanges.ChangeTracker.with(t,function(e){return r(e,i,l,a,o)});return n.createCodeFixAction("jdocTypes",u,[e.Diagnostics.Change_0_to_1,d,o.typeToString(a)],s,c)}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var i=e.fixId,o=e.program,s=e.sourceFile,l=o.getTypeChecker();return n.codeFixAll(e,t,function(e,n){var t=a(n.file,n.start,l);if(t){var o=t.typeNode,c=t.type,d=292===o.kind&&"fixJSDocTypes_nullable"===i?l.getNullableType(c,32768):c;r(e,s,o,d,l)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixAwaitInSyncFunction",r=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingFunction(r);if(a){var i,o;switch(a.kind){case 157:i=a.name;break;case 240:case 197:i=e.findChildOfKind(a,91,n);break;case 198:i=e.findChildOfKind(a,20,n)||e.first(a.parameters);break;default:return}return i&&{insertBefore:i,returnType:(o=a,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function i(n,t,r){var a=r.insertBefore,i=r.returnType;if(i){var o=e.getEntityNameFromTypeNode(i);o&&73===o.kind&&"Promise"===o.text||n.replaceNode(t,i,e.createTypeReferenceNode("Promise",e.createNodeArray([i])))}n.insertModifierBefore(t,122,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,l=a(o,s.start);if(l){var c=e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l)});return[n.createCodeFixAction(t,c,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){var r=a(t.file,t.start);r&&i(n,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="disableJsDiagnostics",r=e.mapDefined(Object.keys(e.Diagnostics),function(n){var t=e.Diagnostics[n];return t.category===e.DiagnosticCategory.Error?t.code:void 0});function a(n,t,r,a){var i=e.getLineAndCharacterOfPosition(t,r).line;a&&!e.addToSeen(a,i)||n.insertCommentBeforeLine(t,i,r," @ts-ignore")}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,o=r.program,s=r.span,l=r.host,c=r.formatContext;if(e.isInJSFile(i)&&e.isCheckJsEnabledForFile(i,o.getCompilerOptions())){var d=[n.createCodeFixActionNoFixId("disableJsDiagnostics",[n.createFileTextChanges(i.fileName,[e.createTextChange(i.checkJsDirective?e.createTextSpanFromBounds(i.checkJsDirective.pos,i.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(l,c.options))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(i,s.start)&&d.unshift(n.createCodeFixAction("disableJsDiagnostics",e.textChanges.ChangeTracker.with(r,function(e){return a(e,i,s.start)}),e.Diagnostics.Ignore_this_error_message,t,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),d}},fixIds:[t],getAllCodeActions:function(t){var i=e.createMap();return n.codeFixAll(t,r,function(n,t){e.textChanges.isValidLocationToAddComment(t.file,t.start)&&a(n,t.file,t.start,i)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n){return{trackSymbol:e.noop,moduleResolverHost:function(e){return{directoryExists:e.host.directoryExists?function(n){return e.host.directoryExists(n)}:void 0,fileExists:e.host.fileExists?function(n){return e.host.fileExists(n)}:void 0,getCurrentDirectory:e.host.getCurrentDirectory?function(){return e.host.getCurrentDirectory()}:void 0,readFile:e.host.readFile?function(n){return e.host.readFile(n)}:void 0,useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames?function(){return e.host.useCaseSensitiveFileNames()}:void 0,getSourceFiles:function(){return e.program.getSourceFiles()},getCommonSourceDirectory:function(){return e.program.getCommonSourceDirectory()}}}(n)}}function r(n,r,o,s,l){var c=n.getDeclarations();if(c&&c.length){var d=o.program.getTypeChecker(),u=c[0],m=e.getSynthesizedDeepClone(e.getNameOfDeclaration(u),!1),p=function(n){if(4&n)return e.createToken(116);if(16&n)return e.createToken(115);return}(e.getModifierFlags(u)),f=p?e.createNodeArray([p]):void 0,g=d.getWidenedType(d.getTypeOfSymbolAtLocation(n,r)),_=!!(16777216&n.flags),y=!!(4194304&r.flags);switch(u.kind){case 154:case 155:var v=d.typeToTypeNode(g,r,void 0,t(o));l(e.createProperty(void 0,f,m,_?e.createToken(56):void 0,v,void 0));break;case 159:case 160:for(var h=e.getAllAccessorDeclarations(c,u),b=d.typeToTypeNode(g,r,void 0,t(o)),E=0,T=h.secondAccessor?[h.firstAccessor,h.secondAccessor]:[h.firstAccessor];E<T.length;E++){var S=T[E];if(e.isGetAccessorDeclaration(S))l(e.createGetAccessor(void 0,f,m,e.emptyArray,b,y?void 0:i(s)));else{e.Debug.assertNode(S,e.isSetAccessorDeclaration);var L=e.getSetAccessorValueParameter(S),A=L&&e.isIdentifier(L.name)?e.idText(L.name):void 0;l(e.createSetAccessor(void 0,f,m,a(1,[A],[b],1,!1),y?void 0:i(s)))}}break;case 156:case 157:var x=d.getSignaturesOfType(g,0);if(!e.some(x))break;if(1===c.length){e.Debug.assert(1===x.length),R(x[0],f,m,y?void 0:i(s));break}for(var C=0,D=x;C<D.length;C++){R(D[C],e.getSynthesizedDeepClones(f,!1),e.getSynthesizedDeepClone(m,!1))}if(!y)if(c.length>x.length)R(d.getSignatureFromDeclaration(c[c.length-1]),f,m,i(s));else e.Debug.assert(c.length===x.length),l(function(n,t,r,o,s){for(var l=n[0],c=n[0].minArgumentCount,d=!1,u=0,m=n;u<m.length;u++){var p=m[u];c=Math.min(p.minArgumentCount,c),p.hasRestParameter&&(d=!0),p.parameters.length>=l.parameters.length&&(!p.hasRestParameter||l.hasRestParameter)&&(l=p)}var f=l.parameters.length-(l.hasRestParameter?1:0),g=l.parameters.map(function(e){return e.name}),_=a(f,g,void 0,c,!1);if(d){var y=e.createArrayTypeNode(e.createKeywordTypeNode(121)),v=e.createParameter(void 0,void 0,e.createToken(25),g[f]||"rest",f>=c?e.createToken(56):void 0,y,void 0);_.push(v)}return function(n,t,r,a,o,s,l){return e.createMethod(void 0,n,void 0,t,r?e.createToken(56):void 0,a,o,s,i(l))}(o,t,r,void 0,_,void 0,s)}(x,m,_,f,s))}}function R(n,a,i,s){var c=function(n,r,a,i,o,s,l){var c=n.program.getTypeChecker().signatureToSignatureDeclaration(r,157,a,257,t(n));if(!c)return;return c.decorators=void 0,c.modifiers=i,c.name=o,c.questionToken=s?e.createToken(56):void 0,c.body=l,c}(o,n,r,a,i,_,s);c&&l(c)}}function a(n,t,r,a,i){for(var o=[],s=0;s<n;s++){var l=e.createParameter(void 0,void 0,void 0,t&&t[s]||"arg"+s,void 0!==a&&s>=a?e.createToken(56):void 0,i?void 0:r&&r[s]||e.createKeywordTypeNode(121),void 0);o.push(l)}return o}function i(n){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===n.quotePreference)]))],!0)}function o(n,t){return e.createPropertyAssignment(e.createStringLiteral(n),t)}function s(n,t){return e.find(n.properties,function(n){return e.isPropertyAssignment(n)&&!!n.name&&e.isStringLiteral(n.name)&&n.name.text===t})}n.createMissingMemberNodes=function(e,n,t,a,i){for(var o=e.symbol.members,s=0,l=n;s<l.length;s++){var c=l[s];o.has(c.escapedName)||r(c,e,t,a,i)}},n.getNoopSymbolTrackerWithResolver=t,n.createMethodFromCallExpression=function(n,r,o,s,l,c,d){var u=!e.isInterfaceDeclaration(d),m=r.typeArguments,p=r.arguments,f=r.parent,g=n.program.getTypeChecker(),_=t(n),y=e.map(p,function(e){return g.typeToTypeNode(g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),d,void 0,_)}),v=e.map(p,function(n){return e.isIdentifier(n)?n.text:e.isPropertyAccessExpression(n)?n.name.text:void 0}),h=g.getContextualType(r),b=s||!h?void 0:g.typeToTypeNode(h,d,void 0,_);return e.createMethod(void 0,l?[e.createToken(117)]:void 0,e.isYieldExpression(f)?e.createToken(40):void 0,o,void 0,s?void 0:e.map(m,function(n,t){return e.createTypeParameterDeclaration(84+m.length-1<=90?String.fromCharCode(84+t):"T"+t)}),a(p.length,v,y,void 0,s),b,u?i(c):void 0)},n.setJsonCompilerOptionValue=function(n,t,r,a){var i=e.getTsConfigObjectLiteralExpression(t);if(i){var l=s(i,"compilerOptions");if(void 0!==l){var c=l.initializer;if(e.isObjectLiteralExpression(c)){var d=s(c,r);void 0===d?n.insertNodeAtObjectStart(t,c,o(r,a)):n.replaceNode(t,d.initializer,a)}}else n.insertNodeAtObjectStart(t,i,o("compilerOptions",e.createObjectLiteral([o(r,a)])))}},n.createJsonPropertyAssignment=o,n.findJsonProperty=s}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="invalidImportSyntax";function r(r,a,i,o){var s=e.textChanges.ChangeTracker.with(r,function(e){return e.replaceNode(a,i,o)});return n.createCodeFixActionNoFixId(t,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function a(a,i){var o=a.program.getTypeChecker().getTypeAtLocation(i);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],l=o.symbol.originatingImport;if(e.isImportCall(l)||e.addRange(s,function(n,t){var a=e.getSourceFileOfNode(t),i=e.getNamespaceDeclarationNode(t),o=n.program.getCompilerOptions(),s=[];return s.push(r(n,a,t,e.makeImport(i.name,void 0,t.moduleSpecifier,e.getQuotePreference(a,n.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(r(n,a,t,e.createImportEqualsDeclaration(void 0,void 0,i.name,e.createExternalModuleReference(t.moduleSpecifier)))),s}(a,l)),e.isExpression(i)&&(!e.isNamedDeclaration(i.parent)||i.parent.name!==i)){var c=a.sourceFile,d=e.textChanges.ChangeTracker.with(a,function(n){return n.replaceNode(c,i,e.createPropertyAccess(i,"default"),{})});s.push(n.createCodeFixActionNoFixId(t,d,e.Diagnostics.Use_synthetic_default_member))}return s}n.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(n){var t=n.sourceFile,r=e.Diagnostics.This_expression_is_not_callable.code===n.errorCode?192:193,i=e.findAncestor(e.getTokenAtPosition(t,n.span.start),function(e){return e.kind===r});if(!i)return[];var o=i.expression;return a(n,o)}}),n.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(n){var t=n.sourceFile,r=e.findAncestor(e.getTokenAtPosition(t,n.span.start),function(e){return e.getStart()===n.span.start&&e.getEnd()===n.span.start+n.span.length});if(!r)return[];return a(n,r)}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="strictClassInitialization",r="addMissingPropertyDefiniteAssignmentAssertions",a="addMissingPropertyUndefinedType",i="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(n,t){var r=e.getTokenAtPosition(n,t);return e.isIdentifier(r)?e.cast(r.parent,e.isPropertyDeclaration):void 0}function l(n,t,r){var a=e.updateProperty(r,r.decorators,r.modifiers,r.name,e.createToken(52),r.type,r.initializer);n.replaceNode(t,r,a)}function c(n,t,r){var a=e.createKeywordTypeNode(142),i=r.type,o=e.isUnionTypeNode(i)?i.types.concat(a):[i,a];n.replaceNode(t,i,e.createUnionTypeNode(o))}function d(n,t,r,a){var i=e.updateProperty(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,a);n.replaceNode(t,r,i)}function u(n,t){return function n(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.createFalse():e.createTrue();if(r.isLiteral())return e.createLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,function(e){return n(t,e)});if(r.isClass()){var a=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!a||e.hasModifier(a,128))return;var i=e.getFirstConstructorWithBody(a);if(i&&i.parameters.length)return;return e.createNew(e.createIdentifier(r.symbol.name),void 0,void 0)}if(t.isArrayLikeType(r))return e.createArrayLiteral();return}(n,n.getTypeFromTypeNode(t.type))}n.registerCodeFix({errorCodes:o,getCodeActions:function(o){var m=s(o.sourceFile,o.span.start);if(m){var p=[function(r,i){var o=e.textChanges.ChangeTracker.with(r,function(e){return c(e,r.sourceFile,i)});return n.createCodeFixAction(t,o,[e.Diagnostics.Add_undefined_type_to_property_0,i.name.getText()],a,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}(o,m),function(a,i){var o=e.textChanges.ChangeTracker.with(a,function(e){return l(e,a.sourceFile,i)});return n.createCodeFixAction(t,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,i.getText()],r,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(o,m)];return e.append(p,function(r,a){var o=u(r.program.getTypeChecker(),a);if(!o)return;var s=e.textChanges.ChangeTracker.with(r,function(e){return d(e,r.sourceFile,a,o)});return n.createCodeFixAction(t,s,[e.Diagnostics.Add_initializer_to_property_0,a.name.getText()],i,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(o,m)),p}},fixIds:[r,a,i],getAllCodeActions:function(t){return n.codeFixAll(t,o,function(n,o){var m=s(o.file,o.start);if(m)switch(t.fixId){case r:l(n,o.file,m);break;case a:c(n,o.file,m);break;case i:var p=u(t.program.getTypeChecker(),m);if(!p)return;d(n,o.file,m,p);break;default:e.Debug.fail(JSON.stringify(t.fixId))}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="requireInTs",r=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function a(n,t,r,a){var i=function(n,t){var r=e.getTokenAtPosition(n,t).parent;if(!e.isRequireCall(r,!0))throw e.Debug.failBadSyntaxKind(r);var a=e.cast(r.parent,e.isVariableDeclaration);return{statement:e.cast(a.parent.parent,e.isVariableStatement),name:e.cast(a.name,e.isIdentifier),required:r.arguments[0]}}(t,r),o=i.statement,s=i.name,l=i.required;n.replaceNode(t,o,e.getAllowSyntheticDefaultImports(a.getCompilerOptions())?e.createImportDeclaration(void 0,void 0,e.createImportClause(s,void 0),l):e.createImportEqualsDeclaration(void 0,void 0,s,e.createExternalModuleReference(l)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span.start,r.program)});return[n.createCodeFixAction(t,i,e.Diagnostics.Convert_require_to_import,t,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){return a(n,t.file,t.start,e.program)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="useDefaultImport",r=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function a(n,t){var r=e.getTokenAtPosition(n,t);if(e.isIdentifier(r)){var a=r.parent;if(e.isImportEqualsDeclaration(a)&&e.isExternalModuleReference(a.moduleReference))return{importNode:a,name:r,moduleSpecifier:a.moduleReference.expression};if(e.isNamespaceImport(a)){var i=a.parent.parent;return{importNode:i,name:r,moduleSpecifier:i.moduleSpecifier}}}}function i(n,t,r,a){n.replaceNode(t,r.importNode,e.makeImport(r.name,void 0,r.moduleSpecifier,e.getQuotePreference(t,a)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span.start,l=a(o,s);if(l){var c=e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l,r.preferences)});return[n.createCodeFixAction(t,c,e.Diagnostics.Convert_to_default_import,t,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){var r=a(t.file,t.start);r&&i(n,t.file,r,e.preferences)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixAddModuleReferTypeMissingTypeof",r=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(93===r.kind),e.Debug.assert(184===r.parent.kind),r.parent}function i(n,t,r){var a=e.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);n.replaceNode(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,l=a(o,s.start),c=e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l)});return[n.createCodeFixAction(t,c,e.Diagnostics.Add_missing_typeof,t,e.Diagnostics.Add_missing_typeof)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){return i(n,e.sourceFile,a(t.file,t.start))})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixConvertToMappedObjectType",r=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(a.parent))return{indexSignature:a,container:e.isInterfaceDeclaration(a.parent)?a.parent:e.cast(a.parent.parent,e.isTypeAliasDeclaration)}}function i(n,t,r){var a,i,s=r.indexSignature,l=r.container,c=(e.isInterfaceDeclaration(l)?l.members:l.type.members).filter(function(n){return!e.isIndexSignatureDeclaration(n)}),d=e.first(s.parameters),u=e.createTypeParameterDeclaration(e.cast(d.name,e.isIdentifier),d.type),m=e.createMappedTypeNode(e.hasReadonlyModifier(s)?e.createModifier(134):void 0,u,s.questionToken,s.type),p=e.createIntersectionTypeNode(o(e.getAllSuperTypeNodes(l),[m],c.length?[e.createTypeLiteralNode(c)]:e.emptyArray));n.replaceNode(t,l,(a=l,i=p,e.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,i)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,l=a(o,s.start);if(l){var c=e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l)}),d=e.idText(l.container.name);return[n.createCodeFixAction(t,c,[e.Diagnostics.Convert_0_to_mapped_object_type,d],t,[e.Diagnostics.Convert_0_to_mapped_object_type,d])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function a(n,t,r){var a=e.tryCast(e.getTokenAtPosition(t,r.start),function(e){return 123===e.kind}),i=a&&e.tryCast(a.parent,e.isAwaitExpression);if(i){var o=i;if(e.isParenthesizedExpression(i.parent)){var s=e.getLeftmostExpression(i.expression,!1);if(e.isIdentifier(s)){var l=e.findPrecedingToken(i.parent.pos,t);l&&96!==l.kind&&(o=i.parent)}}n.replaceNode(t,o,i.expression)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return a(e,r.sourceFile,r.span)});if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unnecessary_await,t,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n){var t=n.file,r=e.getRefactorContextSpan(n),a=e.getTokenAtPosition(t,r.start),i=e.getParentNodeInSpan(a,t,r);if(i&&(e.isSourceFile(i.parent)||e.isModuleBlock(i.parent)&&e.isAmbientModule(i.parent.parent))){var o=e.isSourceFile(i.parent)?i.parent.symbol:i.parent.parent.symbol,s=e.getModifierFlags(i),l=!!(512&s);if(1&s&&(l||!o.exports.has("default")))switch(i.kind){case 240:case 241:case 242:case 244:case 243:case 245:var c=i;return c.name&&e.isIdentifier(c.name)?{exportNode:c,exportName:c.name,wasDefault:l,exportingModuleSymbol:o}:void 0;case 220:var d=i;if(!(2&d.declarationList.flags)||1!==d.declarationList.declarations.length)return;var u=e.first(d.declarationList.declarations);if(!u.initializer)return;return e.Debug.assert(!l),e.isIdentifier(u.name)?{exportNode:d,exportName:u.name,wasDefault:l,exportingModuleSymbol:o}:void 0;default:return}}}function r(n,t){return e.createImportSpecifier(n===t?void 0:e.createIdentifier(n),e.createIdentifier(t))}n.registerRefactor("Convert export",{getAvailableActions:function(n){var r=t(n);if(!r)return e.emptyArray;var a=r.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;return[{name:"Convert export",description:a,actions:[{name:r.wasDefault?"Convert default export to named export":"Convert named export to default export",description:a}]}]},getEditsForAction:function(n,a){return e.Debug.assert("Convert default export to named export"===a||"Convert named export to default export"===a),{edits:e.textChanges.ChangeTracker.with(n,function(a){return i=n.file,o=n.program,s=e.Debug.assertDefined(t(n)),l=a,c=n.cancellationToken,function(n,t,r,a){var i=t.wasDefault,o=t.exportNode,s=t.exportName;if(i)r.delete(n,e.Debug.assertDefined(e.findModifier(o,81)));else{var l=e.Debug.assertDefined(e.findModifier(o,86));switch(o.kind){case 240:case 241:case 242:r.insertNodeAfter(n,l,e.createToken(81));break;case 220:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,a,n)){r.replaceNode(n,o,e.createExportDefault(e.Debug.assertDefined(e.first(o.declarationList.declarations).initializer)));break}case 244:case 243:case 245:r.deleteModifier(n,l),r.insertNodeAfter(n,o,e.createExportDefault(e.createIdentifier(s.text)));break;default:e.Debug.assertNever(o)}}}(i,s,l,o.getTypeChecker()),void function(n,t,a,i){var o=t.wasDefault,s=t.exportName,l=t.exportingModuleSymbol,c=n.getTypeChecker(),d=e.Debug.assertDefined(c.getSymbolAtLocation(s));e.FindAllReferences.Core.eachExportReference(n.getSourceFiles(),c,i,d,l,s.text,o,function(n){var t=n.getSourceFile();o?function(n,t,a,i){var o=t.parent;switch(o.kind){case 190:a.replaceNode(n,t,e.createIdentifier(i));break;case 254:case 258:var s=o;a.replaceNode(n,s,r(i,s.name.text));break;case 251:var l=o;e.Debug.assert(l.name===t);var s=r(i,t.text),c=l.namedBindings;if(c)if(252===c.kind){a.deleteRange(n,{pos:t.getStart(n),end:c.getStart(n)});var d=e.isStringLiteral(l.parent.moduleSpecifier)?e.quotePreferenceFromString(l.parent.moduleSpecifier,n):1,u=e.makeImport(void 0,[r(i,t.text)],l.parent.moduleSpecifier,d);a.insertNodeAfter(n,l.parent,u)}else a.delete(n,t),a.insertNodeAtEndOfList(n,c.elements,s);else a.replaceNode(n,t,e.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(o)}}(t,n,a,s.text):function(n,t,r){var a,i,o=t.parent;switch(o.kind){case 190:r.replaceNode(n,t,e.createIdentifier("default"));break;case 254:var s=e.createIdentifier(o.name.text);1===o.parent.elements.length?r.replaceNode(n,o.parent,s):(r.delete(n,o),r.insertNodeBefore(n,o.parent,s));break;case 258:r.replaceNode(n,o,(a="default",i=o.name.text,e.createExportSpecifier(a===i?void 0:e.createIdentifier(a),e.createIdentifier(i))));break;default:e.Debug.assertNever(o)}}(t,n,a)})}(o,s,l,c);var i,o,s,l,c}),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){function t(n){var t=n.file,r=e.getRefactorContextSpan(n),a=e.getTokenAtPosition(t,r.start),i=e.getParentNodeInSpan(a,t,r);if(i&&e.isImportDeclaration(i)){var o=i.importClause;return o&&o.namedBindings}}function r(n,t,r){return e.createImportDeclaration(void 0,void 0,e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0),n.moduleSpecifier)}n.registerRefactor("Convert import",{getAvailableActions:function(n){var r=t(n);if(!r)return e.emptyArray;var a=252===r.kind?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message;return[{name:"Convert import",description:a,actions:[{name:252===r.kind?"Convert namespace import to named imports":"Convert named imports to namespace import",description:a}]}]},getEditsForAction:function(n,a){return e.Debug.assert("Convert namespace import to named imports"===a||"Convert named imports to namespace import"===a),{edits:e.textChanges.ChangeTracker.with(n,function(a){return i=n.file,o=n.program,s=a,l=e.Debug.assertDefined(t(n)),c=o.getTypeChecker(),void(252===l.kind?function(n,t,a,i,o){var s=!1,l=[],c=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,t,n,function(n){if(e.isPropertyAccessExpression(n.parent)){var r=e.cast(n.parent,e.isPropertyAccessExpression),a=r.name.text;t.resolveName(a,n,67108863,!0)&&c.set(a,!0),e.Debug.assert(r.expression===n),l.push(r)}else s=!0});for(var d=e.createMap(),u=0,m=l;u<m.length;u++){var p=m[u],f=p.name.text,g=d.get(f);void 0===g&&d.set(f,g=c.has(f)?e.getUniqueName(f,n):f),a.replaceNode(n,p,e.createIdentifier(g))}var _=[];d.forEach(function(n,t){_.push(e.createImportSpecifier(n===t?void 0:e.createIdentifier(t),e.createIdentifier(n)))});var y=i.parent.parent;s&&!o?a.insertNodeAfter(n,y,r(y,void 0,_)):a.replaceNode(n,y,r(y,s?e.createIdentifier(i.name.text):void 0,_))}(i,c,s,l,e.getAllowSyntheticDefaultImports(o.getCompilerOptions())):function(n,t,a,i){for(var o=i.parent.parent,s=o.moduleSpecifier,l=s&&e.isStringLiteral(s)?e.codefix.moduleSpecifierToValidIdentifier(s.text,99):"module",c=i.elements.some(function(r){return e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,t,n,function(e){return!!t.resolveName(l,e,67108863,!0)})||!1})?e.getUniqueName(l,n):l,d=[],u=function(r){var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,t,n,function(t){var o=e.createPropertyAccess(e.createIdentifier(c),i);e.isShorthandPropertyAssignment(t.parent)?a.replaceNode(n,t.parent,e.createPropertyAssignment(t.text,o)):e.isExportSpecifier(t.parent)&&!t.parent.propertyName?d.some(function(e){return e.name===r.name})||d.push(e.createImportSpecifier(r.propertyName&&e.createIdentifier(r.propertyName.text),e.createIdentifier(r.name.text))):a.replaceNode(n,t,o)})},m=0,p=i.elements;m<p.length;m++){var f=p[m];u(f)}a.replaceNode(n,i,e.createNamespaceImport(e.createIdentifier(c))),d.length&&a.insertNodeAfter(n,i.parent.parent,r(o,void 0,d))}(i,c,s,l));var i,o,s,l,c}),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){!function(t){var r,a,i,o,s="Extract Symbol";function l(n){var t=d(n.file,e.getRefactorContextSpan(n)).targetRange;if(void 0===t)return e.emptyArray;var r=function(n,t){var r=m(n,t),a=r.scopes,i=r.readsAndWrites,o=i.functionErrorsPerScope,s=i.constantErrorsPerScope;return a.map(function(n,t){var r,a,i=function(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}(n),l=function(n){return e.isClassLike(n)?"readonly field":"constant"}(n),c=e.isFunctionLikeDeclaration(n)?function(n){switch(n.kind){case 158:return"constructor";case 197:case 240:return n.name?"function '"+n.name.text+"'":"anonymous function";case 198:return"arrow function";case 157:return"method '"+n.name.getText()+"'";case 159:return"'get "+n.name.getText()+"'";case 160:return"'set "+n.name.getText()+"'";default:throw e.Debug.assertNever(n)}}(n):e.isClassLike(n)?function(e){return 241===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(n):function(e){return 246===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(n);return 1===c?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"global"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[l,"global"])):0===c?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"module"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[l,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[i,c]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[l,c])),0!==t||e.isClassLike(n)||(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[l])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:a,errors:s[t]}}})}(t,n);if(void 0===r)return e.emptyArray;for(var a=[],i=e.createMap(),o=[],l=e.createMap(),c=0,u=0,p=r;u<p.length;u++){var f=p[u],g=f.functionExtraction,_=f.constantExtraction;if(0===g.errors.length){var y=g.description;i.has(y)||(i.set(y,!0),a.push({description:y,name:"function_scope_"+c}))}if(0===_.errors.length){y=_.description;l.has(y)||(l.set(y,!0),o.push({description:y,name:"constant_scope_"+c}))}c++}var v=[];return a.length&&v.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:a}),o.length&&v.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),v.length?v:e.emptyArray}function c(n,t){var r=d(n.file,e.getRefactorContextSpan(n)).targetRange,i=/^function_scope_(\d+)$/.exec(t);if(i){var o=+i[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(n,t,r){var i=m(n,t),o=i.scopes,s=i.readsAndWrites,l=s.target,c=s.usagesPerScope,d=s.functionErrorsPerScope,u=s.exposedVariableDeclarations;return e.Debug.assert(!d[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,i,o,s){var l,c,d=r.usages,u=r.typeParameterUsages,m=r.substitutions,_=s.program.getTypeChecker(),y=t.getSourceFile(),v=e.getUniqueName(e.isClassLike(t)?"newMethod":"newFunction",y),h=e.isInJSFile(t),b=e.createIdentifier(v),E=[],T=[];d.forEach(function(n,r){var a;if(!h){var i=_.getTypeOfSymbolAtLocation(n.symbol,n.node);i=_.getBaseTypeOfLiteralType(i),a=_.typeToTypeNode(i,t,1)}var o=e.createParameter(void 0,void 0,void 0,r,void 0,a);E.push(o),2===n.usage&&(c||(c=[])).push(n),T.push(e.createIdentifier(r))});var S=e.arrayFrom(u.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(p),L=0===S.length?void 0:S.map(function(e){return e.declaration}),A=void 0!==L?L.map(function(n){return e.createTypeReferenceNode(n.name,void 0)}):void 0;if(e.isExpression(n)&&!h){var x=_.getContextualType(n);l=_.typeToTypeNode(x,t,1)}var C,D=function(n,t,r,a,i){var o,s=void 0!==r||t.length>0;if(e.isBlock(n)&&!s&&0===a.size)return{body:e.createBlock(n.statements,!0),returnValueProperty:void 0};var l=!1,c=e.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.createReturn(n)]);if(s||a.size){var d=e.visitNodes(c,function n(i){if(!l&&231===i.kind&&s){var c=f(t,r);return i.expression&&(o||(o="__return"),c.unshift(e.createPropertyAssignment(o,e.visitNode(i.expression,n)))),1===c.length?e.createReturn(c[0].name):e.createReturn(e.createObjectLiteral(c))}var d=l;l=l||e.isFunctionLikeDeclaration(i)||e.isClassLike(i);var u=a.get(e.getNodeId(i).toString()),m=u?e.getSynthesizedDeepClone(u):e.visitEachChild(i,n,e.nullTransformationContext);return l=d,m}).slice();if(s&&!i&&e.isStatement(n)){var u=f(t,r);1===u.length?d.push(e.createReturn(u[0].name)):d.push(e.createReturn(e.createObjectLiteral(u)))}return{body:e.createBlock(d,!0),returnValueProperty:o}}return{body:e.createBlock(c,!0),returnValueProperty:void 0}}(n,i,c,m,!!(o.facts&a.HasReturn)),R=D.body,M=D.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(R),e.isClassLike(t)){var I=h?[]:[e.createToken(114)];o.facts&a.InStaticRegion&&I.push(e.createToken(117)),o.facts&a.IsAsyncFunction&&I.push(e.createToken(122)),C=e.createMethod(void 0,I.length?I:void 0,o.facts&a.IsGenerator?e.createToken(40):void 0,b,void 0,L,E,l,R)}else C=e.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.createToken(122)]:void 0,o.facts&a.IsGenerator?e.createToken(40):void 0,b,L,E,l,R);var O=e.textChanges.ChangeTracker.fromContext(s),k=function(n,t){return e.find(function(n){if(e.isFunctionLikeDeclaration(n)){var t=n.body;if(e.isBlock(t))return t.statements}else{if(e.isModuleBlock(n)||e.isSourceFile(n))return n.statements;if(e.isClassLike(n))return n.members;e.assertType(n)}return e.emptyArray}(t),function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)})}((g(o.range)?e.last(o.range):o.range).end,t);k?O.insertNodeBefore(s.file,k,C,!0):O.insertNodeAtEndOfScope(s.file,t,C);var N=[],w=function(n,t,r){var i=e.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&a.InStaticRegion?e.createIdentifier(n.name.text):e.createThis();return e.createPropertyAccess(o,i)}return i}(t,o,v),P=e.createCall(w,A,T);if(o.facts&a.IsGenerator&&(P=e.createYield(e.createToken(40),P)),o.facts&a.IsAsyncFunction&&(P=e.createAwait(P)),i.length&&!c)if(e.Debug.assert(!M),e.Debug.assert(!(o.facts&a.HasReturn)),1===i.length){var G=i[0];N.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(G.name),e.getSynthesizedDeepClone(G.type),P)],G.parent.flags)))}else{for(var F=[],V=[],B=i[0].parent.flags,U=!1,H=0,K=i;H<K.length;H++){var G=K[H];F.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(G.name)));var j=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(G)),t,1);V.push(e.createPropertySignature(void 0,G.symbol.name,void 0,j,void 0)),U=U||void 0!==G.type,B&=G.parent.flags}var W=U?e.createTypeLiteralNode(V):void 0;W&&e.setEmitFlags(W,1),N.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(F),W,P)],B)))}else if(i.length||c){if(i.length)for(var q=0,z=i;q<z.length;q++){var G=z[q],X=G.parent.flags;2&X&&(X=-3&X|1),N.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(G.symbol.name,$(G.type))],X)))}M&&N.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(M,$(l))],1)));var J=f(i,c);M&&J.unshift(e.createShorthandPropertyAssignment(M)),1===J.length?(e.Debug.assert(!M),N.push(e.createStatement(e.createAssignment(J[0].name,P))),o.facts&a.HasReturn&&N.push(e.createReturn())):(N.push(e.createStatement(e.createAssignment(e.createObjectLiteral(J),P))),M&&N.push(e.createReturn(e.createIdentifier(M))))}else o.facts&a.HasReturn?N.push(e.createReturn(P)):g(o.range)?N.push(e.createStatement(P)):N.push(P);g(o.range)?O.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),N):O.replaceNodeWithNodes(s.file,o.range,N);var Y=O.getChanges(),Q=(g(o.range)?e.first(o.range):o.range).getSourceFile().fileName,Z=e.getRenameLocation(Y,Q,v,!1);return{renameFilename:Q,renameLocation:Z,edits:Y};function $(n){if(void 0!==n){for(var t=e.getSynthesizedDeepClone(n),r=t;e.isParenthesizedTypeNode(r);)r=r.type;return e.isUnionTypeNode(r)&&e.find(r.types,function(e){return 142===e.kind})?t:e.createUnionTypeNode([t,e.createKeywordTypeNode(142)])}}}(l,o[r],c[r],u,n,t)}(r,n,o)}var s=/^constant_scope_(\d+)$/.exec(t);if(s){o=+s[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(n,t,r){var i=m(n,t),o=i.scopes,s=i.readsAndWrites,l=s.target,c=s.usagesPerScope,d=s.constantErrorsPerScope,p=s.exposedVariableDeclarations;return e.Debug.assert(!d[r].length,"The extraction went missing? How?"),e.Debug.assert(0===p.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,i,o){var s=r.substitutions,l=o.program.getTypeChecker(),c=t.getSourceFile(),d=e.getUniqueName(e.isClassLike(t)?"newProperty":"newLocal",c),m=e.isInJSFile(t),p=m||!l.isContextSensitive(n)?void 0:l.typeToTypeNode(l.getContextualType(n),t,1),f=function(n,t){return t.size?function n(r){var a=t.get(e.getNodeId(r).toString());return a?e.getSynthesizedDeepClone(a):e.visitEachChild(r,n,e.nullTransformationContext)}(n):n}(n,s);e.suppressLeadingAndTrailingTrivia(f);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(t)){e.Debug.assert(!m);var y=[];y.push(e.createToken(114)),i&a.InStaticRegion&&y.push(e.createToken(117)),y.push(e.createToken(134));var v=e.createProperty(void 0,y,d,void 0,p,f),h=e.createPropertyAccess(i&a.InStaticRegion?e.createIdentifier(t.name.getText()):e.createThis(),e.createIdentifier(d)),b=n.pos,E=function(n,t){var r,a=t.members;e.Debug.assert(a.length>0);for(var i=!0,o=0,s=a;o<s.length;o++){var l=s[o];if(l.pos>n)return r||a[0];if(i&&!e.isPropertyDeclaration(l)){if(void 0!==r)return l;i=!1}r=l}return void 0===r?e.Debug.fail():r}(b,t);g.insertNodeBefore(o.file,E,v,!0),g.replaceNode(o.file,n,h)}else{var T=e.createVariableDeclaration(d,p,f),S=function(n,t){for(var r;void 0!==n&&n!==t;){if(e.isVariableDeclaration(n)&&n.initializer===r&&e.isVariableDeclarationList(n.parent)&&n.parent.declarations.length>1)return n;r=n,n=n.parent}}(n,t);if(S){g.insertNodeBefore(o.file,S,T);var h=e.createIdentifier(d);g.replaceNode(o.file,n,h)}else if(222===n.parent.kind&&t===e.findAncestor(n,u)){var L=e.createVariableStatement(void 0,e.createVariableDeclarationList([T],2));g.replaceNode(o.file,n.parent,L)}else{var L=e.createVariableStatement(void 0,e.createVariableDeclarationList([T],2)),E=function(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var a=n;a!==t;a=a.parent)u(a)&&(r=a);for(var a=(r||n).parent;;a=a.parent){if(_(a)){for(var i=void 0,o=0,s=a.statements;o<s.length;o++){var l=s[o];if(l.pos>n.pos)break;i=l}return!i&&e.isCaseClause(a)?(e.Debug.assert(e.isSwitchStatement(a.parent.parent)),a.parent.parent):e.Debug.assertDefined(i)}e.Debug.assert(a!==t,"Didn't encounter a block-like before encountering scope")}}(n,t);if(0===E.pos?g.insertNodeAtTopOfFile(o.file,L,!1):g.insertNodeBefore(o.file,E,L,!1),222===n.parent.kind)g.delete(o.file,n.parent);else{var h=e.createIdentifier(d);g.replaceNode(o.file,n,h)}}}var A=g.getChanges(),x=n.getSourceFile().fileName,C=e.getRenameLocation(A,x,d,!0);return{renameFilename:x,renameLocation:C,edits:A}}(e.isExpression(l)?l:l.statements[0].expression,o[r],c[r],n.facts,t)}(r,n,o)}e.Debug.fail("Unrecognized action name")}function d(n,t){var i=t.length;if(0===i)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(n,t.start),n,t),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(n,e.textSpanEnd(t)),n,t),l=[],c=a.None;if(!o||!s)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};if(o!==s){if(!_(o.parent))return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};for(var d=[],u=0,m=o.parent.statements;u<m.length;u++){var p=m[u];if(p===o||d.length){var f=v(p);if(f)return{errors:f};d.push(p)}if(p===s)break}return d.length?{targetRange:{range:d,facts:c,declarations:l}}:{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]}}if(e.isReturnStatement(o)&&!o.expression)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};var g=function(n){if(e.isReturnStatement(n)){if(n.expression)return n.expression}else if(e.isVariableStatement(n)){for(var t=0,r=void 0,a=0,i=n.declarationList.declarations;a<i.length;a++){var o=i[a];o.initializer&&(t++,r=o.initializer)}if(1===t)return r}else if(e.isVariableDeclaration(n)&&n.initializer)return n.initializer;return n}(o),y=function(n){if(e.isIdentifier(e.isExpressionStatement(n)?n.expression:n))return[e.createDiagnosticForNode(n,r.cannotExtractIdentifier)];return}(g)||v(g);return y?{errors:y}:{targetRange:{range:function(n){if(e.isStatement(n))return[n];if(e.isExpressionNode(n))return e.isExpressionStatement(n.parent)?[n.parent]:n;return}(g),facts:c,declarations:l}};function v(n){var i;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(i||(i={})),e.Debug.assert(n.pos<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(!e.positionIsSynthesized(n.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(e.isStatement(n)||e.isExpressionNode(n)&&function(e){var n=e.parent;switch(n.kind){case 279:return!1}switch(e.kind){case 10:return 250!==n.kind&&254!==n.kind;case 209:case 185:case 187:return!1;case 73:return 187!==n.kind&&254!==n.kind&&258!==n.kind}return!0}(n)))return[e.createDiagnosticForNode(n,r.statementOrExpressionExpected)];if(4194304&n.flags)return[e.createDiagnosticForNode(n,r.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(n);s&&function(n,t){for(var r=n;r!==t;){if(155===r.kind){e.hasModifier(r,32)&&(c|=a.InStaticRegion);break}if(152===r.kind){158===e.getContainingFunction(r).kind&&(c|=a.InStaticRegion);break}157===r.kind&&e.hasModifier(r,32)&&(c|=a.InStaticRegion),r=r.parent}}(n,s);var d,u=4;return function n(i){if(o)return!0;if(e.isDeclaration(i)){var s=238===i.kind?i.parent.parent:i;if(e.hasModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractExportedEntity)),!0;l.push(i.symbol)}switch(i.kind){case 250:return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractImport)),!0;case 99:if(192===i.parent.kind){var m=e.getContainingClass(i);if(m.pos<t.start||m.end>=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractSuper)),!0}else c|=a.UsesThis}if(e.isFunctionLikeDeclaration(i)||e.isClassLike(i)){switch(i.kind){case 240:case 241:e.isSourceFile(i.parent)&&void 0===i.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(i,r.functionWillNotBeVisibleInTheNewScope))}return!1}var p=u;switch(i.kind){case 223:case 236:u=0;break;case 219:i.parent&&236===i.parent.kind&&i.parent.finallyBlock===i&&(u=4);break;case 272:u|=1;break;default:e.isIterationStatement(i,!1)&&(u|=3)}switch(i.kind){case 179:case 101:c|=a.UsesThis;break;case 234:var f=i.label;(d||(d=[])).push(f.escapedText),e.forEachChild(i,n),d.pop();break;case 230:case 229:var f=i.label;f?e.contains(d,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(230===i.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 202:c|=a.IsAsyncFunction;break;case 208:c|=a.IsGenerator;break;case 231:4&u?c|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(i,n)}u=p}(n),o}}function u(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function m(n,t){var i=t.file,o=function(n){var t=g(n.range)?e.first(n.range):n.range;if(n.facts&a.UsesThis){var r=e.getContainingClass(t);if(r){var i=e.findAncestor(t,e.isFunctionLikeDeclaration);return i?[i,r]:[r]}}for(var o=[];;)if(152===(t=t.parent).kind&&(t=e.findAncestor(t,function(n){return e.isFunctionLikeDeclaration(n)}).parent),u(t)&&(o.push(t),285===t.kind))return o}(n);return{scopes:o,readsAndWrites:function(n,t,i,o,s,l){var c,d,u=e.createMap(),m=[],p=[],f=[],_=[],y=[],v=e.createMap(),h=[],b=g(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===b){var E=n.range,T=e.first(E).getStart(),S=e.last(E).end;d=e.createFileDiagnostic(o,T,S-T,r.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(d=e.createDiagnosticForNode(b,r.uselessConstantType));for(var L=0,A=t;L<A.length;L++){var x=A[L];m.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),p.push(e.createMap()),f.push(e.isFunctionLikeDeclaration(x)&&240!==x.kind?[e.createDiagnosticForNode(x,r.cannotExtractToOtherFunctionLike)]:[]);var C=[];d&&C.push(d),e.isClassLike(x)&&e.isInJSFile(x)&&C.push(e.createDiagnosticForNode(x,r.cannotExtractToJSClass)),e.isArrowFunction(x)&&!e.isBlock(x.body)&&C.push(e.createDiagnosticForNode(x,r.cannotExtractToExpressionArrowFunction)),_.push(C)}var D=e.createMap(),R=g(n.range)?e.createBlock(n.range):n.range,M=g(n.range)?e.first(n.range):n.range,I=(O=M,!!e.findAncestor(O,function(n){return e.isDeclarationWithTypeParameters(n)&&0!==e.getEffectiveTypeParameterDeclarations(n).length}));var O;if(function l(c,d){if(void 0===d&&(d=1),I){var u=s.getTypeAtLocation(c);j(u)}if(e.isDeclaration(c)&&c.symbol&&y.push(c),e.isAssignmentExpression(c))l(c.left,2),l(c.right);else if(e.isUnaryExpressionWithWrite(c))l(c.operand,2);else if(e.isPropertyAccessExpression(c)||e.isElementAccessExpression(c))e.forEachChild(c,l);else if(e.isIdentifier(c)){if(!c.parent)return;if(e.isQualifiedName(c.parent)&&c!==c.parent.left)return;if(e.isPropertyAccessExpression(c.parent)&&c!==c.parent.expression)return;!function(l,c,d){var u=function(l,c,d){var u=W(l);if(u){var g=e.getSymbolId(u).toString(),y=D.get(g);if(y&&y>=c)return g;if(D.set(g,c),y){for(var v=0,h=m;v<h.length;v++){var b=h[v],E=b.usages.get(l.text);E&&b.usages.set(l.text,{usage:c,symbol:u,node:l})}return g}var T=u.getDeclarations(),S=T&&e.find(T,function(e){return e.getSourceFile()===o});if(S&&!e.rangeContainsStartEnd(i,S.getStart(),S.end)){if(n.facts&a.IsGenerator&&2===c){for(var L=e.createDiagnosticForNode(l,r.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),A=0,x=f;A<x.length;A++){var C=x[A];C.push(L)}for(var R=0,M=_;R<M.length;R++){var C=M[R];C.push(L)}}for(var I=0;I<t.length;I++){var O=t[I],k=s.resolveName(u.name,O,u.flags,!1);if(k!==u&&!p[I].has(g)){var N=q(u.exportSymbol||u,O,d);if(N)p[I].set(g,N);else if(d){if(!(262144&u.flags)){var L=e.createDiagnosticForNode(l,r.typeWillNotBeVisibleInTheNewScope);f[I].push(L),_[I].push(L)}}else m[I].usages.set(l.text,{usage:c,symbol:u,node:l})}}return g}}}(l,c,d);if(u)for(var g=0;g<t.length;g++){var y=p[g].get(u);y&&m[g].substitutions.set(e.getNodeId(l).toString(),y)}}(c,d,e.isPartOfTypeNode(c))}else e.forEachChild(c,l)}(R),I&&!g(n.range)){var k=s.getContextualType(n.range);j(k)}if(u.size>0){for(var N=e.createMap(),w=0,P=M;void 0!==P&&w<t.length;P=P.parent)if(P===t[w]&&(N.forEach(function(e,n){m[w].typeParameterUsages.set(n,e)}),w++),e.isDeclarationWithTypeParameters(P))for(var G=0,F=e.getEffectiveTypeParameterDeclarations(P);G<F.length;G++){var V=F[G],B=s.getTypeAtLocation(V);u.has(B.id.toString())&&N.set(B.id.toString(),B)}e.Debug.assert(w===t.length)}if(y.length){var U=e.isBlockScope(t[0],t[0].parent)?t[0]:e.getEnclosingBlockScopeContainer(t[0]);e.forEachChild(U,function t(r){if(r===n.range||g(n.range)&&n.range.indexOf(r)>=0)return;var a=e.isIdentifier(r)?W(r):s.getSymbolAtLocation(r);if(a){var i=e.find(y,function(e){return e.symbol===a});if(i)if(e.isVariableDeclaration(i)){var o=i.symbol.id.toString();v.has(o)||(h.push(i),v.set(o,!0))}else c=c||i}e.forEachChild(r,t)})}for(var H=function(t){var a=m[t];if(t>0&&(a.usages.size>0||a.typeParameterUsages.size>0)){var i=g(n.range)?n.range[0]:n.range;_[t].push(e.createDiagnosticForNode(i,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(m[t].usages.forEach(function(n){2===n.usage&&(s=!0,106500&n.symbol.flags&&n.symbol.valueDeclaration&&e.hasModifier(n.symbol.valueDeclaration,64)&&(o=n.symbol.valueDeclaration))}),e.Debug.assert(g(n.range)||0===h.length),s&&!g(n.range)){var l=e.createDiagnosticForNode(n.range,r.cannotWriteInExpression);f[t].push(l),_[t].push(l)}else if(o&&t>0){var l=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[t].push(l),_[t].push(l)}else if(c){var l=e.createDiagnosticForNode(c,r.cannotExtractExportedEntity);f[t].push(l),_[t].push(l)}},K=0;K<t.length;K++)H(K);return{target:R,usagesPerScope:m,functionErrorsPerScope:f,constantErrorsPerScope:_,exposedVariableDeclarations:h};function j(e){for(var n=s.getSymbolWalker(function(){return l.throwIfCancellationRequested(),!0}),t=n.walkType(e).visitedTypes,r=0,a=t;r<a.length;r++){var i=a[r];i.isTypeParameter()&&u.set(i.id.toString(),i)}}function W(n){return n.parent&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n?s.getShorthandAssignmentValueSymbol(n.parent):s.getSymbolAtLocation(n)}function q(n,t,r){if(n){var a=n.getDeclarations();if(a&&a.some(function(e){return e.parent===t}))return e.createIdentifier(n.name);var i=q(n.parent,t,r);if(void 0!==i)return r?e.createQualifiedName(i,e.createIdentifier(n.name)):e.createPropertyAccess(i,n.name)}}}(n,o,function(n,t){return g(n.range)?{pos:e.first(n.range).getStart(t),end:e.last(n.range).getEnd()}:n.range}(n,i),i,t.program.getTypeChecker(),t.cancellationToken)}}function p(n,t){var r=n.type,a=n.declaration,i=t.type,o=t.declaration;return e.compareProperties(a,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",i.symbol?i.symbol.getName():"")||e.compareValues(r.id,i.id)}function f(n,t){var r=e.map(n,function(n){return e.createShorthandPropertyAssignment(n.symbol.name)}),a=e.map(t,function(n){return e.createShorthandPropertyAssignment(n.symbol.name)});return void 0===r?a:void 0===a?r:r.concat(a)}function g(n){return e.isArray(n)}function _(e){switch(e.kind){case 219:case 285:case 246:case 272:return!0;default:return!1}}n.registerRefactor(s,{getAvailableActions:l,getEditsForAction:c}),t.getAvailableActions=l,t.getEditsForAction=c,function(n){function t(n){return{message:n,code:0,category:e.DiagnosticCategory.Message,key:n}}n.cannotExtractRange=t("Cannot extract range."),n.cannotExtractImport=t("Cannot extract import statement."),n.cannotExtractSuper=t("Cannot extract super call."),n.cannotExtractEmpty=t("Cannot extract empty range."),n.expressionExpected=t("expression expected."),n.uselessConstantType=t("No reason to extract constant of type."),n.statementOrExpressionExpected=t("Statement or expression expected."),n.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),n.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),n.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),n.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),n.cannotExtractIdentifier=t("Select more than a single identifier."),n.cannotExtractExportedEntity=t("Cannot extract exported declaration"),n.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),n.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),n.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),n.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),n.cannotExtractToOtherFunctionLike=t("Cannot extract method to a function-like scope that is not a function"),n.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),n.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block")}(r=t.Messages||(t.Messages={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(a||(a={})),t.getRangeToExtract=d,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(i||(i={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(n.extractSymbol||(n.extractSymbol={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){function t(n){var t=n.file,i=n.startPosition,o=e.isSourceFileJS(t),s=e.getTokenAtPosition(t,i),l=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),c=e.findAncestor(s,function(e){return e.parent&&a(l,e,t)&&!a(l,e.parent,t)});if(c&&e.isTypeNode(c)){var d=n.program.getTypeChecker(),u=e.Debug.assertDefined(o?e.findAncestor(c,r):e.findAncestor(c,e.isStatement)),m=function(n,t,r,i){var o=[];return function s(l){if(e.isTypeReferenceNode(l)){if(e.isIdentifier(l.typeName)){var c=n.resolveName(l.typeName.text,l.typeName,262144,!0);if(c){var d=e.cast(e.first(c.declarations),e.isTypeParameterDeclaration);a(r,d,i)&&!a(t,d,i)&&o.push(d)}}}else if(e.isInferTypeNode(l)){var u=e.findAncestor(l,function(n){return e.isConditionalTypeNode(n)&&a(n.extendsType,l,i)});if(!u||!a(t,u,i))return!0}else if(e.isTypePredicateNode(l)||e.isThisTypeNode(l)){var m=e.findAncestor(l.parent,e.isFunctionLike);if(m&&m.type&&a(m.type,l,i)&&!a(t,m,i))return!0}else if(e.isTypeQueryNode(l))if(e.isIdentifier(l.exprName)){var c=n.resolveName(l.exprName.text,l.exprName,111551,!1);if(c&&a(r,c.valueDeclaration,i)&&!a(t,c.valueDeclaration,i))return!0}else if(e.isThisIdentifier(l.exprName.left)&&!a(t,l.parent,i))return!0;return e.forEachChild(l,s)}(t)?void 0:o}(d,c,u,t);if(m)return{isJS:o,selection:c,firstStatement:u,typeParameters:m}}}function r(n){return e.isStatement(n)&&e.hasJSDocNodes(n)}function a(n,t,r){return e.rangeContainsStartEnd(n,e.skipTrivia(r.text,t.pos),t.end)}n.registerRefactor("Extract type",{getAvailableActions:function(n){var r=t(n);return r?[{name:"Extract type",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[r.isJS?{name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef)}:{name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias)}]}]:e.emptyArray},getEditsForAction:function(n,r){e.Debug.assert("Extract to type alias"===r||"Extract to typedef"===r);var a=n.file,i=e.Debug.assertDefined(t(n));e.Debug.assert("Extract to type alias"===r&&!i.isJS||"Extract to typedef"===r&&i.isJS);var o=e.getUniqueName("NewType",a),s=e.textChanges.ChangeTracker.with(n,function(n){return i.isJS?function(n,t,r,a,i,o){var s=e.createNode(312);s.tagName=e.createIdentifier("typedef"),s.fullName=e.createIdentifier(r),s.name=s.fullName,s.typeExpression=e.createJSDocTypeExpression(i);var l=[];e.forEach(o,function(n){var t=e.getEffectiveConstraintOfTypeParameter(n),r=e.createNode(311);r.tagName=e.createIdentifier("template"),r.constraint=t&&e.cast(t,e.isJSDocTypeExpression);var a=e.createNode(151);a.name=n.name,r.typeParameters=e.createNodeArray([a]),l.push(r)}),n.insertNodeBefore(t,a,e.createJSDocComment(void 0,e.createNodeArray(e.concatenate(l,[s]))),!0),n.replaceNode(t,i,e.createTypeReferenceNode(r,o.map(function(n){return e.createTypeReferenceNode(n.name,void 0)})))}(n,a,o,i.firstStatement,i.selection,i.typeParameters):function(n,t,r,a,i,o){var s=e.createTypeAliasDeclaration(void 0,void 0,r,o.map(function(n){return e.updateTypeParameterDeclaration(n,n.name,n.constraint,void 0)}),i);n.insertNodeBefore(t,a,s,!0),n.replaceNode(t,i,e.createTypeReferenceNode(r,o.map(function(n){return e.createTypeReferenceNode(n.name,void 0)})))}(n,a,o,i.firstStatement,i.selection,i.typeParameters)}),l=a.fileName;return{edits:s,renameFilename:l,renameLocation:e.getRenameLocation(s,l,o,!1)}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){!function(t){var r="Generate 'get' and 'set' accessors",a=e.Diagnostics.Generate_get_and_set_accessors.message;function i(n){return e.isParameterPropertyDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertyAssignment(n)}function o(n,t){return e.isIdentifier(t)?e.createIdentifier(n):e.createLiteral(n)}function s(n,t,r){var a=t?r.name:e.createThis();return e.isIdentifier(n)?e.createPropertyAccess(a,n):e.createElementAccess(a,e.createLiteral(n))}function l(n,t,r){var a=e.append(n?void 0:[e.createToken(r)],t?e.createToken(117):void 0);return a&&e.createNodeArray(a)}function c(n){var t=n.file,r=n.startPosition,a=n.endPosition,s=e.getTokenAtPosition(t,r),l=e.findAncestor(s.parent,i);if(l&&e.nodeOverlapsWithStartEnd(l.name,t,r,a)&&function(n){return e.isIdentifier(n)||e.isStringLiteral(n)}(l.name)&&124==(124|e.getModifierFlags(l))){var c=l.name.text,d=function(e){return 95===e.charCodeAt(0)}(c),u=o(d?c:e.getUniqueName("_"+c,t),l.name),m=o(d?e.getUniqueName(c.substring(1),t):c,l.name);return{isStatic:e.hasStaticModifier(l),isReadonly:e.hasReadonlyModifier(l),type:e.getTypeAnnotationNode(l),container:152===l.kind?l.parent.parent:l.parent,originalName:l.name.text,declaration:l,fieldName:u,accessorName:m,renameAccessor:d}}}function d(n,t,r,a,i){e.isParameterPropertyDeclaration(a)?n.insertNodeAtClassStart(t,i,r):e.isPropertyAssignment(a)?n.insertNodeAfterComma(t,a,r):n.insertNodeAfter(t,a,r)}n.registerRefactor(r,{getEditsForAction:function(n,t){var r=n.file,a=c(n);if(!a)return;var i=e.isSourceFileJS(r),o=e.textChanges.ChangeTracker.fromContext(n),u=a.isStatic,m=a.isReadonly,p=a.fieldName,f=a.accessorName,g=a.originalName,_=a.type,y=a.container,v=a.declaration,h=a.renameAccessor;e.suppressLeadingAndTrailingTrivia(p),e.suppressLeadingAndTrailingTrivia(v),e.suppressLeadingAndTrailingTrivia(y);var b=e.isClassLike(y),E=-65&e.getModifierFlags(v),T=b?!E||8&E?l(i,u,116):e.createNodeArray(e.createModifiersFromModifierFlags(E)):void 0,S=b?l(i,u,114):void 0;!function(n,t,r,a,i){e.isPropertyDeclaration(r)?function(n,t,r,a,i){var o=e.updateProperty(r,r.decorators,i,a,r.questionToken||r.exclamationToken,r.type,r.initializer);n.replaceNode(t,r,o)}(n,t,r,a,i):e.isPropertyAssignment(r)?function(n,t,r,a){var i=e.updatePropertyAssignment(r,a,r.initializer);n.replacePropertyAssignment(t,r,i)}(n,t,r,a):n.replaceNode(t,r,e.updateParameter(r,r.decorators,i,r.dotDotDotToken,e.cast(a,e.isIdentifier),r.questionToken,r.type,r.initializer))}(o,r,v,p,S);var L=function(n,t,r,a,i,o){return e.createGetAccessor(void 0,a,t,void 0,r,e.createBlock([e.createReturn(s(n,i,o))],!0))}(p,f,_,T,u,y);if(e.suppressLeadingAndTrailingTrivia(L),d(o,r,L,v,y),m){var A=e.getFirstConstructorWithBody(y);A&&function(n,t,r,a,i){if(!r.body)return;r.body.forEachChild(function r(o){e.isElementAccessExpression(o)&&101===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===i&&e.isWriteAccess(o)&&n.replaceNode(t,o.argumentExpression,e.createStringLiteral(a)),e.isPropertyAccessExpression(o)&&101===o.expression.kind&&o.name.text===i&&e.isWriteAccess(o)&&n.replaceNode(t,o.name,e.createIdentifier(a)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(r)})}(o,r,A,p.text,g)}else{var x=function(n,t,r,a,i,o){return e.createSetAccessor(void 0,a,t,[e.createParameter(void 0,void 0,void 0,e.createIdentifier("value"),void 0,r)],e.createBlock([e.createStatement(e.createAssignment(s(n,i,o),e.createIdentifier("value")))],!0))}(p,f,_,T,u,y);e.suppressLeadingAndTrailingTrivia(x),d(o,r,x,v,y)}var C=o.getChanges(),D=r.fileName,R=h?f:p,M=(e.isIdentifier(R)?0:-1)+e.getRenameLocation(C,D,R.text,e.isParameter(v));return{renameFilename:D,renameLocation:M,edits:C}},getAvailableActions:function(n){return c(n)?[{name:r,description:a,actions:[{name:r,description:a}]}]:e.emptyArray}})}(n.generateGetAccessorAndSetAccessor||(n.generateGetAccessorAndSetAccessor={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){function t(n){var t=function(n){var t=n.file,r=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),a=t.statements,i=e.findIndex(a,function(e){return e.end>r.pos});if(-1!==i){var o=a[i];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[a[i]],afterLast:a[i+1]};if(!(r.pos>o.getStart(t))){var s=e.findIndex(a,function(e){return e.end>r.end},i);if(-1===s||!(0===s||a[s].getStart(t)<r.end))return{toMove:a.slice(i,-1===s?a.length:s),afterLast:-1===s?void 0:a[s]}}}}(n);if(void 0!==t){var r=[],a=[],i=t.toMove,o=t.afterLast;return e.getRangesWhere(i,function(n){return!function(n){switch(n.kind){case 250:return!0;case 249:return!e.hasModifier(n,1);case 220:return n.declarationList.declarations.every(function(n){return!!n.initializer&&e.isRequireCall(n.initializer,!0)});default:return!1}}(n)},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 r(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 a(e){return 250===e.kind?e.moduleSpecifier:249===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function i(n,t){if(e.isImportDeclaration(n))e.isStringLiteral(n.moduleSpecifier)&&t(n);else if(e.isImportEqualsDeclaration(n))e.isExternalModuleReference(n.moduleReference)&&e.isStringLiteralLike(n.moduleReference.expression)&&t(n);else if(e.isVariableStatement(n))for(var r=0,a=n.declarationList.declarations;r<a.length;r++){var i=a[r];i.initializer&&e.isRequireCall(i.initializer,!0)&&t(i)}}function s(n,t,r,a,i){if(r=e.ensurePathIsNonModuleName(r),a){var o=t.map(function(n){return e.createImportSpecifier(void 0,e.createIdentifier(n))});return e.makeImportIfNecessary(n,o,r,i)}e.Debug.assert(!n);var s=t.map(function(n){return e.createBindingElement(void 0,void 0,n)});return s.length?l(e.createObjectBindingPattern(s),void 0,c(e.createLiteral(r))):void 0}function l(n,t,r,a){return void 0===a&&(a=2),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(n,t,r)],a))}function c(n){return e.createCall(e.createIdentifier("require"),void 0,[n])}function d(n,t,r,a){switch(t.kind){case 250:!function(n,t,r,a){if(!t.importClause)return;var i=t.importClause,o=i.name,s=i.namedBindings,l=!o||a(o),c=!s||(252===s.kind?a(s.name):0!==s.elements.length&&s.elements.every(function(e){return a(e.name)}));if(l&&c)r.delete(n,t);else if(o&&l&&r.delete(n,o),s)if(c)r.replaceNode(n,t.importClause,e.updateImportClause(t.importClause,o,void 0));else if(253===s.kind)for(var d=0,u=s.elements;d<u.length;d++){var m=u[d];a(m.name)&&r.delete(n,m)}}(n,t,r,a);break;case 249:a(t.name)&&r.delete(n,t);break;case 238:!function(n,t,r,a){var i=t.name;switch(i.kind){case 73:a(i)&&r.delete(n,i);break;case 186:break;case 185:if(i.elements.every(function(n){return e.isIdentifier(n.name)&&a(n.name)}))r.delete(n,e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(var o=0,s=i.elements;o<s.length;o++){var l=s[o];e.isIdentifier(l.name)&&a(l.name)&&r.delete(n,l.name)}}}(n,t,r,a);break;default:e.Debug.assertNever(t)}}function u(n){switch(n.kind){case 249:case 254:case 251:return!0;case 238:return m(n);case 187:return e.isVariableDeclaration(n.parent.parent)&&m(n.parent.parent);default:return!1}}function m(n){return e.isSourceFile(n.parent.parent.parent)&&!!n.initializer&&e.isRequireCall(n.initializer,!0)}function p(n,t,r){switch(n.kind){case 250:var a=n.importClause;if(!a)return;var i=a.name&&r(a.name)?a.name:void 0,o=a.namedBindings&&function(n,t){if(252===n.kind)return t(n.name)?n:void 0;var r=n.elements.filter(function(e){return t(e.name)});return r.length?e.createNamedImports(r):void 0}(a.namedBindings,r);return i||o?e.createImportDeclaration(void 0,void 0,e.createImportClause(i,o),t):void 0;case 249:return r(n.name)?n:void 0;case 238:var s=function(n,t){switch(n.kind){case 73:return t(n)?n:void 0;case 186:return n;case 185:var r=n.elements.filter(function(n){return n.propertyName||!e.isIdentifier(n.name)||t(n.name)});return r.length?e.createObjectBindingPattern(r):void 0}}(n.name,r);return s?l(s,n.type,c(t),n.parent.flags):void 0;default:return e.Debug.assertNever(n)}}function f(n,t,r){n.forEachChild(function n(a){if(e.isIdentifier(a)&&!e.isDeclarationName(a)){var i=t.getSymbolAtLocation(a);i&&r(i)}else a.forEachChild(n)})}n.registerRefactor("Move to a new file",{getAvailableActions:function(n){if(!n.preferences.allowTextChangesInNewFiles||void 0===t(n))return e.emptyArray;var r=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:"Move to a new file",description:r,actions:[{name:"Move to a new file",description:r}]}]},getEditsForAction:function(n,l){e.Debug.assert("Move to a new file"===l);var m=e.Debug.assertDefined(t(n));return{edits:e.textChanges.ChangeTracker.with(n,function(t){return l=n.file,L=n.program,A=m,x=t,C=n.host,D=n.preferences,R=L.getTypeChecker(),M=function(n,t,r){var a=new g,i=new g,o=new g,s=function(n){if(void 0===n)return;var t=r.getJsxNamespace(n),a=r.resolveName(t,n,1920,!0);return a&&e.some(a.declarations,u)?a:void 0}(e.find(t,function(e){return!!(2&e.transformFlags)}));s&&i.add(s);for(var l=0,c=t;l<c.length;l++){var d=c[l];v(d,function(n){a.add(e.Debug.assertDefined(e.isExpressionStatement(n)?r.getSymbolAtLocation(n.expression.left):n.symbol))})}for(var m=0,p=t;m<p.length;m++){var d=p[m];f(d,r,function(t){var r;if(t.declarations)for(var s=0,l=t.declarations;s<l.length;s++){var c=l[s];u(c)?i.add(t):_(c)&&(r=c,(e.isVariableDeclaration(r)?r.parent.parent.parent:r.parent)===n)&&!a.has(t)&&o.add(t)}})}for(var y=i.clone(),h=new g,b=0,E=n.statements;b<E.length;b++){var d=E[b];e.contains(t,d)||(s&&2&d.transformFlags&&y.delete(s),f(d,r,function(e){a.has(e)&&h.add(e),y.delete(e)}))}return{movedSymbols:a,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:h,oldImportsNeededByNewFile:i,unusedImportsFromOldFile:y}}(l,A.all,R),I=e.getDirectoryPath(l.fileName),O=e.extensionFromPath(l.fileName),k=function(n,t,r,a){for(var i=n,o=1;;o++){var s=e.combinePaths(r,i+t);if(!a.fileExists(s))return i;i=n+"."+o}}(M.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",O,I,C),N=k+O,x.createNewFile(l,e.combinePaths(I,N),function(n,t,l,u,m,f,g){var L=m.getTypeChecker();if(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)return r(n,u.ranges,l),u.all;var A=!!n.externalModuleIndicator,x=e.getQuotePreference(n,g),C=function(n,t,r,a){var i,o=[];return n.forEach(function(n){"default"===n.escapedName?i=e.createIdentifier(e.symbolNameNoDefault(n)):o.push(n.name)}),s(i,o,t,r,a)}(t.oldFileImportsFromNewFile,f,A,x);return C&&e.insertImport(l,n,C),function(n,t,r,a,o){for(var s=0,l=n.statements;s<l.length;s++){var c=l[s];e.contains(t,c)||i(c,function(e){return d(n,e,r,function(e){return a.has(o.getSymbolAtLocation(e))})})}}(n,u.all,l,t.unusedImportsFromOldFile,L),r(n,u.ranges,l),function(n,t,r,o,s){for(var l=t.getTypeChecker(),u=function(t){if(t===r)return"continue";for(var u=function(u){i(u,function(i){if(l.getSymbolAtLocation(a(i))===r.symbol){var m=function(n){var t=e.isBindingElement(n.parent)?e.getPropertySymbolFromBindingElement(l,n.parent):e.skipAlias(l.getSymbolAtLocation(n),l);return!!t&&o.has(t)};d(t,i,n,m);var f=e.combinePaths(e.getDirectoryPath(a(i).text),s),g=p(i,e.createLiteral(f),m);g&&n.insertNodeAfter(t,u,g);var _=function(n){switch(n.kind){case 250:return n.importClause&&n.importClause.namedBindings&&252===n.importClause.namedBindings.kind?n.importClause.namedBindings.name:void 0;case 249:return n.name;case 238:return e.tryCast(n.name,e.isIdentifier);default:return e.Debug.assertNever(n)}}(i);_&&function(n,t,r,a,i,o,s,l){var d=e.codefix.moduleSpecifierToValidIdentifier(i,99),u=!1,m=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,r,t,function(n){e.isPropertyAccessExpression(n.parent)&&(u=u||!!r.resolveName(d,n,67108863,!0),a.has(r.getSymbolAtLocation(n.parent.name))&&m.push(n))}),m.length){for(var p=u?e.getUniqueName(d,t):d,f=0,g=m;f<g.length;f++){var _=g[f];n.replaceNode(t,_,e.createIdentifier(p))}n.insertNodeAfter(t,l,function(n,t,r){var a=e.createIdentifier(t),i=e.createLiteral(r);switch(n.kind){case 250:return e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(a)),i);case 249:return e.createImportEqualsDeclaration(void 0,void 0,a,e.createExternalModuleReference(i));case 238:return e.createVariableDeclaration(a,void 0,c(i));default:return e.Debug.assertNever(n)}}(l,i,o))}}(n,t,l,o,s,f,_,i)}})},m=0,f=t.statements;m<f.length;m++){var g=f[m];u(g)}},m=0,f=t.getSourceFiles();m<f.length;m++){var g=f[m];u(g)}}(l,m,n,t.movedSymbols,f),o(function(n,t,r,o,l,c,d){for(var u,m=[],f=0,g=n.statements;f<g.length;f++){var y=g[f];i(y,function(n){e.append(m,p(n,a(n),function(e){return t.has(l.getSymbolAtLocation(e))}))})}var v=[],E=e.nodeSeenTracker();return r.forEach(function(t){for(var r=0,a=t.declarations;r<a.length;r++){var i=a[r];if(_(i)){var s=(d=i,e.isExpressionStatement(d)?d.expression.left.name:e.tryCast(d.name,e.isIdentifier));if(s){var l=h(i);E(l)&&b(n,l,o,c),e.hasModifier(i,512)?u=s:v.push(s.text)}}}var d}),e.append(m,s(u,v,e.removeFileExtension(e.getBaseFileName(n.fileName)),c,d)),m}(n,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,l,L,A,x),function(n,t,r,a){return e.flatMap(t,function(t){if(s=t,e.Debug.assert(e.isSourceFile(s.parent)),(y(s)||e.isVariableStatement(s))&&!E(n,t,a)&&v(t,function(n){return r.has(e.Debug.assertDefined(n.symbol))})){var i=function(n,t){return t?[function(n){var t=e.concatenate([e.createModifier(86)],n.modifiers);switch(n.kind){case 240:return e.updateFunctionDeclaration(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);case 241:return e.updateClassDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members);case 220:return e.updateVariableStatement(n,t,n.declarationList);case 245:return e.updateModuleDeclaration(n,n.decorators,t,n.name,n.body);case 244:return e.updateEnumDeclaration(n,n.decorators,t,n.name,n.members);case 243:return e.updateTypeAliasDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.type);case 242:return e.updateInterfaceDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members);case 249:return e.updateImportEqualsDeclaration(n,n.decorators,t,n.name,n.moduleReference);case 222:return e.Debug.fail();default:return e.Debug.assertNever(n)}}(n)]:function(e){return o([e],T(e).map(S))}(n)}(t,a);if(i)return i}var s;return t})}(n,u.all,t.oldFileImportsFromNewFile,A))}(l,M,x,A,L,k,D)),void function(n,t,r,a,i){var o=n.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(r,"..",a)),l=e.getRelativePathFromFile(o.fileName,s,i),c=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),d=c&&e.find(c.properties,function(n){return e.isPropertyAssignment(n)&&e.isStringLiteral(n.name)&&"files"===n.name.text});d&&e.isArrayLiteralExpression(d.initializer)&&t.insertNodeInListAfter(o,e.last(d.initializer.elements),e.createLiteral(l),d.initializer.elements)}}(L,x,l.fileName,N,e.hostGetCanonicalFileName(C));var l,L,A,x,C,D,R,M,I,O,k,N}),renameFilename:void 0,renameLocation:void 0}}});var g=function(){function n(){this.map=e.createMap()}return n.prototype.add=function(n){this.map.set(String(e.getSymbolId(n)),n)},n.prototype.has=function(n){return this.map.has(String(e.getSymbolId(n)))},n.prototype.delete=function(n){this.map.delete(String(e.getSymbolId(n)))},n.prototype.forEach=function(e){this.map.forEach(e)},n.prototype.forEachEntry=function(n){return e.forEachEntry(this.map,n)},n.prototype.clone=function(){var t=new n;return e.copyEntries(this.map,t.map),t},n}();function _(n){return y(n)&&e.isSourceFile(n.parent)||e.isVariableDeclaration(n)&&e.isSourceFile(n.parent.parent.parent)}function y(e){switch(e.kind){case 240:case 241:case 245:case 244:case 243:case 242:case 249:return!0;default:return!1}}function v(n,t){switch(n.kind){case 240:case 241:case 245:case 244:case 243:case 242:case 249:return t(n);case 220:return e.firstDefined(n.declarationList.declarations,function(n){return function n(t,r){switch(t.kind){case 73:return r(e.cast(t.parent,function(n){return e.isVariableDeclaration(n)||e.isBindingElement(n)}));case 186:case 185:return e.firstDefined(t.elements,function(t){return e.isOmittedExpression(t)?void 0:n(t.name,r)});default:return e.Debug.assertNever(t)}}(n.name,t)});case 222:var r=n.expression;return e.isBinaryExpression(r)&&1===e.getAssignmentDeclarationKind(r)?t(n):void 0}}function h(n){switch(n.kind){case 238:return n.parent.parent;case 187:return h(e.cast(n.parent.parent,function(n){return e.isVariableDeclaration(n)||e.isBindingElement(n)}));default:return n}}function b(n,t,r,a){if(!E(n,t,a))if(a)e.isExpressionStatement(t)||r.insertExportModifier(n,t);else{var i=T(t);0!==i.length&&r.insertNodesAfter(n,t,i.map(S))}}function E(n,t,r){return r?!e.isExpressionStatement(t)&&e.hasModifier(t,1):T(t).some(function(t){return n.symbol.exports.has(e.escapeLeadingUnderscores(t))})}function T(n){switch(n.kind){case 240:case 241:return[n.name.text];case 220:return e.mapDefined(n.declarationList.declarations,function(n){return e.isIdentifier(n.name)?n.name.text:void 0});case 245:case 244:case 243:case 242:case 249:return e.emptyArray;case 222:return e.Debug.fail();default:return e.Debug.assertNever(n)}}function S(n){return e.createExpressionStatement(e.createBinary(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(n)),60,e.createIdentifier(n)))}}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){!function(t){var r="Add or remove braces in an arrow function",a=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,i="Add braces to arrow function",o="Remove braces from arrow function",s=e.Diagnostics.Add_braces_to_arrow_function.message,l=e.Diagnostics.Remove_braces_from_arrow_function.message;function c(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingFunction(r);if(a&&e.isArrowFunction(a)&&e.rangeContainsRange(a,r)&&!e.rangeContainsRange(a.body,r)){if(e.isExpression(a.body))return{func:a,addBraces:!0,expression:a.body};if(1===a.body.statements.length){var i=e.first(a.body.statements);if(e.isReturnStatement(i))return{func:a,addBraces:!1,expression:i.expression,returnStatement:i}}}}n.registerRefactor(r,{getEditsForAction:function(n,t){var r=n.file,a=n.startPosition,s=c(r,a);if(!s)return;var l,d=s.expression,u=s.returnStatement,m=s.func;if(t===i){var p=e.createReturn(d);l=e.createBlock([p],!0),e.suppressLeadingAndTrailingTrivia(l),e.copyLeadingComments(d,p,r,3,!0)}else if(t===o&&u){var f=d||e.createVoidZero();l=function(n){return e.isBinaryExpression(n)&&27===n.operatorToken.kind||e.isObjectLiteralExpression(n)}(f)?e.createParen(f):f,e.suppressLeadingAndTrailingTrivia(l),e.copyLeadingComments(u,l,r,3,!1)}else e.Debug.fail("invalid action");var g=e.textChanges.ChangeTracker.with(n,function(e){return e.replaceNode(r,m.body,l)});return{renameFilename:void 0,renameLocation:void 0,edits:g}},getAvailableActions:function(n){var t=n.file,d=n.startPosition,u=c(t,d);return u?[{name:r,description:a,actions:[u.addBraces?{name:i,description:s}:{name:o,description:l}]}]:e.emptyArray}})}(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){!function(t){var r="Convert parameters to destructured object",a=2;function i(n){var t=n.node;return e.isImportSpecifier(t.parent)||e.isImportClause(t.parent)||e.isImportEqualsDeclaration(t.parent)||e.isNamespaceImport(t.parent)?t:e.isExportSpecifier(t.parent)||e.isExportAssignment(t.parent)?t:void 0}function s(n){if(e.isDeclaration(n.node.parent))return n.node}function l(n){if(n.node.parent){var t=n.node,r=t.parent;switch(r.kind){case 192:case 193:var a=e.tryCast(r,e.isCallOrNewExpression);if(a&&a.expression===t)return a;break;case 190:var i=e.tryCast(r,e.isPropertyAccessExpression);if(i&&i.parent&&i.name===t){var o=e.tryCast(i.parent,e.isCallOrNewExpression);if(o&&o.expression===i)return o}break;case 191:var s=e.tryCast(r,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===t){var l=e.tryCast(s.parent,e.isCallOrNewExpression);if(l&&l.expression===s)return l}}}}function c(n){if(n.node.parent){var t=n.node,r=t.parent;switch(r.kind){case 190:var a=e.tryCast(r,e.isPropertyAccessExpression);if(a&&a.expression===t)return a;break;case 191:var i=e.tryCast(r,e.isElementAccessExpression);if(i&&i.expression===t)return i}}}function d(n){var t=n.node;if(2===e.getMeaningFromLocation(t)||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent))return t}function u(n,t,r){var i=e.getTouchingToken(n,t),o=e.getContainingFunctionDeclaration(i);if(!function(n){var t=e.findAncestor(n,e.isJSDocNode);if(t){var r=e.findAncestor(t,function(n){return!e.isJSDocNode(n)});return!!r&&e.isFunctionLikeDeclaration(r)}return!1}(i))return!(o&&function(n,t){if(!function(n,t){return function(e){if(g(e))return e.length-1;return e.length}(n)>=a&&e.every(n,function(n){return function(n,t){if(e.isRestParameter(n)){var r=t.getTypeAtLocation(n);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!n.modifiers&&!n.decorators&&e.isIdentifier(n.name)}(n,t)})}(n.parameters,t))return!1;switch(n.kind){case 240:return p(n)&&m(n,t);case 157:return m(n,t);case 158:return e.isClassDeclaration(n.parent)?p(n.parent)&&m(n,t):f(n.parent.parent)&&m(n,t);case 197:case 198:return f(n.parent)}return!1}(o,r)&&e.rangeContainsRange(o,i))||o.body&&e.rangeContainsRange(o.body,i)?void 0:o}function m(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function p(n){return!!n.name||!!e.findModifier(n,81)}function f(n){return e.isVariableDeclaration(n)&&e.isVarConst(n)&&e.isIdentifier(n.name)&&!n.type}function g(n){return n.length>0&&e.isThis(n[0].name)}function _(n){return g(n)&&(n=e.createNodeArray(n.slice(1),n.hasTrailingComma)),n}function y(n,t){var r=_(n.parameters),a=e.isRestParameter(e.last(r)),i=a?t.slice(0,r.length-1):t,o=e.map(i,function(n,t){var a,i,o=h(r[t]),s=(a=o,i=n,e.isIdentifier(i)&&e.getTextOfIdentifierOrLiteral(i)===a?e.createShorthandPropertyAssignment(a):e.createPropertyAssignment(a,i));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),v(n,s),s});if(a&&t.length>=r.length){var s=t.slice(r.length-1),l=e.createPropertyAssignment(h(e.last(r)),e.createArrayLiteral(s));o.push(l)}return e.createObjectLiteral(o,!1)}function v(n,t){var r=n.getSourceFile();!function(e,n){for(var t=e.getFullStart(),r=e.getStart(),a=t;a<r;a++)if(10===n.charCodeAt(a))return!0;return!1}(n,r.text)?e.copyTrailingAsLeadingComments(n,t,r):e.copyLeadingComments(n,t,r),e.copyTrailingComments(n,t,r)}function h(n){return e.getTextOfIdentifierOrLiteral(n.name)}n.registerRefactor(r,{getEditsForAction:function(n,t){e.Debug.assert(t===r);var a=n.file,m=n.startPosition,p=n.program,f=n.cancellationToken,b=n.host,E=u(a,m,p.getTypeChecker());if(!E||!f)return;var T=function(n,t,r){var a=function(n){switch(n.kind){case 240:if(n.name)return[n.name];var t=e.Debug.assertDefined(e.findModifier(n,81),"Nameless function declaration should be a default export");return[t];case 157:return[n.name];case 158:var r=e.Debug.assertDefined(e.findChildOfKind(n,125,n.getSourceFile()),"Constructor declaration should have constructor keyword");if(210===n.parent.kind){var a=n.parent.parent;return[a.name,r]}return[r];case 198:return[n.parent.name];case 197:return n.name?[n.name,n.parent.name]:[n.parent.name];default:return e.Debug.assertNever(n)}}(n),u=e.isConstructorDeclaration(n)?function(n){switch(n.parent.kind){case 241:var t=n.parent;if(t.name)return[t.name];var r=e.Debug.assertDefined(e.findModifier(t,81),"Nameless class declaration should be a default export");return[r];case 210:var a=n.parent,i=n.parent.parent,o=a.name;return o?[o,i.name]:[i.name]}}(n):[],m=e.deduplicate(o(a,u),e.equateValues),p=t.getTypeChecker(),f=function(t){for(var r={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:r,valid:!0},m=e.map(a,g),p=e.map(u,g),f=e.isConstructorDeclaration(n),_=0,y=t;_<y.length;_++){var v=y[_];if(1===v.kind){if(e.contains(m,g(v.node))||e.isNewExpressionTarget(v.node)){var h=i(v);if(h)continue;var b=s(v);if(b){o.declarations.push(b);continue}var E=l(v);if(E){o.functionCalls.push(E);continue}}if(f&&e.contains(p,g(v.node))){var h=i(v);if(h)continue;var b=s(v);if(b){o.declarations.push(b);continue}var T=c(v);if(T){r.accessExpressions.push(T);continue}if(e.isClassDeclaration(n.parent)){var S=d(v);if(S){r.typeUsages.push(S);continue}}}o.valid=!1}else o.valid=!1}return o}(e.flatMap(m,function(n){return e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r)}));e.every(f.declarations,function(n){return e.contains(m,n)})||(f.valid=!1);return f;function g(n){var t=p.getSymbolAtLocation(n);return t&&e.getSymbolTarget(t,p)}}(E,p,f);if(T.valid){var S=e.textChanges.ChangeTracker.with(n,function(n){return function(n,t,r,a,i,o){var s=e.map(function(n,t,r){var a,i=t.getTypeChecker(),o=_(n.parameters),s=e.map(o,function(n){var t=e.createBindingElement(void 0,void 0,h(n),e.isRestParameter(n)&&b(n)?e.createArrayLiteral():n.initializer);e.suppressLeadingAndTrailingTrivia(t),n.initializer&&t.initializer&&v(n.initializer,t.initializer);return t}),l=e.createObjectBindingPattern(s),c=(d=o,u=e.map(d,y),e.addEmitFlags(e.createTypeLiteralNode(u),1));var d,u;e.every(o,b)&&(a=e.createObjectLiteral());var m=e.createParameter(void 0,void 0,void 0,l,void 0,c,a);if(g(n.parameters)){var p=n.parameters[0],f=e.createParameter(void 0,void 0,void 0,p.name,void 0,p.type);return e.suppressLeadingAndTrailingTrivia(f.name),v(p.name,f.name),p.type&&(e.suppressLeadingAndTrailingTrivia(f.type),v(p.type,f.type)),e.createNodeArray([f,m])}return e.createNodeArray([m]);function y(n){var a,o,s=n.type;s||!n.initializer&&!e.isRestParameter(n)||(a=n,o=i.getTypeAtLocation(a),s=e.getTypeNodeIfAccessible(o,a,t,r));var l=e.createPropertySignature(void 0,h(n),b(n)?e.createToken(56):n.questionToken,s,void 0);return e.suppressLeadingAndTrailingTrivia(l),v(n.name,l.name),n.type&&l.type&&v(n.type,l.type),l}function b(n){if(e.isRestParameter(n)){var t=i.getTypeAtLocation(n);return!i.isTupleType(t)}return i.isOptionalParameter(n)}}(i,t,r),function(n){return e.getSynthesizedDeepClone(n)});a.replaceNodeRangeWithNodes(n,e.first(i.parameters),e.last(i.parameters),s,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include});for(var l=0,c=e.sortAndDeduplicate(o.functionCalls,function(n,t){return e.compareValues(n.pos,t.pos)});l<c.length;l++){var d=c[l];if(d.arguments&&d.arguments.length){var u=e.getSynthesizedDeepClone(y(i,d.arguments),!0);a.replaceNodeRange(e.getSourceFileOfNode(d),e.first(d.arguments),e.last(d.arguments),u,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}}(a,p,b,n,E,T)});return{renameFilename:void 0,renameLocation:void 0,edits:S}}return{edits:[]}},getAvailableActions:function(n){var t=n.file,a=n.startPosition;if(e.isSourceFileJS(t))return e.emptyArray;if(!u(t,a,n.program.getTypeChecker()))return e.emptyArray;var i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object);return[{name:r,description:i,actions:[{name:r,description:i}]}]}})}(n.convertParamsToDestructuredObject||(n.convertParamsToDestructuredObject={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){function n(n,r,a,i){var o=e.isNodeKind(n)?new t(n,r,a):73===n?new u(73,r,a):new c(n,r,a);return o.parent=i,o.flags=12679168&i.flags,o}e.servicesVersion="0.8";var t=function(){function t(e,n,t){this.pos=n,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return t.prototype.assertHasRealPosition=function(n){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),n||"Node must have a real position for this operation")},t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(n,t){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,n,t)},t.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},t.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},t.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(e){return this.getChildren(e).length},t.prototype.getChildAt=function(e,n){return this.getChildren(n)[e]},t.prototype.getChildren=function(t){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(t,r){if(!e.isNodeKind(t.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(t))return t.forEachChild(function(e){i.push(e)}),i;e.scanner.setText((r||t.getSourceFile()).text);var o=t.pos,s=function(e){a(i,o,e.pos,t),i.push(e),o=e.end};return e.forEach(t.jsDoc,s),o=t.pos,t.forEachChild(s,function(e){a(i,o,e.pos,t),i.push(function(e,t){var r=n(314,e.pos,e.end,t);r._children=[];for(var i=e.pos,o=0,s=e;o<s.length;o++){var l=s[o];a(r._children,i,l.pos,t),r._children.push(l),i=l.end}return a(r._children,i,e.end,t),r}(e,t)),o=e.end}),a(i,o,t.end,t),e.scanner.setText(void 0),i}(this,t))},t.prototype.getFirstToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n);if(t.length){var r=e.find(t,function(e){return e.kind<289||e.kind>313});return r.kind<149?r:r.getFirstToken(n)}},t.prototype.getLastToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n),r=e.lastOrUndefined(t);if(r)return r.kind<149?r:r.getLastToken(n)},t.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},t}();function a(t,r,a,i){for(e.scanner.setTextPos(r);r<a;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=a&&(73===o&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(i.kind)+" to have an Identifier in its trivia"),t.push(n(o,r,s,i))),r=s,1===o)break}}var i=function(){function n(e,n){this.pos=e,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(n,t){return e.getTokenPosOfNode(this,n,t)},n.prototype.getFullStart=function(){return this.pos},n.prototype.getEnd=function(){return this.end},n.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.getChildCount=function(){return 0},n.prototype.getChildAt=function(){},n.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},n.prototype.getFirstToken=function(){},n.prototype.getLastToken=function(){},n.prototype.forEachChild=function(){},n}(),l=function(){function n(e,n){this.flags=e,this.escapedName=n}return n.prototype.getFlags=function(){return this.flags},Object.defineProperty(n.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),n.prototype.getEscapedName=function(){return this.escapedName},n.prototype.getName=function(){return this.name},n.prototype.getDeclarations=function(){return this.declarations},n.prototype.getDocumentationComment=function(n){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=g(this.declarations,n)),this.documentationComment},n.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},n}(),c=function(e){function n(n,t,r){var a=e.call(this,t,r)||this;return a.kind=n,a}return d(n,e),n}(i),u=function(n){function t(e,t,r){return n.call(this,t,r)||this}return d(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),t}(i);u.prototype.kind=73;var m=function(){function n(e,n){this.checker=e,this.flags=n}return n.prototype.getFlags=function(){return this.flags},n.prototype.getSymbol=function(){return this.symbol},n.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},n.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},n.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},n.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},n.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},n.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},n.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},n.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},n.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},n.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},n.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},n.prototype.isUnion=function(){return!!(1048576&this.flags)},n.prototype.isIntersection=function(){return!!(2097152&this.flags)},n.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},n.prototype.isLiteral=function(){return!!(384&this.flags)},n.prototype.isStringLiteral=function(){return!!(128&this.flags)},n.prototype.isNumberLiteral=function(){return!!(256&this.flags)},n.prototype.isTypeParameter=function(){return!!(262144&this.flags)},n.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},n.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},n}(),p=function(){function n(e){this.checker=e}return n.prototype.getDeclaration=function(){return this.declaration},n.prototype.getTypeParameters=function(){return this.typeParameters},n.prototype.getParameters=function(){return this.parameters},n.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},n.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=g(e.singleElementArray(this.declaration),this.checker))},n.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},n}();function f(n){return e.getJSDocTags(n).some(function(e){return"inheritDoc"===e.tagName.text})}function g(n,t){if(!n)return e.emptyArray;var r=e.JsDoc.getJsDocCommentsFromDeclarations(n);if(0===r.length||n.some(f))for(var a=0,i=n;a<i.length;a++){var o=i[a],s=_(o,o.symbol.name,t);s&&(r=0===r.length?s.slice():s.concat(e.lineBreakPart(),r))}return r}function _(n,t,r){return e.firstDefined(n.parent?e.getAllSuperTypeNodes(n.parent):e.emptyArray,function(e){var n=r.getTypeAtLocation(e),a=n&&r.getPropertyOfType(n,t),i=a&&a.getDocumentationComment(r);return i&&i.length?i:void 0})}var y=function(n){function t(e,t,r){return n.call(this,e,t,r)||this}return d(t,n),t.prototype.update=function(n,t){return e.updateSourceFile(this,n,t)},t.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},t.prototype.getLineStarts=function(){return e.getLineStarts(this)},t.prototype.getPositionOfLineAndCharacter=function(n,t,r){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),n,t,this.text,r)},t.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},t.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},t.prototype.computeNamedDeclarations=function(){var n=e.createMultiMap();return this.forEachChild(function a(i){switch(i.kind){case 240:case 197:case 157:case 156:var o=i,s=r(o);if(s){var l=function(e){var t=n.get(e);t||n.set(e,t=[]);return t}(s),c=e.lastOrUndefined(l);c&&o.parent===c.parent&&o.symbol===c.symbol?o.body&&!c.body&&(l[l.length-1]=o):l.push(o)}e.forEachChild(i,a);break;case 241:case 210:case 242:case 243:case 244:case 245:case 249:case 258:case 254:case 251:case 252:case 159:case 160:case 169:t(i),e.forEachChild(i,a);break;case 152:if(!e.hasModifier(i,92))break;case 238:case 187:var d=i;if(e.isBindingPattern(d.name)){e.forEachChild(d.name,a);break}d.initializer&&a(d.initializer);case 279:case 155:case 154:t(i);break;case 256:i.exportClause&&e.forEach(i.exportClause.elements,a);break;case 250:var u=i.importClause;u&&(u.name&&t(u.name),u.namedBindings&&(252===u.namedBindings.kind?t(u.namedBindings):e.forEach(u.namedBindings.elements,a)));break;case 205:0!==e.getAssignmentDeclarationKind(i)&&t(i);default:e.forEachChild(i,a)}}),n;function t(e){var t=r(e);t&&n.add(t,e)}function r(n){var t=e.getNonAssignedNameOfDeclaration(n);return t&&(e.isComputedPropertyName(t)&&e.isPropertyAccessExpression(t.expression)?t.expression.name.text:e.isPropertyName(t)?e.getNameFromPropertyName(t):void 0)}},t}(t),v=function(){function n(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}return n.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},n}();function h(n){var t=!0;for(var r in n)if(e.hasProperty(n,r)&&!b(r)){t=!1;break}if(t)return n;var a={};for(var r in n){if(e.hasProperty(n,r))a[b(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=n[r]}return a}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function E(){return{target:1,jsx:1}}e.toEditorSettings=h,e.displayPartsToString=function(n){return n?e.map(n,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=E,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var T=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,a=n.getScriptFileNames();r<a.length;r++){var i=a[r];this.createEntry(i,e.toPath(i,this.currentDirectory,t))}this._compilationSettings=n.getCompilationSettings()||{target:1,jsx:1}}return n.prototype.compilationSettings=function(){return this._compilationSettings},n.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},n.prototype.createEntry=function(n,t){var r,a=this.host.getScriptSnapshot(n);return r=a?{hostFileName:n,version:this.host.getScriptVersion(n),scriptSnapshot:a,scriptKind:e.getScriptKind(n,this.host)}:n,this.fileNameToEntry.set(t,r),r},n.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},n.prototype.getHostFileInformation=function(n){var t=this.fileNameToEntry.get(n);return e.isString(t)?void 0:t},n.prototype.getOrCreateEntryByPath=function(n,t){var r=this.getEntryByPath(t)||this.createEntry(n,t);return e.isString(r)?void 0:r},n.prototype.getRootFileNames=function(){var n=[];return this.fileNameToEntry.forEach(function(t){e.isString(t)?n.push(t):6!==t.scriptKind&&n.push(t.hostFileName)}),n},n.prototype.getVersion=function(e){var n=this.getHostFileInformation(e);return n&&n.version},n.prototype.getScriptSnapshot=function(e){var n=this.getHostFileInformation(e);return n&&n.scriptSnapshot},n}(),S=function(){function n(e){this.host=e}return n.prototype.getCurrentSourceFile=function(n){var t=this.host.getScriptSnapshot(n);if(!t)throw new Error("Could not find file: '"+n+"'.");var r,a=e.getScriptKind(n,this.host),i=this.host.getScriptVersion(n);if(this.currentFileName!==n)r=A(n,t,99,i,!0,a);else if(this.currentFileVersion!==i){var o=t.getChangeRange(this.currentFileScriptSnapshot);r=x(this.currentSourceFile,t,i,o)}return r&&(this.currentFileVersion=i,this.currentFileName=n,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},n}();function L(e,n,t){e.version=t,e.scriptSnapshot=n}function A(n,t,r,a,i,o){var s=e.createSourceFile(n,e.getSnapshotText(t),r,i,o);return L(s,t,a),s}function x(n,t,r,a,i){if(a&&r!==n.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==a.span.start?n.text.substr(0,a.span.start):"",l=e.textSpanEnd(a.span)!==n.text.length?n.text.substr(e.textSpanEnd(a.span)):"";if(0===a.newLength)o=s&&l?s+l:s||l;else{var c=t.getText(a.span.start,a.span.start+a.newLength);o=s&&l?s+c+l:s?s+c:c+l}var d=e.updateSourceFile(n,o,a,i);return L(d,t,r),d.nameTable=void 0,n!==d&&n.scriptSnapshot&&(n.scriptSnapshot.dispose&&n.scriptSnapshot.dispose(),n.scriptSnapshot=void 0),d}return A(n.fileName,t,n.languageVersion,r,!0,n.scriptKind)}e.createLanguageServiceSourceFile=A,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=x;var C=function(){function n(e){this.cancellationToken=e}return n.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},n}(),D=function(){function n(e,n){void 0===n&&(n=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}return n.prototype.isCancellationRequested=function(){var n=e.timestamp();return Math.abs(n-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=n,this.hostCancellationToken.isCancellationRequested())},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},n}();function R(n){var t=function(n){switch(n.kind){case 10:case 8:if(150===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 73:return!e.isObjectLiteralElement(n.parent)||189!==n.parent.parent.kind&&269!==n.parent.parent.kind||n.parent.name!==n?void 0:n.parent}return}(n);return t&&(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))?t:void 0}function M(n,t,r,a){var i=e.getNameFromPropertyName(n.name);if(!i)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(i))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,function(r){return e.isObjectLiteralExpression(n.parent)&&t.isTypeInvalidDueToUnionDiscriminant(r,n.parent)?void 0:r.getProperty(i)});if(a&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(i)))return[o];return 0===s.length?e.mapDefined(r.types,function(e){return e.getProperty(i)}):s}e.ThrottledCancellationToken=D,e.createLanguageService=function(n,t,r){var a;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),void 0===r&&(r=!1);var i,l,c=new S(n),d=0,u=new C(n.getCancellationToken&&n.getCancellationToken()),m=n.getCurrentDirectory();function p(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=n.getLocalizedDiagnosticMessages());var f=e.hostUsesCaseSensitiveFileNames(n),g=e.createGetCanonicalFileName(f),_=e.getSourceMapper({useCaseSensitiveFileNames:function(){return f},getCurrentDirectory:function(){return m},getProgram:b,fileExists:n.fileExists&&function(e){return n.fileExists(e)},readFile:n.readFile&&function(e,t){return n.readFile(e,t)},getDocumentPositionMapper:n.getDocumentPositionMapper&&function(e,t){return n.getDocumentPositionMapper(e,t)},getSourceFileLike:n.getSourceFileLike&&function(e){return n.getSourceFileLike(e)},log:p});function y(e){var n=i.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '"+e+"'.");throw t.ProgramFiles=i.getSourceFiles().map(function(e){return e.fileName}),t}return n}function v(){if(e.Debug.assert(!r),n.getProjectVersion){var a=n.getProjectVersion();if(a){if(l===a&&!n.hasChangedAutomaticTypeDirectiveNames)return;l=a}}var o=n.getTypeRootsVersion?n.getTypeRootsVersion():0;d!==o&&(p("TypeRoots version has changed; provide new program"),i=void 0,d=o);var s=new T(n,g),c=s.getRootFileNames(),y=n.hasInvalidatedResolution||e.returnFalse,v=s.getProjectReferences();if(!e.isProgramUptoDate(i,c,s.compilationSettings(),function(e){return s.getVersion(e)},L,y,!!n.hasChangedAutomaticTypeDirectiveNames,v)){var h=s.compilationSettings(),b={getSourceFile:function(n,t,r,a){return A(n,e.toPath(n,m,g),0,0,a)},getSourceFileByPath:A,getCancellationToken:function(){return u},getCanonicalFileName:g,useCaseSensitiveFileNames:function(){return f},getNewLine:function(){return e.getNewLineCharacter(h,function(){return e.getNewLineOrDefaultFromHost(n)})},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return m},fileExists:L,readFile:function(t){var r=e.toPath(t,m,g),a=s&&s.getEntryByPath(r);return a?e.isString(a)?void 0:e.getSnapshotText(a.scriptSnapshot):n.readFile&&n.readFile(t)},realpath:n.realpath&&function(e){return n.realpath(e)},directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:function(t,r,a,i,o){return e.Debug.assertDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,a,i,o)},onReleaseOldSourceFile:function(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r)},hasInvalidatedResolution:y,hasChangedAutomaticTypeDirectiveNames:n.hasChangedAutomaticTypeDirectiveNames};n.trace&&(b.trace=function(e){return n.trace(e)}),n.resolveModuleNames&&(b.resolveModuleNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveModuleNames.apply(n,e)}),n.resolveTypeReferenceDirectives&&(b.resolveTypeReferenceDirectives=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveTypeReferenceDirectives.apply(n,e)});var E=t.getKeyForCompilationSettings(h),S={rootNames:c,options:h,host:b,oldProgram:i,projectReferences:v};return i=e.createProgram(S),s=void 0,_.clearCache(),void i.getTypeChecker()}function L(t){var r=e.toPath(t,m,g),a=s&&s.getEntryByPath(r);return a?!e.isString(a):!!n.fileExists&&n.fileExists(t)}function A(n,r,a,o,l){e.Debug.assert(void 0!==s,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=s&&s.getOrCreateEntryByPath(n,r);if(c){if(!l){var d=i&&i.getSourceFileByPath(r);if(d)return e.Debug.assertEqual(c.scriptKind,d.scriptKind,"Registered script kind should match new script kind.",r),t.updateDocumentWithKey(n,r,h,E,c.scriptSnapshot,c.version,c.scriptKind)}return t.acquireDocumentWithKey(n,r,h,E,c.scriptSnapshot,c.version,c.scriptKind)}}}function b(){if(!r)return v(),i;e.Debug.assert(void 0===i)}function E(n,t,r){var a=e.normalizePath(n);e.Debug.assert(r.some(function(n){return e.normalizePath(n)===a})),v();var o=e.mapDefined(r,function(e){return i.getSourceFile(e)}),s=y(n);return e.DocumentHighlights.getDocumentHighlights(i,u,s,t,o)}function L(n,t,r,a){v();var o=r&&r.isForRename?i.getSourceFiles().filter(function(e){return!i.isSourceFileDefaultLibrary(e)}):i.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(i,u,o,n,t,r,a)}function A(t){var r=e.getScriptKind(t,n);return 3===r||4===r}var x=e.createMapFromTemplate(((a={})[18]=19,a[20]=21,a[22]=23,a[30]=28,a));function D(t){var r;return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:(r=t.file,e.toPath(r,m,g)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function I(t,r,a,i){var o="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:o[0],endPosition:o[1],program:b(),host:n,formatContext:e.formatting.getFormatContext(i),cancellationToken:u,preferences:a}}return x.forEach(function(e,n){return x.set(e.toString(),Number(n))}),{dispose:function(){i&&(e.forEach(i.getSourceFiles(),function(e){return t.releaseDocument(e.fileName,i.getCompilerOptions())}),i=void 0),n=void 0},cleanupSemanticCache:function(){i=void 0},getSyntacticDiagnostics:function(e){return v(),i.getSyntacticDiagnostics(y(e),u).slice()},getSemanticDiagnostics:function(n){v();var t=y(n),r=i.getSemanticDiagnostics(t,u);if(!e.getEmitDeclarations(i.getCompilerOptions()))return r.slice();var a=i.getDeclarationDiagnostics(t,u);return o(r,a)},getSuggestionDiagnostics:function(n){return v(),e.computeSuggestionDiagnostics(y(n),i,u)},getCompilerOptionsDiagnostics:function(){return v(),o(i.getOptionsDiagnostics(u),i.getGlobalDiagnostics(u))},getSyntacticClassifications:function(n,t){return e.getSyntacticClassifications(u,c.getCurrentSourceFile(n),t)},getSemanticClassifications:function(n,t){return A(n)?(v(),e.getSemanticClassifications(i.getTypeChecker(),u,y(n),i.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(n,t){return e.getEncodedSyntacticClassifications(u,c.getCurrentSourceFile(n),t)},getEncodedSemanticClassifications:function(n,t){return A(n)?(v(),e.getEncodedSemanticClassifications(i.getTypeChecker(),u,y(n),i.getClassifiableNames(),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(t,r,a){void 0===a&&(a=e.emptyOptions);var o=s(s({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return v(),e.Completions.getCompletionsAtPosition(n,i,p,y(t),r,o,a.triggerCharacter)},getCompletionEntryDetails:function(t,r,a,o,s,l){return void 0===l&&(l=e.emptyOptions),v(),e.Completions.getCompletionEntryDetails(i,p,y(t),r,{name:a,source:s},n,o&&e.formatting.getFormatContext(o),l,u)},getCompletionEntrySymbol:function(n,t,r,a){return v(),e.Completions.getCompletionEntrySymbol(i,p,y(n),t,{name:r,source:a})},getSignatureHelpItems:function(n,t,r){var a=(void 0===r?e.emptyOptions:r).triggerReason;v();var o=y(n);return e.SignatureHelp.getSignatureHelpItems(i,o,t,a,u)},getQuickInfoAtPosition:function(n,t){v();var r=y(n),a=e.getTouchingPropertyName(r,t);if(a!==r){var o=i.getTypeChecker(),s=function(n){return e.isNewExpression(n.parent)&&n.pos===n.parent.pos?n.parent.expression:n}(a),l=function(n,t){var r=R(n);if(r){var a=t.getContextualType(r.parent),i=a&&M(r,t,a,!1);if(i&&1===i.length)return e.first(i)}return t.getSymbolAtLocation(n)}(s,o);if(!l||o.isUnknownSymbol(l)){var c=function(n,t,r){switch(t.kind){case 73:return!e.isLabelName(t)&&!e.isTagName(t);case 190:case 149:return!e.isInComment(n,r);case 101:case 179:case 99:return!0;default:return!1}}(r,s,t)?o.getTypeAtLocation(s):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,r),displayParts:o.runWithCancellationToken(u,function(n){return e.typeToDisplayParts(n,c,e.getContainerNode(s))}),documentation:c.symbol?c.symbol.getDocumentationComment(o):void 0,tags:c.symbol?c.symbol.getJsDocTags():void 0}}var d=o.runWithCancellationToken(u,function(n){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,l,r,e.getContainerNode(s),s)}),m=d.symbolKind,p=d.displayParts,f=d.documentation,g=d.tags;return{kind:m,kindModifiers:e.SymbolDisplay.getSymbolModifiers(l),textSpan:e.createTextSpanFromNode(s,r),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(n,t){return v(),e.GoToDefinition.getDefinitionAtPosition(i,y(n),t)},getDefinitionAndBoundSpan:function(n,t){return v(),e.GoToDefinition.getDefinitionAndBoundSpan(i,y(n),t)},getImplementationAtPosition:function(n,t){return v(),e.FindAllReferences.getImplementationsAtPosition(i,u,i.getSourceFiles(),y(n),t)},getTypeDefinitionAtPosition:function(n,t){return v(),e.GoToDefinition.getTypeDefinitionAtPosition(i.getTypeChecker(),y(n),t)},getReferencesAtPosition:function(n,t){return v(),L(e.getTouchingPropertyName(y(n),t),t,{},e.FindAllReferences.toReferenceEntry)},findReferences:function(n,t){return v(),e.FindAllReferences.findReferencedSymbols(i,u,i.getSourceFiles(),y(n),t)},getOccurrencesAtPosition:function(n,t){return e.flatMap(E(n,t,[n]),function(e){return e.highlightSpans.map(function(n){return s(s({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1},n.isInString&&{isInString:!0}),n.contextSpan&&{contextSpan:n.contextSpan})})})},getDocumentHighlights:E,getNameOrDottedNameSpan:function(n,t,r){var a=c.getCurrentSourceFile(n),i=e.getTouchingPropertyName(a,t);if(i!==a){switch(i.kind){case 190:case 149:case 10:case 88:case 103:case 97:case 99:case 101:case 179:case 73:break;default:return}for(var o=i;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(245!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),i.getEnd())}},getBreakpointStatementAtPosition:function(n,t){var r=c.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(n,t,r,a){void 0===a&&(a=!1),v();var o=r?[y(r)]:i.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,i.getTypeChecker(),u,n,t,a)},getRenameInfo:function(n,t,r){return v(),e.Rename.getRenameInfo(i,y(n),t,r)},getSmartSelectionRange:function(n,t){return e.SmartSelectionRange.getSmartSelectionRange(t,c.getCurrentSourceFile(n))},findRenameLocations:function(n,t,r,a,i){v();var o=y(n),l=e.getTouchingPropertyName(o,t);if(e.isIdentifier(l)&&(e.isJsxOpeningElement(l.parent)||e.isJsxClosingElement(l.parent))&&e.isIntrinsicJsxName(l.escapedText)){var c=l.parent.parent;return[c.openingElement,c.closingElement].map(function(n){var t=e.createTextSpanFromNode(n.tagName,o);return s({fileName:o.fileName,textSpan:t},e.FindAllReferences.toContextSpan(t,o,n.parent))})}return L(l,t,{findInStrings:r,findInComments:a,providePrefixAndSuffixTextForRename:i,isForRename:!0},function(n,t,r){return e.FindAllReferences.toRenameLocation(n,t,r,i||!1)})},getNavigationBarItems:function(n){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(n),u)},getNavigationTree:function(n){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(n),u)},getOutliningSpans:function(n){var t=c.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,u)},getTodoComments:function(n,t){v();var r=y(n);u.throwIfCancellationRequested();var a,i,o=r.text,s=[];if(t.length>0&&(i=r.fileName,!e.stringContains(i,"/node_modules/")))for(var l=function(){var n="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(t,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(n+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),c=void 0;c=l.exec(o);){u.throwIfCancellationRequested(),e.Debug.assert(c.length===t.length+3);var d=c[1],m=c.index+d.length;if(e.isInComment(r,m)){for(var p=void 0,f=0;f<t.length;f++)c[f+3]&&(p=t[f]);if(void 0===p)return e.Debug.fail();if(!((a=o.charCodeAt(m+p.text.length))>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)){var g=c[2];s.push({descriptor:p,message:g,position:m})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=c.getCurrentSourceFile(n),a=e.getTouchingToken(r,t),i=a.getStart(r)===t?x.get(a.kind.toString()):void 0,o=i&&e.findChildOfKind(a.parent,i,r);return o?[e.createTextSpanFromNode(a,r),e.createTextSpanFromNode(o,r)].sort(function(e,n){return e.start-n.start}):e.emptyArray},getIndentationAtPosition:function(n,t,r){var a=e.timestamp(),i=h(r),o=c.getCurrentSourceFile(n);p("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,i);return p("getIndentationAtPosition: computeIndentation  : "+(e.timestamp()-a)),s},getFormattingEditsForRange:function(n,t,r,a){var i=c.getCurrentSourceFile(n);return e.formatting.formatSelection(t,r,i,e.formatting.getFormatContext(h(a)))},getFormattingEditsForDocument:function(n,t){return e.formatting.formatDocument(c.getCurrentSourceFile(n),e.formatting.getFormatContext(h(t)))},getFormattingEditsAfterKeystroke:function(n,t,r,a){var i=c.getCurrentSourceFile(n),o=e.formatting.getFormatContext(h(a));if(!e.isInComment(i,t))switch(r){case"{":return e.formatting.formatOnOpeningCurly(t,i,o);case"}":return e.formatting.formatOnClosingCurly(t,i,o);case";":return e.formatting.formatOnSemicolon(t,i,o);case"\n":return e.formatting.formatOnEnter(t,i,o)}return[]},getDocCommentTemplateAtPosition:function(t,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),c.getCurrentSourceFile(t),r)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var a=c.getCurrentSourceFile(n);if(e.isInString(a,t))return!1;if(e.isInsideJsxElementOrAttribute(a,t))return 123===r;if(e.isInTemplateString(a,t))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(a,t)}return!0},getJsxClosingTagAtPosition:function(n,t){var r=c.getCurrentSourceFile(n),a=e.findPrecedingToken(t,r);if(a){var i=30===a.kind&&e.isJsxOpeningElement(a.parent)?a.parent.parent:e.isJsxText(a)?a.parent:void 0;return i&&function n(t){var r=t.openingElement,a=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,a.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&n(i)}(i)?{newText:"</"+i.openingElement.tagName.getText(r)+">"}:void 0}},getSpanOfEnclosingComment:function(n,t,r){var a=c.getCurrentSourceFile(n),i=e.formatting.getRangeOfEnclosingComment(a,t);return!i||r&&3!==i.kind?void 0:e.createTextSpanFromRange(i)},getCodeFixesAtPosition:function(t,r,a,o,s,l){void 0===l&&(l=e.emptyOptions),v();var c=y(t),d=e.createTextSpanFromBounds(r,a),m=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),function(t){return u.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:c,span:d,program:i,host:n,cancellationToken:u,formatContext:m,preferences:l})})},getCombinedCodeFix:function(t,r,a,o){void 0===o&&(o=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var s=y(t.fileName),l=e.formatting.getFormatContext(a);return e.codefix.getAllFixes({fixId:r,sourceFile:s,program:i,host:n,cancellationToken:u,formatContext:l,preferences:o})},applyCodeActionCommand:function(n,t){var r="string"==typeof n?t:n;return e.isArray(r)?Promise.all(r.map(function(e){return D(e)})):D(r)},organizeImports:function(t,r,a){void 0===a&&(a=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var o=y(t.fileName),s=e.formatting.getFormatContext(r);return e.OrganizeImports.organizeImports(o,s,n,i,a)},getEditsForFileRename:function(t,r,a,i){return void 0===i&&(i=e.emptyOptions),e.getEditsForFileRename(b(),t,r,n,e.formatting.getFormatContext(a),i,_)},getEmitOutput:function(t,r){void 0===r&&(r=!1),v();var a=y(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(i,a,r,u,o)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:b,getApplicableRefactors:function(n,t,r){void 0===r&&(r=e.emptyOptions),v();var a=y(n);return e.refactor.getApplicableRefactors(I(a,t,r))},getEditsForRefactor:function(n,t,r,a,i,o){void 0===o&&(o=e.emptyOptions),v();var s=y(n);return e.refactor.getEditsForRefactor(I(s,r,o,t),a,i)},toLineColumnOffset:_.toLineColumnOffset,getSourceMapper:function(){return _}}},e.getNameTable=function(n){return n.nameTable||function(n){var t=n.nameTable=e.createUnderscoreEscapedMap();n.forEachChild(function n(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&function(n){return e.isDeclarationName(n)||260===n.parent.kind||function(e){return e&&e.parent&&191===e.parent.kind&&e.parent.argumentExpression===e}(n)||e.isLiteralComputedPropertyDeclarationName(n)}(r)){var a=e.getEscapedTextOfIdentifierOrLiteral(r);t.set(a,void 0===t.get(a)?r.pos:-1)}if(e.forEachChild(r,n),e.hasJSDocNodes(r))for(var i=0,o=r.jsDoc;i<o.length;i++){var s=o[i];e.forEachChild(s,n)}})}(n),n.nameTable},e.getContainingObjectLiteralElement=R,e.getPropertySymbolsFromContextualType=M,e.getDefaultLibFilePath=function(n){return r+e.directorySeparator+e.getDefaultLibFileName(n)},e.objectAllocator={getNodeConstructor:function(){return t},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return u},getSourceFileConstructor:function(){return y},getSymbolConstructor:function(){return l},getTypeConstructor:function(){return m},getSignatureConstructor:function(){return p},getSourceMapSourceConstructor:function(){return v}}}(u||(u={})),function(e){!function(n){n.spanInSourceFileAtLocation=function(n,t){if(!n.isDeclarationFile){var r=e.getTokenAtPosition(n,t),a=n.getLineAndCharacterOfPosition(t).line;if(n.getLineAndCharacterOfPosition(r.getStart(n)).line>a){var i=e.findPrecedingToken(r.pos,n);if(!i||n.getLineAndCharacterOfPosition(i.getEnd()).line!==a)return;r=i}if(!(4194304&r.flags))return u(r)}function o(t,r){var a=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(a,(r||t).getEnd())}function s(t,r){return o(t,e.findNextToken(r,r.parent,n))}function l(e,t){return e&&a===n.getLineAndCharacterOfPosition(e.getStart(n)).line?u(e):u(t)}function c(t){return u(e.findPrecedingToken(t.pos,n))}function d(t){return u(e.findNextToken(t,t.parent,n))}function u(t){if(t){var r=t.parent;switch(t.kind){case 220:return E(t.declarationList.declarations[0]);case 238:case 155:case 154:return E(t);case 152:return function n(t){if(e.isBindingPattern(t.name))return A(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasModifier(n,12)}(t))return o(t);var r=t.parent,a=r.parameters.indexOf(t);return e.Debug.assert(-1!==a),0!==a?n(r.parameters[a-1]):u(r.body)}(t);case 240:case 157:case 156:case 159:case 160:case 158:case 197:case 198:return function(e){if(e.body)return T(e)?o(e):u(e.body)}(t);case 219:if(e.isFunctionBlock(t))return v=(y=t).statements.length?y.statements[0]:y.getLastToken(),T(y.parent)?l(y.parent,v):u(v);case 246:return S(t);case 275:return S(t.block);case 222:return o(t.expression);case 231:return o(t.getChildAt(0),t.expression);case 225:return s(t,t.expression);case 224:return u(t.statement);case 237:return o(t.getChildAt(0));case 223:return s(t,t.expression);case 234:return u(t.statement);case 230:case 229:return o(t.getChildAt(0),t.label);case 226:return(_=t).initializer?L(_):_.condition?o(_.condition):_.incrementor?o(_.incrementor):void 0;case 227:return s(t,t.expression);case 228:return L(t);case 233:return s(t,t.expression);case 272:case 273:return u(t.statements[0]);case 236:return S(t.tryBlock);case 235:case 255:return o(t,t.expression);case 249:return o(t,t.moduleReference);case 250:case 256:return o(t,t.moduleSpecifier);case 245:if(1!==e.getModuleInstanceState(t))return;case 241:case 244:case 279:case 187:return o(t);case 232:return u(t.statement);case 153:return h=r.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,h.pos),h.end);case 185:case 186:return A(t);case 242:case 243:return;case 26:case 1:return l(e.findPrecedingToken(t.pos,n));case 27:return c(t);case 18:return function(t){switch(t.parent.kind){case 244:var r=t.parent;return l(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 241:var a=t.parent;return l(e.findPrecedingToken(t.pos,n,t.parent),a.members.length?a.members[0]:a.getLastToken(n));case 247:return l(t.parent.parent,t.parent.clauses[0])}return u(t.parent)}(t);case 19:return function(n){switch(n.parent.kind){case 246:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 244:case 241:return o(n);case 219:if(e.isFunctionBlock(n.parent))return o(n);case 275:return u(e.lastOrUndefined(n.parent.statements));case 247:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?u(e.lastOrUndefined(r.statements)):void 0;case 185:var a=n.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var i=n.parent;return o(e.lastOrUndefined(i.properties)||i)}return u(n.parent)}}(t);case 23:return function(n){switch(n.parent.kind){case 186:var t=n.parent;return o(e.lastOrUndefined(t.elements)||t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var r=n.parent;return o(e.lastOrUndefined(r.elements)||r)}return u(n.parent)}}(t);case 20:return function(e){return 224===e.parent.kind||192===e.parent.kind||193===e.parent.kind?c(e):196===e.parent.kind?d(e):u(e.parent)}(t);case 21:return function(e){switch(e.parent.kind){case 197:case 240:case 198:case 157:case 156:case 159:case 160:case 158:case 225:case 224:case 226:case 228:case 192:case 193:case 196:return c(e);default:return u(e.parent)}}(t);case 57:return function(n){return e.isFunctionLike(n.parent)||276===n.parent.kind||152===n.parent.kind?c(n):u(n.parent)}(t);case 30:case 28:return function(e){return 195===e.parent.kind?d(e):u(e.parent)}(t);case 108:return function(e){return 224===e.parent.kind?s(e,e.parent.expression):u(e.parent)}(t);case 84:case 76:case 89:return d(t);case 148:return function(e){return 228===e.parent.kind?d(e):u(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return x(t);if((73===t.kind||209===t.kind||276===t.kind||277===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(205===t.kind){var a=t,i=a.left,m=a.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i))return x(i);if(60===m.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return o(t);if(27===m.kind)return u(i)}if(e.isExpressionNode(t))switch(r.kind){case 224:return c(t);case 153:return u(t.parent);case 226:case 228:return o(t);case 205:if(27===t.parent.operatorToken.kind)return o(t);break;case 198:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 276:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return u(t.parent.initializer);break;case 195:if(t.parent.type===t)return d(t.parent.type);break;case 238:case 152:var p=t.parent,f=p.initializer,g=p.type;if(f===t||g===t||e.isAssignmentOperator(t.kind))return c(t);break;case 205:if(i=t.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(i)&&t!==i)return c(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return c(t)}return u(t.parent)}}var _,y,v,h;function b(t){return e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]===t?o(e.findPrecedingToken(t.pos,n,t.parent),t):o(t)}function E(t){if(227===t.parent.parent.kind)return u(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?A(t.name):t.initializer||e.hasModifier(t,1)||228===r.parent.kind?b(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?u(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function T(n){return e.hasModifier(n,1)||241===n.parent.kind&&158!==n.kind}function S(t){switch(t.parent.kind){case 245:if(1!==e.getModuleInstanceState(t.parent))return;case 225:case 223:case 227:return l(t.parent,t.statements[0]);case 226:case 228:return l(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return u(t.statements[0])}function L(e){if(239!==e.initializer.kind)return u(e.initializer);var n=e.initializer;return n.declarations.length>0?u(n.declarations[0]):void 0}function A(n){var t=e.forEach(n.elements,function(e){return 211!==e.kind?e:void 0});return t?u(t):187===n.parent.kind?o(n.parent):b(n.parent)}function x(n){e.Debug.assert(186!==n.kind&&185!==n.kind);var t=188===n.kind?n.elements:n.properties,r=e.forEach(t,function(e){return 211!==e.kind?e:void 0});return r?u(r):o(205===n.parent.kind?n.parent:n)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(u||(u={})),function(e){e.transform=function(n,t,r){var a=[];r=e.fixupCompilerOptions(r,a);var i=e.isArray(n)?n:[n],o=e.transformNodes(void 0,void 0,r,i,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}}(u||(u={}));var u,m,p=function(){return this}();!function(e){function n(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}var t=function(){function n(e){this.scriptSnapshotShim=e}return n.prototype.getText=function(e,n){return this.scriptSnapshotShim.getText(e,n)},n.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},n.prototype.getChangeRange=function(n){var t=n,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var a=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(a.span.start,a.span.length),a.newLength)},n.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},n}(),r=function(){function n(n){var t=this;this.shimHost=n,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(n,r){var a=JSON.parse(t.shimHost.getModuleResolutionsForFile(r));return e.map(n,function(n){var t=e.getProperty(a,n);return t?{resolvedFileName:t,extension:e.extensionFromPath(t),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(n,r){var a=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(n,function(n){return e.getProperty(a,n)})})}return n.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},n.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},n.prototype.error=function(e){this.shimHost.error(e)},n.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},n.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},n.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},n.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},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){var n=this.shimHost.getScriptSnapshot(e);return n&&new t(n)},n.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},n.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},n.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}},n.prototype.getCancellationToken=function(){var n=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(n)},n.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},n.prototype.readDirectory=function(n,t,r,a,i){var o=e.getFileMatcherPatterns(n,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},n.prototype.readFile=function(e,n){return this.shimHost.readFile(e,n)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n}();e.LanguageServiceShimHostAdapter=r;var i=function(){function n(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)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return n.shimHost.realpath(e)}:this.realpath=void 0}return n.prototype.readDirectory=function(n,t,r,a,i){var o=e.getFileMatcherPatterns(n,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n.prototype.readFile=function(e){return this.shimHost.readFile(e)},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n}();function s(e,n,t,r){return l(e,n,!0,t,r)}function l(t,r,a,i,o){try{var s=function(n,t,r,a){var i;a&&(n.log(t),i=e.timestamp());var o=r();if(a){var s=e.timestamp();if(n.log(t+" completed in "+(s-i)+" msec"),e.isString(o)){var l=o;l.length>128&&(l=l.substring(0,128)+"..."),n.log("  result.length="+l.length+", result='"+JSON.stringify(l)+"'")}}return o}(t,r,i,o);return a?JSON.stringify({result:s}):s}catch(a){return a instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,a),a.description=r,JSON.stringify({error:a}))}}e.CoreServicesShimHostAdapter=i;var c=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function u(n,t){return n.map(function(n){return function(n,t){return{message:e.flattenDiagnosticMessageText(n.messageText,t),start:n.start,length:n.length,category:e.diagnosticCategoryName(n),code:n.code,reportsUnnecessary:n.reportsUnnecessary}}(n,t)})}e.realizeDiagnostics=u;var m=function(n){function t(e,t,r){var a=n.call(this,e)||this;return a.host=t,a.languageService=r,a.logPerformance=!1,a.logger=a.host,a}return d(t,n),t.prototype.forwardJSONCall=function(e,n){return s(this.logger,e,n,this.logPerformance)},t.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p&&p.CollectGarbage&&(p.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,n.prototype.dispose.call(this,e)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},t.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},t.prototype.realizeDiagnostics=function(n){return u(n,e.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSyntacticClassifications('"+n+"', "+t+", "+r+")",function(){return a.languageService.getSyntacticClassifications(n,e.createTextSpan(t,r))})},t.prototype.getSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSemanticClassifications('"+n+"', "+t+", "+r+")",function(){return a.languageService.getSemanticClassifications(n,e.createTextSpan(t,r))})},t.prototype.getEncodedSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+n+"', "+t+", "+r+")",function(){return f(a.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))})},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+n+"', "+t+", "+r+")",function(){return f(a.languageService.getEncodedSemanticClassifications(n,e.createTextSpan(t,r)))})},t.prototype.getSyntacticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var t=n.languageService.getSyntacticDiagnostics(e);return n.realizeDiagnostics(t)})},t.prototype.getSemanticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var t=n.languageService.getSemanticDiagnostics(e);return n.realizeDiagnostics(t)})},t.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return n.realizeDiagnostics(n.languageService.getSuggestionDiagnostics(e))})},t.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var n=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(n)})},t.prototype.getQuickInfoAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+n+")",function(){return t.languageService.getQuickInfoAtPosition(e,n)})},t.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+n+", "+t+")",function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)})},t.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+n+")",function(){return t.languageService.getBreakpointStatementAtPosition(e,n)})},t.prototype.getSignatureHelpItems=function(e,n,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+n+")",function(){return r.languageService.getSignatureHelpItems(e,n,t)})},t.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+n+")",function(){return t.languageService.getDefinitionAtPosition(e,n)})},t.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+n+")",function(){return t.languageService.getDefinitionAndBoundSpan(e,n)})},t.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+n+")",function(){return t.languageService.getTypeDefinitionAtPosition(e,n)})},t.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+n+")",function(){return t.languageService.getImplementationAtPosition(e,n)})},t.prototype.getRenameInfo=function(e,n,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+n+")",function(){return r.languageService.getRenameInfo(e,n,t)})},t.prototype.getSmartSelectionRange=function(e,n){var t=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+n+")",function(){return t.languageService.getSmartSelectionRange(e,n)})},t.prototype.findRenameLocations=function(e,n,t,r,a){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+", "+a+")",function(){return i.languageService.findRenameLocations(e,n,t,r,a)})},t.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+n+")",function(){return t.languageService.getBraceMatchingAtPosition(e,n)})},t.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+n+", "+t+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)})},t.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+n+")",function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)})},t.prototype.getIndentationAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+n+")",function(){var a=JSON.parse(t);return r.languageService.getIndentationAtPosition(e,n,a)})},t.prototype.getReferencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+n+")",function(){return t.languageService.getReferencesAtPosition(e,n)})},t.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('"+e+"', "+n+")",function(){return t.languageService.findReferences(e,n)})},t.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+n+")",function(){return t.languageService.getOccurrencesAtPosition(e,n)})},t.prototype.getDocumentHighlights=function(n,t,r){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+t+")",function(){var i=a.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.normalizeSlashes(n).toLowerCase();return e.filter(i,function(n){return e.normalizeSlashes(n.fileName).toLowerCase()===o})})},t.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+n+", "+t+")",function(){return r.languageService.getCompletionsAtPosition(e,n,t)})},t.prototype.getCompletionEntryDetails=function(e,n,t,r,a,i){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+n+", '"+t+"')",function(){var s=void 0===r?void 0:JSON.parse(r);return o.languageService.getCompletionEntryDetails(e,n,t,s,a,i)})},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+n+", "+t+")",function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsForRange(e,n,t,i)})},t.prototype.getFormattingEditsForDocument=function(e,n){var t=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(n);return t.languageService.getFormattingEditsForDocument(e,r)})},t.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+n+", '"+t+"')",function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsAfterKeystroke(e,n,t,i)})},t.prototype.getDocCommentTemplateAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+n+")",function(){return t.languageService.getDocCommentTemplateAtPosition(e,n)})},t.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+n+", "+t+")",function(){return r.languageService.getNavigateToItems(e,n,t)})},t.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return n.languageService.getNavigationBarItems(e)})},t.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return n.languageService.getNavigationTree(e)})},t.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return n.languageService.getOutliningSpans(e)})},t.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return t.languageService.getTodoComments(e,JSON.parse(n))})},t.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return n.languageService.getEmitOutput(e)})},t.prototype.getEmitOutputObject=function(e){var n=this;return l(this.logger,"getEmitOutput('"+e+"')",!1,function(){return n.languageService.getEmitOutput(e)},this.logPerformance)},t}(c);function f(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var g=function(n){function t(t,r){var a=n.call(this,t)||this;return a.logger=r,a.logPerformance=!1,a.classifier=e.createClassifier(),a}return d(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),s(this.logger,"getEncodedLexicalClassifications",function(){return f(r.classifier.getEncodedLexicalClassifications(e,n,t))},this.logPerformance)},t.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},t}(c),_=function(n){function t(e,t,r){var a=n.call(this,e)||this;return a.logger=t,a.host=r,a.logPerformance=!1,a}return d(t,n),t.prototype.forwardJSONCall=function(e,n){return s(this.logger,e,n,this.logPerformance)},t.prototype.resolveModuleName=function(n,t,r){var a=this;return this.forwardJSONCall("resolveModuleName('"+n+"')",function(){var i=JSON.parse(r),o=e.resolveModuleName(t,e.normalizeSlashes(n),i,a.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}})},t.prototype.resolveTypeReferenceDirective=function(n,t,r){var a=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+n+")",function(){var i=JSON.parse(r),o=e.resolveTypeReferenceDirective(t,e.normalizeSlashes(n),i,a.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}})},t.prototype.getPreProcessedFileInfo=function(n,t){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+n+"')",function(){var n=e.preProcessFile(e.getSnapshotText(t),!0,!0);return{referencedFiles:r.convertFileReferences(n.referencedFiles),importedFiles:r.convertFileReferences(n.importedFiles),ambientExternalModules:n.ambientExternalModules,isLibFile:n.isLibFile,typeReferenceDirectives:r.convertFileReferences(n.typeReferenceDirectives),libReferenceDirectives:r.convertFileReferences(n.libReferenceDirectives)}})},t.prototype.getAutomaticTypeDirectiveNames=function(n){var t=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+n+"')",function(){var r=JSON.parse(n);return e.getAutomaticTypeDirectiveNames(r,t.host)})},t.prototype.convertFileReferences=function(n){if(n){for(var t=[],r=0,a=n;r<a.length;r++){var i=a[r];t.push({path:e.normalizeSlashes(i.fileName),position:i.pos,length:i.end-i.pos})}return t}},t.prototype.getTSConfigFileInfo=function(n,t){var r=this;return this.forwardJSONCall("getTSConfigFileInfo('"+n+"')",function(){var a=e.parseJsonText(n,e.getSnapshotText(t)),i=e.normalizeSlashes(n),s=e.parseJsonSourceFileConfigFileContent(a,r.host,e.getDirectoryPath(i),{},i);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:u(o(a.parseDiagnostics,s.errors),"\r\n")}})},t.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},t.prototype.discoverTypings=function(n){var t=this,r=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var a=JSON.parse(n);return void 0===t.safeList&&(t.safeList=e.JsTyping.loadSafeList(t.host,e.toPath(a.safeListPath,a.safeListPath,r))),e.JsTyping.discoverTypings(t.host,function(e){return t.logger.log(e)},a.fileNames,e.toPath(a.projectRootPath,a.projectRootPath,r),t.safeList,a.packageNameToTypingLocation,a.typeAcquisition,a.unresolvedImports,a.typesRegistry)})},t}(c),y=function(){function t(){this._shims=[]}return t.prototype.getServicesVersion=function(){return e.servicesVersion},t.prototype.createLanguageServiceShim=function(t){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var a=new r(t),i=e.createLanguageService(a,this.documentRegistry,!1);return new m(this,t,i)}catch(e){throw n(t,e),e}},t.prototype.createClassifierShim=function(e){try{return new g(this,e)}catch(t){throw n(e,t),t}},t.prototype.createCoreServicesShim=function(e){try{var t=new i(e);return new _(this,e,t)}catch(t){throw n(e,t),t}},t.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},t.prototype.registerShim=function(e){this._shims.push(e)},t.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")},t}();e.TypeScriptServicesFactory=y,void 0!==a&&a.exports&&(a.exports=e)}(u||(u={})),function(e){!function(e){e.TypeScriptServicesFactory=u.TypeScriptServicesFactory}(e.Services||(e.Services={}))}(m||(m={}));u.versionMajorMinor,u.createClassifier;var f=u.createLanguageService,g=(u.displayPartsToString,u.EndOfLineState,u.flattenDiagnosticMessageText,u.IndentStyle,u.ScriptKind),_=u.ScriptTarget;u.TokenClass}).call(n,t("W2nU"),"/",t("f1Eh")(e))},DuR2:function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},V8Zd:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.emit=function(e){this.listeners.forEach(function(n){n(e)})},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}());function a(e){s(e)||r.onUnexpectedError(e)}function i(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var o="Canceled";function s(e){return e instanceof Error&&e.name===o&&e.message===o}var l=!1,c="__is_disposable_tracked__";function d(e){if(l&&e&&e!==f.None)try{e[c]=!0}catch(e){}}function u(e){if(!l)return e;var n=new Error("Potentially leaked disposable").stack;return setTimeout(function(){e[c]||console.log(n)},3e3),e}function m(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.forEach(d),u({dispose:function(){return function(e){return Array.isArray(e)?(e.forEach(function(e){e&&(d(e),e.dispose())}),[]):e?(d(e),e.dispose(),e):void 0}(e)}})}var p=function(){function e(){this._toDispose=new Set,this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed||(d(this),this._isDisposed=!0,this.clear())},e.prototype.clear=function(){this._toDispose.forEach(function(e){return e.dispose()}),this._toDispose.clear()},e.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return d(e),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e},e}(),f=function(){function e(){this._store=new p,u(this)}return e.prototype.dispose=function(){d(this),this._store.dispose()},e.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},e.None=Object.freeze({dispose:function(){}}),e}(),g=(function(){function e(){this._isDisposed=!1,u(this)}Object.defineProperty(e.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&d(e),this._value=e)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.value=void 0},e.prototype.dispose=function(){this._isDisposed=!0,d(this),this._value&&this._value.dispose(),this._value=void 0}}(),function(){function e(e){this.object=e}e.prototype.dispose=function(){}}(),t("ZfGv"));Object.prototype.hasOwnProperty;function _(e){for(var n=[],t=0,r=function(e){for(var n=[],t=Object.getPrototypeOf(e);Object.prototype!==t;)n=n.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return n}(e);t<r.length;t++){var a=r[t];"function"==typeof e[a]&&n.push(a)}return n}function y(e,n){for(var t=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);return n(e,t)}},r={},a=0,i=e;a<i.length;a++){var o=i[a];r[o]=t(o)}return r}var v,h=this&&this.__extends||(v=function(e,n){return(v=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)},function(e,n){function t(){this.constructor=e}v(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),b="$initialize";var E=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,n){var t=this,r=String(++this._lastSentReq);return new Promise(function(a,i){t._pendingReplies[r]={resolve:a,reject:i},t._send({vsWorker:t._workerId,req:r,method:e,args:n})})},e.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},e.prototype._handleMessage=function(e){var n=this;if(e.seq){var t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");var r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){var a=t.err;return t.err.$isError&&((a=new Error).name=t.err.name,a.message=t.err.message,a.stack=t.err.stack),void r.reject(a)}r.resolve(t.res)}else{var o=e,s=o.req;this._handler.handleMessage(o.method,o.args).then(function(e){n._send({vsWorker:n._workerId,seq:s,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=i(e.detail)),n._send({vsWorker:n._workerId,seq:s,res:void 0,err:i(e)})})}},e.prototype._send=function(e){var n=[];if(e.req)for(var t=e,r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else(t=e).res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(e,n)},e}(),T=(function(e){function n(n,t,r){var a=e.call(this)||this,i=null;a._worker=a._register(n.create("vs/base/common/worker/simpleWorker",function(e){a._protocol.handleMessage(e)},function(e){i&&i(e)})),a._protocol=new E({sendMessage:function(e,n){a._worker.postMessage(e,n)},handleMessage:function(e,n){if("function"!=typeof r[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(r[e].apply(r,n))}catch(e){return Promise.reject(e)}}}),a._protocol.setWorkerId(a._worker.getId());var o=null;void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config);var s=_(r);a._onModuleLoaded=a._protocol.sendMessage(b,[a._worker.getId(),JSON.parse(JSON.stringify(o)),t,s]);var l=function(e,n){return a._request(e,n)};return a._lazyProxy=new Promise(function(e,n){i=n,a._onModuleLoaded.then(function(n){e(y(n,l))},function(e){n(e),a._onError("Worker failed to load "+t,e)})}),a}h(n,e),n.prototype.getProxyObject=function(){return this._lazyProxy},n.prototype._request=function(e,n){var t=this;return new Promise(function(r,a){t._onModuleLoaded.then(function(){t._protocol.sendMessage(e,n).then(r,a)},a)})},n.prototype._onError=function(e,n){console.error(e),console.info(n)}}(f),function(){function e(e,n){var t=this;this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new E({sendMessage:function(n,t){e(n,t)},handleMessage:function(e,n){return t._handleMessage(e,n)}})}return e.prototype.onmessage=function(e){this._protocol.handleMessage(e)},e.prototype._handleMessage=function(e,n){if(e===b)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(e){return Promise.reject(e)}},e.prototype.initialize=function(e,n,t,r){var a=this;this._protocol.setWorkerId(e);var i=y(r,function(e,n){return a._protocol.sendMessage(e,n)});return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(_(this._requestHandler))):(n&&(void 0!==n.baseUrl&&delete n.baseUrl,void 0!==n.paths&&void 0!==n.paths.vs&&delete n.paths.vs,n.catchError=!0,self.require.config(n)),new Promise(function(e,n){self.require([t],function(t){a._requestHandler=t.create(i),a._requestHandler?e(_(a._requestHandler)):n(new Error("No RequestHandler!"))},n)}))},e}());function S(e,n){return function e(n,t,r,a,i){if(a<=r)return;var o=r+(a-r)/2|0;e(n,t,r,o,i);e(n,t,o+1,a,i);if(t(n[o],n[o+1])<=0)return;!function(e,n,t,r,a,i){for(var o=t,s=r+1,l=t;l<=a;l++)i[l]=e[l];for(var l=t;l<=a;l++)o>r?e[l]=i[s++]:s>a?e[l]=i[o++]:n(i[s],i[o])<0?e[l]=i[s++]:e[l]=i[o++]}(n,t,r,o,a,i)}(e,n,0,e.length-1,[]),e}var L=function(){function e(e,n,t,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=t,this.modifiedLength=r}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function A(e){return{getLength:function(){return e.length},getElementAtIndex:function(n){return e.charCodeAt(n)}}}function x(e,n,t){return new I(A(e),A(n)).ComputeDiff(t)}var C,D=function(){function e(){}return e.Assert=function(e,n){if(!e)throw new Error(n)},e}(),R=function(){function e(){}return e.Copy=function(e,n,t,r,a){for(var i=0;i<a;i++)t[r+i]=e[n+i]},e}(),M=function(){function e(){this.m_changes=[],this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new L(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),I=function(){function e(e,n,t){void 0===t&&(t=null),this.OriginalSequence=e,this.ModifiedSequence=n,this.ContinueProcessingPredicate=t,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,n){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(n)},e.prototype.OriginalElementsAreEqual=function(e,n){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(n)},e.prototype.ModifiedElementsAreEqual=function(e,n){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(n)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,n,t,r,a){var i=this.ComputeDiffRecursive(e,n,t,r,[!1]);return a?this.PrettifyChanges(i):i},e.prototype.ComputeDiffRecursive=function(e,n,t,r,a){for(a[0]=!1;e<=n&&t<=r&&this.ElementsAreEqual(e,t);)e++,t++;for(;n>=e&&r>=t&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||t>r){var i=void 0;return t<=r?(D.Assert(e===n+1,"originalStart should only be one more than originalEnd"),i=[new L(e,0,t,r-t+1)]):e<=n?(D.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new L(e,n-e+1,t,0)]):(D.Assert(e===n+1,"originalStart should only be one more than originalEnd"),D.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}var o=[0],s=[0],l=this.ComputeRecursionPoint(e,n,t,r,o,s,a),c=o[0],d=s[0];if(null!==l)return l;if(!a[0]){var u=this.ComputeDiffRecursive(e,c,t,d,a),m=[];return m=a[0]?[new L(c+1,n-(c+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(c+1,n,d+1,r,a),this.ConcatenateChanges(u,m)}return[new L(e,n-e+1,t,r-t+1)]},e.prototype.WALKTRACE=function(e,n,t,r,a,i,o,s,l,c,d,u,m,p,f,g,_,y){var v,h,b=null,E=new M,T=n,S=t,A=m[0]-g[0]-r,x=Number.MIN_VALUE,C=this.m_forwardHistory.length-1;do{(h=A+e)===T||h<S&&l[h-1]<l[h+1]?(p=(d=l[h+1])-A-r,d<x&&E.MarkNextChange(),x=d,E.AddModifiedElement(d+1,p),A=h+1-e):(p=(d=l[h-1]+1)-A-r,d<x&&E.MarkNextChange(),x=d-1,E.AddOriginalElement(d,p+1),A=h-1-e),C>=0&&(e=(l=this.m_forwardHistory[C])[0],T=1,S=l.length-1)}while(--C>=-1);if(v=E.getReverseChanges(),y[0]){var D=m[0]+1,R=g[0]+1;if(null!==v&&v.length>0){var I=v[v.length-1];D=Math.max(D,I.getOriginalEnd()),R=Math.max(R,I.getModifiedEnd())}b=[new L(D,u-D+1,R,f-R+1)]}else{E=new M,T=i,S=o,A=m[0]-g[0]-s,x=Number.MAX_VALUE,C=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(h=A+a)===T||h<S&&c[h-1]>=c[h+1]?(p=(d=c[h+1]-1)-A-s,d>x&&E.MarkNextChange(),x=d+1,E.AddOriginalElement(d+1,p+1),A=h+1-a):(p=(d=c[h-1])-A-s,d>x&&E.MarkNextChange(),x=d,E.AddModifiedElement(d+1,p+1),A=h-1-a),C>=0&&(a=(c=this.m_reverseHistory[C])[0],T=1,S=c.length-1)}while(--C>=-1);b=E.getChanges()}return this.ConcatenateChanges(v,b)},e.prototype.ComputeRecursionPoint=function(e,n,t,r,a,i,o){var s,l=0,c=0,d=0,u=0,m=0,p=0;e--,t--,a[0]=0,i[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var f,g,_=n-e+(r-t),y=_+1,v=new Array(y),h=new Array(y),b=r-t,E=n-e,T=e-t,S=n-r,A=(E-b)%2==0;for(v[b]=e,h[E]=n,o[0]=!1,s=1;s<=_/2+1;s++){var x=0,C=0;for(d=this.ClipDiagonalBound(b-s,s,b,y),u=this.ClipDiagonalBound(b+s,s,b,y),f=d;f<=u;f+=2){for(c=(l=f===d||f<u&&v[f-1]<v[f+1]?v[f+1]:v[f-1]+1)-(f-b)-T,g=l;l<n&&c<r&&this.ElementsAreEqual(l+1,c+1);)l++,c++;if(v[f]=l,l+c>x+C&&(x=l,C=c),!A&&Math.abs(f-E)<=s-1&&l>=h[f])return a[0]=l,i[0]=c,g<=h[f]&&s<=1448?this.WALKTRACE(b,d,u,T,E,m,p,S,v,h,l,n,a,c,r,i,A,o):null}var D=(x-e+(C-t)-s)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(x,this.OriginalSequence,D))return o[0]=!0,a[0]=x,i[0]=C,D>0&&s<=1448?this.WALKTRACE(b,d,u,T,E,m,p,S,v,h,l,n,a,c,r,i,A,o):[new L(++e,n-e+1,++t,r-t+1)];for(m=this.ClipDiagonalBound(E-s,s,E,y),p=this.ClipDiagonalBound(E+s,s,E,y),f=m;f<=p;f+=2){for(c=(l=f===m||f<p&&h[f-1]>=h[f+1]?h[f+1]-1:h[f-1])-(f-E)-S,g=l;l>e&&c>t&&this.ElementsAreEqual(l,c);)l--,c--;if(h[f]=l,A&&Math.abs(f-b)<=s&&l<=v[f])return a[0]=l,i[0]=c,g>=v[f]&&s<=1448?this.WALKTRACE(b,d,u,T,E,m,p,S,v,h,l,n,a,c,r,i,A,o):null}if(s<=1447){var M=new Array(u-d+2);M[0]=b-d+1,R.Copy(v,d,M,1,u-d+1),this.m_forwardHistory.push(M),(M=new Array(p-m+2))[0]=E-m+1,R.Copy(h,m,M,1,p-m+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(b,d,u,T,E,m,p,S,v,h,l,n,a,c,r,i,A,o)},e.prototype.PrettifyChanges=function(e){for(var n=0;n<e.length;n++){for(var t=e[n],r=n<e.length-1?e[n+1].originalStart:this.OriginalSequence.getLength(),a=n<e.length-1?e[n+1].modifiedStart:this.ModifiedSequence.getLength(),i=t.originalLength>0,o=t.modifiedLength>0;t.originalStart+t.originalLength<r&&t.modifiedStart+t.modifiedLength<a&&(!i||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!o||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));)t.originalStart++,t.modifiedStart++;var s=[null];n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],s)&&(e[n]=s[0],e.splice(n+1,1),n--)}for(n=e.length-1;n>=0;n--){t=e[n],r=0,a=0;if(n>0){var l=e[n-1];l.originalLength>0&&(r=l.originalStart+l.originalLength),l.modifiedLength>0&&(a=l.modifiedStart+l.modifiedLength)}i=t.originalLength>0,o=t.modifiedLength>0;for(var c=0,d=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength),u=1;;u++){var m=t.originalStart-u,p=t.modifiedStart-u;if(m<r||p<a)break;if(i&&!this.OriginalElementsAreEqual(m,m+t.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(p,p+t.modifiedLength))break;var f=this._boundaryScore(m,t.originalLength,p,t.modifiedLength);f>d&&(d=f,c=u)}t.originalStart-=c,t.modifiedStart-=c}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var n=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof n&&/^\s*$/.test(n)},e.prototype._OriginalRegionIsBoundary=function(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){var t=e+n;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var n=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof n&&/^\s*$/.test(n)},e.prototype._ModifiedRegionIsBoundary=function(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){var t=e+n;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1},e.prototype._boundaryScore=function(e,n,t,r){return(this._OriginalRegionIsBoundary(e,n)?1:0)+(this._ModifiedRegionIsBoundary(t,r)?1:0)},e.prototype.ConcatenateChanges=function(e,n){var t=[];if(0===e.length||0===n.length)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],t)){var r=new Array(e.length+n.length-1);return R.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],R.Copy(n,1,r,e.length,n.length-1),r}r=new Array(e.length+n.length);return R.Copy(e,0,r,0,e.length),R.Copy(n,0,r,e.length,n.length),r},e.prototype.ChangesOverlap=function(e,n,t){if(D.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),D.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){var r=e.originalStart,a=e.originalLength,i=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(a=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new L(r,a,i,o),!0}return t[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,n,t,r){if(e>=0&&e<r)return e;var a=n%2==0;return e<0?a===(t%2==0)?0:1:a===((r-t-1)%2==0)?r-1:r-2},e}(),O=this&&this.__extends||function(){var e=function(n,t){return(e=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])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),k={done:!0,value:void 0};!function(e){var n={next:function(){return k}};e.empty=function(){return n},e.single=function(e){var n=!1;return{next:function(){return n?k:(n=!0,{done:!1,value:e})}}},e.fromArray=function(e,n,t){return void 0===n&&(n=0),void 0===t&&(t=e.length),{next:function(){return n>=t?k:{done:!1,value:e[n++]}}}},e.from=function(n){return n?Array.isArray(n)?e.fromArray(n):n:e.empty()},e.map=function(e,n){return{next:function(){var t=e.next();return t.done?k:{done:!1,value:n(t.value)}}}},e.filter=function(e,n){return{next:function(){for(;;){var t=e.next();if(t.done)return k;if(n(t.value))return{done:!1,value:t.value}}}}},e.forEach=function(e,n){for(var t=e.next();!t.done;t=e.next())n(t.value)},e.collect=function(e,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var t=[];if(0===n)return t;for(var r=0,a=e.next();!(a.done||(t.push(a.value),++r>=n));a=e.next());return t},e.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=0;return{next:function(){if(t>=e.length)return k;var n=e[t].next();return n.done?(t++,this.next()):n}}}}(C||(C={}));(function(e){function n(n,t,r,a){return void 0===t&&(t=0),void 0===r&&(r=n.length),void 0===a&&(a=t-1),e.call(this,n,t,r,a)||this}O(n,e),n.prototype.current=function(){return e.prototype.current.call(this)},n.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},n.prototype.first=function(){return this.index=this.start,this.current()},n.prototype.last=function(){return this.index=this.end-1,this.current()},n.prototype.parent=function(){return null}})(function(){function e(e,n,t,r){void 0===n&&(n=0),void 0===t&&(t=e.length),void 0===r&&(r=n-1),this.items=e,this.start=n,this.end=t,this.index=r}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}()),function(){function e(e,n){this.iterator=e,this.fn=n}e.prototype.next=function(){return this.fn(this.iterator.next())}}();var N,w=this&&this.__extends||function(){var e=function(n,t){return(e=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])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),P=/^\w[\w\d+.-]*$/,G=/^\//,F=/^\/\//,V=!0;var B="",U="/",H=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,K=function(){function e(e,n,t,r,a,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||B,this.authority=e.authority||B,this.path=e.path||B,this.query=e.query||B,this.fragment=e.fragment||B):(this.scheme=function(e,n){return n||V?e||B:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,i),this.authority=n||B,this.path=function(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==U&&(n=U+n):n=U}return n}(this.scheme,t||B),this.query=r||B,this.fragment=a||B,function(e,n){if(!e.scheme){if(n||V)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!P.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!G.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(F.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,i))}return e.isUri=function(n){return n instanceof e||!!n&&("string"==typeof n.authority&&"string"==typeof n.fragment&&"string"==typeof n.path&&"string"==typeof n.query&&"string"==typeof n.scheme&&"function"==typeof n.fsPath&&"function"==typeof n.with&&"function"==typeof n.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return J(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var n=e.scheme,t=e.authority,r=e.path,a=e.query,i=e.fragment;return void 0===n?n=this.scheme:null===n&&(n=B),void 0===t?t=this.authority:null===t&&(t=B),void 0===r?r=this.path:null===r&&(r=B),void 0===a?a=this.query:null===a&&(a=B),void 0===i?i=this.fragment:null===i&&(i=B),n===this.scheme&&t===this.authority&&r===this.path&&a===this.query&&i===this.fragment?this:new W(n,t,r,a,i)},e.parse=function(e,n){void 0===n&&(n=!1);var t=H.exec(e);return t?new W(t[2]||B,decodeURIComponent(t[4]||B),decodeURIComponent(t[5]||B),decodeURIComponent(t[7]||B),decodeURIComponent(t[9]||B),n):new W(B,B,B,B,B)},e.file=function(e){var n=B;if(g.c&&(e=e.replace(/\\/g,U)),e[0]===U&&e[1]===U){var t=e.indexOf(U,2);-1===t?(n=e.substring(2),e=U):(n=e.substring(2,t),e=e.substring(t)||U)}return new W("file",n,e,B,B)},e.from=function(e){return new W(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),Y(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(n){if(n){if(n instanceof e)return n;var t=new W(n);return t._formatted=n.external,t._fsPath=n._sep===j?n.fsPath:null,t}return n},e}(),j=g.c?1:void 0,W=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return w(n,e),Object.defineProperty(n.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=J(this)),this._fsPath},enumerable:!0,configurable:!0}),n.prototype.toString=function(e){return void 0===e&&(e=!1),e?Y(this,!0):(this._formatted||(this._formatted=Y(this,!1)),this._formatted)},n.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=j),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},n}(K),q=((N={})[58]="%3A",N[47]="%2F",N[63]="%3F",N[35]="%23",N[91]="%5B",N[93]="%5D",N[64]="%40",N[33]="%21",N[36]="%24",N[38]="%26",N[39]="%27",N[40]="%28",N[41]="%29",N[42]="%2A",N[43]="%2B",N[44]="%2C",N[59]="%3B",N[61]="%3D",N[32]="%20",N);function z(e,n){for(var t=void 0,r=-1,a=0;a<e.length;a++){var i=e.charCodeAt(a);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||n&&47===i)-1!==r&&(t+=encodeURIComponent(e.substring(r,a)),r=-1),void 0!==t&&(t+=e.charAt(a));else{void 0===t&&(t=e.substr(0,a));var o=q[i];void 0!==o?(-1!==r&&(t+=encodeURIComponent(e.substring(r,a)),r=-1),t+=o):-1===r&&(r=a)}}return-1!==r&&(t+=encodeURIComponent(e.substring(r))),void 0!==t?t:e}function X(e){for(var n=void 0,t=0;t<e.length;t++){var r=e.charCodeAt(t);35===r||63===r?(void 0===n&&(n=e.substr(0,t)),n+=q[r]):void 0!==n&&(n+=e[t])}return void 0!==n?n:e}function J(e){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,g.c&&(n=n.replace(/\//g,"\\")),n}function Y(e,n){var t=n?X:z,r="",a=e.scheme,i=e.authority,o=e.path,s=e.query,l=e.fragment;if(a&&(r+=a,r+=":"),(i||"file"===a)&&(r+=U,r+=U),i){var c=i.indexOf("@");if(-1!==c){var d=i.substr(0,c);i=i.substr(c+1),-1===(c=d.indexOf(":"))?r+=t(d,!1):(r+=t(d.substr(0,c),!1),r+=":",r+=t(d.substr(c+1),!1)),r+="@"}-1===(c=(i=i.toLowerCase()).indexOf(":"))?r+=t(i,!1):(r+=t(i.substr(0,c),!1),r+=i.substr(c))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2))(u=o.charCodeAt(1))>=65&&u<=90&&(o="/"+String.fromCharCode(u+32)+":"+o.substr(3));else if(o.length>=2&&58===o.charCodeAt(1)){var u;(u=o.charCodeAt(0))>=65&&u<=90&&(o=String.fromCharCode(u+32)+":"+o.substr(2))}r+=t(o,!0)}return s&&(r+="?",r+=t(s,!1)),l&&(r+="#",r+=n?l:z(l,!1)),r}var Q=function(){function e(e,n){this.lineNumber=e,this.column=n}return e.prototype.with=function(n,t){return void 0===n&&(n=this.lineNumber),void 0===t&&(t=this.column),n===this.lineNumber&&t===this.column?this:new e(n,t)},e.prototype.delta=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=0),this.with(this.lineNumber+e,this.column+n)},e.prototype.equals=function(n){return e.equals(this,n)},e.equals=function(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column},e.prototype.isBefore=function(n){return e.isBefore(this,n)},e.isBefore=function(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<n.column},e.prototype.isBeforeOrEqual=function(n){return e.isBeforeOrEqual(this,n)},e.isBeforeOrEqual=function(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<=n.column},e.compare=function(e,n){var t=0|e.lineNumber,r=0|n.lineNumber;return t===r?(0|e.column)-(0|n.column):t-r},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(n){return new e(n.lineNumber,n.column)},e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},e}(),Z=function(){function e(e,n,t,r){e>t||e===t&&n>r?(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=t,this.endColumn=r)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(n){return e.containsPosition(this,n)},e.containsPosition=function(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber)&&(!(n.lineNumber===e.startLineNumber&&n.column<e.startColumn)&&!(n.lineNumber===e.endLineNumber&&n.column>e.endColumn))},e.prototype.containsRange=function(n){return e.containsRange(this,n)},e.containsRange=function(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber)&&(!(n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)))},e.prototype.strictContainsRange=function(n){return e.strictContainsRange(this,n)},e.strictContainsRange=function(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber)&&(!(n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)))},e.prototype.plusRange=function(n){return e.plusRange(this,n)},e.plusRange=function(n,t){var r,a,i,o;return t.startLineNumber<n.startLineNumber?(r=t.startLineNumber,a=t.startColumn):t.startLineNumber===n.startLineNumber?(r=t.startLineNumber,a=Math.min(t.startColumn,n.startColumn)):(r=n.startLineNumber,a=n.startColumn),t.endLineNumber>n.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===n.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,n.endColumn)):(i=n.endLineNumber,o=n.endColumn),new e(r,a,i,o)},e.prototype.intersectRanges=function(n){return e.intersectRanges(this,n)},e.intersectRanges=function(n,t){var r=n.startLineNumber,a=n.startColumn,i=n.endLineNumber,o=n.endColumn,s=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,d=t.endColumn;return r<s?(r=s,a=l):r===s&&(a=Math.max(a,l)),i>c?(i=c,o=d):i===c&&(o=Math.min(o,d)),r>i?null:r===i&&a>o?null:new e(r,a,i,o)},e.prototype.equalsRange=function(n){return e.equalsRange(this,n)},e.equalsRange=function(e,n){return!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn},e.prototype.getEndPosition=function(){return new Q(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new Q(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(n,t){return new e(this.startLineNumber,this.startColumn,n,t)},e.prototype.setStartPosition=function(n,t){return new e(n,t,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(n){return new e(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},e.fromPositions=function(n,t){return void 0===t&&(t=n),new e(n.lineNumber,n.column,t.lineNumber,t.column)},e.lift=function(n){return n?new e(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn)&&!(n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)},e.areIntersecting=function(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn)&&!(n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,n){if(e&&n){var t=0|e.startLineNumber,r=0|n.startLineNumber;if(t===r){var a=0|e.startColumn,i=0|n.startColumn;if(a===i){var o=0|e.endLineNumber,s=0|n.endLineNumber;return o===s?(0|e.endColumn)-(0|n.endColumn):o-s}return a-i}return t-r}return(e?1:0)-(n?1:0)},e.compareRangesUsingEnds=function(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}();String.fromCharCode(65279);var $=5e3,ee=3;function ne(e,n,t,r){return new I(e,n,t).ComputeDiff(r)}var te=function(){function e(n){for(var t=[],r=[],a=0,i=n.length;a<i;a++)t[a]=e._getFirstNonBlankColumn(n[a],1),r[a]=e._getLastNonBlankColumn(n[a],1);this._lines=n,this._startColumns=t,this._endColumns=r}return e.prototype.getLength=function(){return this._lines.length},e.prototype.getElementAtIndex=function(e){return this._lines[e].substring(this._startColumns[e]-1,this._endColumns[e]-1)},e.prototype.getStartLineNumber=function(e){return e+1},e.prototype.getEndLineNumber=function(e){return e+1},e._getFirstNonBlankColumn=function(e,n){var t=function(e){for(var n=0,t=e.length;n<t;n++){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}(e);return-1===t?n:t+1},e._getLastNonBlankColumn=function(e,n){var t=function(e,n){void 0===n&&(n=e.length-1);for(var t=n;t>=0;t--){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1}(e);return-1===t?n:t+2},e.prototype.getCharSequence=function(e,n,t){for(var r=[],a=[],i=[],o=0,s=n;s<=t;s++)for(var l=this._lines[s],c=e?this._startColumns[s]:1,d=e?this._endColumns[s]:l.length+1,u=c;u<d;u++)r[o]=l.charCodeAt(u-1),a[o]=s+1,i[o]=u,o++;return new re(r,a,i)},e}(),re=function(){function e(e,n,t){this._charCodes=e,this._lineNumbers=n,this._columns=t}return e.prototype.getLength=function(){return this._charCodes.length},e.prototype.getElementAtIndex=function(e){return this._charCodes[e]},e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getStartColumn=function(e){return this._columns[e]},e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getEndColumn=function(e){return this._columns[e]+1},e}(),ae=function(){function e(e,n,t,r,a,i,o,s){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=t,this.originalEndColumn=r,this.modifiedStartLineNumber=a,this.modifiedStartColumn=i,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}return e.createFromDiffChange=function(n,t,r){var a,i,o,s,l,c,d,u;return 0===n.originalLength?(a=0,i=0,o=0,s=0):(a=t.getStartLineNumber(n.originalStart),i=t.getStartColumn(n.originalStart),o=t.getEndLineNumber(n.originalStart+n.originalLength-1),s=t.getEndColumn(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(l=0,c=0,d=0,u=0):(l=r.getStartLineNumber(n.modifiedStart),c=r.getStartColumn(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1),u=r.getEndColumn(n.modifiedStart+n.modifiedLength-1)),new e(a,i,o,s,l,c,d,u)},e}();var ie=function(){function e(e,n,t,r,a){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=t,this.modifiedEndLineNumber=r,this.charChanges=a}return e.createFromDiffResult=function(n,t,r,a,i,o,s){var l,c,d,u,m=void 0;if(0===t.originalLength?(l=r.getStartLineNumber(t.originalStart)-1,c=0):(l=r.getStartLineNumber(t.originalStart),c=r.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(d=a.getStartLineNumber(t.modifiedStart)-1,u=0):(d=a.getStartLineNumber(t.modifiedStart),u=a.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&0!==t.originalLength&&0!==t.modifiedLength&&i()){var p=r.getCharSequence(n,t.originalStart,t.originalStart+t.originalLength-1),f=a.getCharSequence(n,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),g=ne(p,f,i,!0);s&&(g=function(e){if(e.length<=1)return e;for(var n=[e[0]],t=n[0],r=1,a=e.length;r<a;r++){var i=e[r],o=i.originalStart-(t.originalStart+t.originalLength),s=i.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(o,s)<ee?(t.originalLength=i.originalStart+i.originalLength-t.originalStart,t.modifiedLength=i.modifiedStart+i.modifiedLength-t.modifiedStart):(n.push(i),t=i)}return n}(g)),m=[];for(var _=0,y=g.length;_<y;_++)m.push(ae.createFromDiffChange(g[_],p,f))}return new e(l,c,d,u,m)},e}(),oe=function(){function e(e,n,t){this.shouldComputeCharChanges=t.shouldComputeCharChanges,this.shouldPostProcessCharChanges=t.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=t.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=t.shouldMakePrettyDiff,this.maximumRunTimeMs=$,this.originalLines=e,this.modifiedLines=n,this.original=new te(e),this.modified=new te(n),this.computationStartTime=(new Date).getTime()}return e.prototype.computeDiff=function(){if(1===this.original.getLength()&&0===this.original.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.getLength(),charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];if(1===this.modified.getLength()&&0===this.modified.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:this.original.getLength(),modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];this.computationStartTime=(new Date).getTime();var e=ne(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){for(var n=[],t=0,r=e.length;t<r;t++)n.push(ie.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e[t],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return n}for(var a=[],i=0,o=0,s=(t=-1,e.length);t<s;t++){for(var l=t+1<s?e[t+1]:null,c=l?l.originalStart:this.originalLines.length,d=l?l.modifiedStart:this.modifiedLines.length;i<c&&o<d;){var u=this.originalLines[i],m=this.modifiedLines[o];if(u!==m){for(var p=te._getFirstNonBlankColumn(u,1),f=te._getFirstNonBlankColumn(m,1);p>1&&f>1;){if(u.charCodeAt(p-2)!==m.charCodeAt(f-2))break;p--,f--}(p>1||f>1)&&this._pushTrimWhitespaceCharChange(a,i+1,1,p,o+1,1,f);for(var g=te._getLastNonBlankColumn(u,1),_=te._getLastNonBlankColumn(m,1),y=u.length+1,v=m.length+1;g<y&&_<v;){if(u.charCodeAt(g-1)!==u.charCodeAt(_-1))break;g++,_++}(g<y||_<v)&&this._pushTrimWhitespaceCharChange(a,i+1,g,y,o+1,_,v)}i++,o++}l&&(a.push(ie.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=l.originalLength,o+=l.modifiedLength)}return a},e.prototype._pushTrimWhitespaceCharChange=function(e,n,t,r,a,i,o){if(!this._mergeTrimWhitespaceCharChange(e,n,t,r,a,i,o)){var s=void 0;this.shouldComputeCharChanges&&(s=[new ae(n,t,n,r,a,i,a,o)]),e.push(new ie(n,n,a,a,s))}},e.prototype._mergeTrimWhitespaceCharChange=function(e,n,t,r,a,i,o){var s=e.length;if(0===s)return!1;var l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===a&&(l.originalEndLineNumber=n,l.modifiedEndLineNumber=a,this.shouldComputeCharChanges&&l.charChanges.push(new ae(n,t,n,r,a,i,a,o)),!0))},e.prototype._continueProcessingPredicate=function(){return 0===this.maximumRunTimeMs||(new Date).getTime()-this.computationStartTime<this.maximumRunTimeMs},e}(),se=function(){function e(e,n,t){for(var r=new Uint8Array(e*n),a=0,i=e*n;a<i;a++)r[a]=t;this._data=r,this.rows=e,this.cols=n}return e.prototype.get=function(e,n){return this._data[e*this.cols+n]},e.prototype.set=function(e,n,t){this._data[e*this.cols+n]=t},e}();function le(e){return e<0?0:e>255?255:0|e}function ce(e){return e<0?0:e>4294967295?4294967295:0|e}var de=function(){return function(e,n){this.index=e,this.remainder=n}}(),ue=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,n){e=ce(e);var t=this.values,r=this.prefixSum,a=n.length;return 0!==a&&(this.values=new Uint32Array(t.length+a),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+a),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,n){return e=ce(e),n=ce(n),this.values[e]!==n&&(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,n){e=ce(e),n=ce(n);var t=this.values,r=this.prefixSum;if(e>=t.length)return!1;var a=t.length-e;return n>=a&&(n=a),0!==n&&(this.values=new Uint32Array(t.length-n),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=ce(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var n=this.prefixSumValidIndex[0]+1;0===n&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(var t=n;t<=e;t++)this.prefixSum[t]=this.prefixSum[t-1]+this.values[t];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var n=0,t=this.values.length-1,r=0,a=0,i=0;n<=t;)if(r=n+(t-n)/2|0,e<(i=(a=this.prefixSum[r])-this.values[r]))t=r-1;else{if(!(e>=a))break;n=r+1}return new de(r,e-i)},e}(),me=(function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new ue(e),this._bustCache()}e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,n){this._actual.insertValues(e,n)&&this._bustCache()},e.prototype.changeValue=function(e,n){this._actual.changeValue(e,n)&&this._bustCache()},e.prototype.removeValues=function(e,n){this._actual.removeValues(e,n)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var n=e-this._cacheAccumulatedValueStart;if(n>=0&&n<this._cache.length)return this._cache[n]}return this._actual.getIndexOf(e)},e.prototype.warmUpCache=function(e,n){for(var t=[],r=e;r<=n;r++)t[r-e]=this.getIndexOf(r);this._cache=t,this._cacheAccumulatedValueStart=e}}(),function(){function e(e,n,t,r){this._uri=e,this._lines=n,this._eol=t,this._versionId=r,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var n=0,t=e.changes;n<t.length;n++){var r=t[n];this._acceptDeleteRange(r.range),this._acceptInsertText(new Q(r.range.startLineNumber,r.range.startColumn),r.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,n=this._lines.length,t=new Uint32Array(n),r=0;r<n;r++)t[r]=this._lines[r].length+e;this._lineStarts=new ue(t)}},e.prototype._setLineText=function(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},e.prototype._acceptInsertText=function(e,n){if(0!==n.length){var t=n.split(/\r\n|\r|\n/);if(1!==t.length){t[t.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]);for(var r=new Uint32Array(t.length-1),a=1;a<t.length;a++)this._lines.splice(e.lineNumber+a-1,0,t[a]),r[a-1]=t[a].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},e}()),pe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";var fe=function(e){void 0===e&&(e="");for(var n="(-?\\d*\\.\\d\\w*)|([^",t=0,r=pe;t<r.length;t++){var a=r[t];e.indexOf(a)>=0||(n+="\\"+a)}return n+="\\s]+)",new RegExp(n,"g")}();var ge=function(){function e(n){var t=le(n);this._defaultValue=t,this._asciiMap=e._createAsciiMap(t),this._map=new Map}return e._createAsciiMap=function(e){for(var n=new Uint8Array(256),t=0;t<256;t++)n[t]=e;return n},e.prototype.set=function(e,n){var t=le(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),_e=(function(){function e(){this._actual=new ge(0)}e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)}}(),function(){function e(e){for(var n=0,t=0,r=0,a=e.length;r<a;r++){var i=e[r],o=i[0],s=i[1],l=i[2];s>n&&(n=s),o>t&&(t=o),l>t&&(t=l)}var c=new se(++t,++n,0);for(r=0,a=e.length;r<a;r++){var d=e[r];o=d[0],s=d[1],l=d[2];c.set(o,s,l)}this._states=c,this._maxCharCode=n}return e.prototype.nextState=function(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)},e}()),ye=null;var ve=null;var he=function(){function e(){}return e._createLink=function(e,n,t,r,a){var i=a-1;do{var o=n.charCodeAt(i);if(2!==e.get(o))break;i--}while(i>r);if(r>0){var s=n.charCodeAt(r-1),l=n.charCodeAt(i);(40===s&&41===l||91===s&&93===l||123===s&&125===l)&&i--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+2},url:n.substring(r,i+1)}},e.computeLinks=function(n,t){void 0===t&&(null===ye&&(ye=new _e([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),t=ye);for(var r=function(){if(null===ve){ve=new ge(0);for(var e=0;e<" \t<>'\"、。｡､，．：；？！＠＃＄％＆＊‘“〈《「『【〔（［｛｢｣｝］）〕】』」》〉”’｀～…".length;e++)ve.set(" \t<>'\"、。｡､，．：；？！＠＃＄％＆＊‘“〈《「『【〔（［｛｢｣｝］）〕】』」》〉”’｀～…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)ve.set(".,;".charCodeAt(e),2)}return ve}(),a=[],i=1,o=n.getLineCount();i<=o;i++){for(var s=n.getLineContent(i),l=s.length,c=0,d=0,u=0,m=1,p=!1,f=!1,g=!1;c<l;){var _=!1,y=s.charCodeAt(c);if(13===m){var v=void 0;switch(y){case 40:p=!0,v=0;break;case 41:v=p?0:1;break;case 91:f=!0,v=0;break;case 93:v=f?0:1;break;case 123:g=!0,v=0;break;case 125:v=g?0:1;break;case 39:v=34===u||96===u?0:1;break;case 34:v=39===u||96===u?0:1;break;case 96:v=39===u||34===u?0:1;break;default:v=r.get(y)}1===v&&(a.push(e._createLink(r,s,i,d,c)),_=!0)}else if(12===m){v=void 0;91===y?(f=!0,v=0):v=r.get(y),1===v?_=!0:m=13}else 0===(m=t.nextState(m,y))&&(_=!0);_&&(m=1,p=!1,f=!1,g=!1,d=c+1,u=y),c++}13===m&&a.push(e._createLink(r,s,i,d,l))}return a},e}();var be=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,n,t,r,a){var i;if(e&&n&&(i=this.doNavigateValueSet(n,a)))return{range:e,value:i};if(t&&r&&(i=this.doNavigateValueSet(r,a)))return{range:t,value:i};return null},e.prototype.doNavigateValueSet=function(e,n){var t=this.numberReplace(e,n);return null!==t?t:this.textReplace(e,n)},e.prototype.numberReplace=function(e,n){var t=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),r=Number(e),a=parseFloat(e);return isNaN(r)||isNaN(a)||r!==a?null:0!==r||n?(r=Math.floor(r*t),r+=n?t:-t,String(r/t)):null},e.prototype.textReplace=function(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)},e.prototype.valueSetsReplace=function(e,n,t){for(var r=null,a=0,i=e.length;null===r&&a<i;a++)r=this.valueSetReplace(e[a],n,t);return r},e.prototype.valueSetReplace=function(e,n,t){var r=e.indexOf(n);return r>=0?((r+=t?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null},e.INSTANCE=new e,e}();t("tZcU");var Ee,Te=function(){function e(n){this.element=n,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),Se=function(){function e(){this._first=Te.Undefined,this._last=Te.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===Te.Undefined},e.prototype.clear=function(){this._first=Te.Undefined,this._last=Te.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,n){var t=this,r=new Te(e);if(this._first===Te.Undefined)this._first=r,this._last=r;else if(n){var a=this._last;this._last=r,r.prev=a,a.next=r}else{var i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;var o=!1;return function(){o||(o=!0,t._remove(r))}},e.prototype.shift=function(){if(this._first!==Te.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){if(this._last!==Te.Undefined){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){if(e.prev!==Te.Undefined&&e.next!==Te.Undefined){var n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===Te.Undefined&&e.next===Te.Undefined?(this._first=Te.Undefined,this._last=Te.Undefined):e.next===Te.Undefined?(this._last=this._last.prev,this._last.next=Te.Undefined):e.prev===Te.Undefined&&(this._first=this._first.next,this._first.prev=Te.Undefined);this._size-=1},e.prototype.iterator=function(){var e,n=this._first;return{next:function(){return n===Te.Undefined?k:(e?e.value=n.element:e={done:!1,value:n.element},n=n.next,e)}}},e.prototype.toArray=function(){for(var e=[],n=this._first;n!==Te.Undefined;n=n.next)e.push(n.element);return e},e}(),Le=this&&this.__extends||function(){var e=function(n,t){return(e=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])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}();!function(e){function n(e){return function(n,t,r){void 0===t&&(t=null);var a,i=!1;return a=e(function(e){if(!i)return a?a.dispose():i=!0,n.call(t,e)},null,r),i&&a.dispose(),a}}function t(e,n){return o(function(t,r,a){return void 0===r&&(r=null),e(function(e){return t.call(r,n(e))},null,a)})}function r(e,n){return o(function(t,r,a){return void 0===r&&(r=null),e(function(e){n(e),t.call(r,e)},null,a)})}function a(e,n){return o(function(t,r,a){return void 0===r&&(r=null),e(function(e){return n(e)&&t.call(r,e)},null,a)})}function i(e,n,r){var a=r;return t(e,function(e){return a=n(a,e)})}function o(e){var n,t=new De({onFirstListenerAdd:function(){n=e(t.fire,t)},onLastListenerRemove:function(){n.dispose()}});return t.event}function s(e){var n,t=!0;return a(e,function(e){var r=t||e!==n;return t=!1,n=e,r})}e.None=function(){return f.None},e.once=n,e.map=t,e.forEach=r,e.filter=a,e.signal=function(e){return e},e.any=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(n,t,r){return void 0===t&&(t=null),m.apply(void 0,e.map(function(e){return e(function(e){return n.call(t,e)},null,r)}))}},e.reduce=i,e.snapshot=o,e.debounce=function(e,n,t,r,a){var i;void 0===t&&(t=100),void 0===r&&(r=!1);var o=void 0,s=void 0,l=0,c=new De({leakWarningThreshold:a,onFirstListenerAdd:function(){i=e(function(e){l++,o=n(o,e),r&&!s&&c.fire(o),clearTimeout(s),s=setTimeout(function(){var e=o;o=void 0,s=void 0,(!r||l>1)&&c.fire(e),l=0},t)})},onLastListenerRemove:function(){i.dispose()}});return c.event},e.stopwatch=function(e){var r=(new Date).getTime();return t(n(e),function(e){return(new Date).getTime()-r})},e.latch=s,e.buffer=function(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=[]);var r=t.slice(),a=e(function(e){r?r.push(e):o.fire(e)}),i=function(){r&&r.forEach(function(e){return o.fire(e)}),r=null},o=new De({onFirstListenerAdd:function(){a||(a=e(function(e){return o.fire(e)}))},onFirstListenerDidAdd:function(){r&&(n?setTimeout(i):i())},onLastListenerRemove:function(){a&&a.dispose(),a=null}});return o.event};var l=function(){function e(e){this.event=e}return e.prototype.map=function(n){return new e(t(this.event,n))},e.prototype.forEach=function(n){return new e(r(this.event,n))},e.prototype.filter=function(n){return new e(a(this.event,n))},e.prototype.reduce=function(n,t){return new e(i(this.event,n,t))},e.prototype.latch=function(){return new e(s(this.event))},e.prototype.on=function(e,n,t){return this.event(e,n,t)},e.prototype.once=function(e,t,r){return n(this.event)(e,t,r)},e}();e.chain=function(e){return new l(e)},e.fromNodeEventEmitter=function(e,n,t){void 0===t&&(t=function(e){return e});var r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a.fire(t.apply(void 0,e))},a=new De({onFirstListenerAdd:function(){return e.on(n,r)},onLastListenerRemove:function(){return e.removeListener(n,r)}});return a.event},e.fromDOMEventEmitter=function(e,n,t){void 0===t&&(t=function(e){return e});var r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a.fire(t.apply(void 0,e))},a=new De({onFirstListenerAdd:function(){return e.addEventListener(n,r)},onLastListenerRemove:function(){return e.removeEventListener(n,r)}});return a.event},e.fromPromise=function(e){var n=new De,t=!1;return e.then(void 0,function(){return null}).then(function(){t?n.fire(void 0):setTimeout(function(){return n.fire(void 0)},0)}),t=!0,n.event},e.toPromise=function(e){return new Promise(function(t){return n(e)(t)})}}(Ee||(Ee={}));var Ae,xe=-1,Ce=function(){function e(e,n){void 0===n&&(n=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=n,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(e){var n=this,t=xe;if("number"==typeof this.customThreshold&&(t=this.customThreshold),!(t<=0||e<t)){this._stacks||(this._stacks=new Map);var r=(new Error).stack.split("\n").slice(3).join("\n"),a=this._stacks.get(r)||0;if(this._stacks.set(r,a+1),this._warnCountdown-=1,this._warnCountdown<=0){var i;this._warnCountdown=.5*t;var o=0;this._stacks.forEach(function(e,n){(!i||o<e)&&(i=n,o=e)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+o+"):"),console.warn(i)}return function(){var e=n._stacks.get(r)||0;n._stacks.set(r,e-1)}}},e}(),De=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=xe>0?new Ce(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var n=this;return this._event||(this._event=function(t,r,a){n._listeners||(n._listeners=new Se);var i=n._listeners.isEmpty();i&&n._options&&n._options.onFirstListenerAdd&&n._options.onFirstListenerAdd(n);var o,s,l=n._listeners.push(r?[t,r]:t);return i&&n._options&&n._options.onFirstListenerDidAdd&&n._options.onFirstListenerDidAdd(n),n._options&&n._options.onListenerDidAdd&&n._options.onListenerDidAdd(n,t,r),n._leakageMon&&(o=n._leakageMon.check(n._listeners.size)),s={dispose:function(){(o&&o(),s.dispose=e._noop,n._disposed)||(l(),n._options&&n._options.onLastListenerRemove&&(n._listeners&&!n._listeners.isEmpty()||n._options.onLastListenerRemove(n)))}},a instanceof p?a.add(s):Array.isArray(a)&&a.push(s),s}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Se);for(var n=this._listeners.iterator(),t=n.next();!t.done;t=n.next())this._deliveryQueue.push([t.value,e]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),i=r[0],o=r[1];try{"function"==typeof i?i.call(void 0,o):i[0].call(i[1],o)}catch(t){a(t)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),Re=(function(e){function n(n){var t=e.call(this,n)||this;return t._isPaused=0,t._eventQueue=new Se,t._mergeFn=n&&n.merge,t}Le(n,e),n.prototype.pause=function(){this._isPaused++},n.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var n=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(n))}else for(;!this._isPaused&&0!==this._eventQueue.size;)e.prototype.fire.call(this,this._eventQueue.shift())},n.prototype.fire=function(n){this._listeners&&(0!==this._isPaused?this._eventQueue.push(n):e.prototype.fire.call(this,n))}}(De),function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new De({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var n=this,t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);var r,a;return r=function(e){var n,t=this,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}(function(){n.hasListeners&&n.unhook(t);var e=n.events.indexOf(t);n.events.splice(e,1)}),a=u({dispose:function(){d(a),r()}})},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(n){return e.hook(n)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(n){return e.unhook(n)})},e.prototype.hook=function(e){var n=this;e.listener=e.event(function(e){return n.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()}}(),function(){function e(){this.buffers=[]}e.prototype.wrapEvent=function(e){var n=this;return function(t,r,a){return e(function(e){var a=n.buffers[n.buffers.length-1];a?a.push(function(){return t.call(r,e)}):t.call(r,e)},void 0,a)}},e.prototype.bufferEvents=function(e){var n=[];this.buffers.push(n);var t=e();return this.buffers.pop(),n.forEach(function(e){return e()}),t}}(),function(){function e(){var e=this;this.listening=!1,this.inputEvent=Ee.None,this.inputEventListener=f.None,this.emitter=new De({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()}}(),Object.freeze(function(e,n){var t=setTimeout(e.bind(n),0);return{dispose:function(){clearTimeout(t)}}}));!function(e){e.isCancellationToken=function(n){return n===e.None||n===e.Cancelled||n instanceof Ie||!(!n||"object"!=typeof n)&&"boolean"==typeof n.isCancellationRequested&&"function"==typeof n.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ee.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Re})}(Ae||(Ae={}));var Me,Ie=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?Re:(this._emitter||(this._emitter=new De),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),Oe=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new Ie),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof Ie&&this._token.cancel():this._token=Ae.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Ie&&this._token.dispose():this._token=Ae.None},e}(),ke=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),Ne=new ke,we=new ke,Pe=new ke;!function(){function e(e,n,t,r){void 0===t&&(t=n),void 0===r&&(r=t),Ne.define(e,n),we.define(e,t),Pe.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Ne.keyCodeToStr(e)},e.fromString=function(e){return Ne.strToKeyCode(e)},e.toUserSettingsUS=function(e){return we.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Pe.keyCodeToStr(e)},e.fromUserSettings=function(e){return we.strToKeyCode(e)||Pe.strToKeyCode(e)}}(Me||(Me={}));!function(){function e(e,n,t,r,a){this.ctrlKey=e,this.shiftKey=n,this.altKey=t,this.metaKey=r,this.keyCode=a}e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new fn([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}();var Ge,Fe,Ve,Be,Ue,He,Ke,je,We,qe,ze,Xe,Je,Ye,Qe,Ze,$e,en,nn,tn,rn,an,on,sn,ln,cn,dn,un,mn,pn,fn=function(){function e(e){if(0===e.length)throw(n="parts")?new Error("Illegal argument: "+n):new Error("Illegal argument");var n;this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var n=0;n<this.parts.length;n++)if(!this.parts[n].equals(e.parts[n]))return!1;return!0},e}(),gn=(function(){}(),function(){}(),this&&this.__extends||function(){var e=function(n,t){return(e=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])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}()),_n=function(e){function n(n,t,r,a){var i=e.call(this,n,t,r,a)||this;return i.selectionStartLineNumber=n,i.selectionStartColumn=t,i.positionLineNumber=r,i.positionColumn=a,i}return gn(n,e),n.prototype.clone=function(){return new n(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},n.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},n.prototype.equalsSelection=function(e){return n.selectionsEqual(this,e)},n.selectionsEqual=function(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn},n.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},n.prototype.setEndPosition=function(e,t){return 0===this.getDirection()?new n(this.startLineNumber,this.startColumn,e,t):new n(e,t,this.startLineNumber,this.startColumn)},n.prototype.getPosition=function(){return new Q(this.positionLineNumber,this.positionColumn)},n.prototype.setStartPosition=function(e,t){return 0===this.getDirection()?new n(e,t,this.endLineNumber,this.endColumn):new n(this.endLineNumber,this.endColumn,e,t)},n.fromPositions=function(e,t){return void 0===t&&(t=e),new n(e.lineNumber,e.column,t.lineNumber,t.column)},n.liftSelection=function(e){return new n(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},n.selectionsArrEqual=function(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(var t=0,r=e.length;t<r;t++)if(!this.selectionsEqual(e[t],n[t]))return!1;return!0},n.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},n.createWithDirection=function(e,t,r,a,i){return 0===i?new n(e,t,r,a):new n(r,a,e,t)},n}(Z),yn=function(){function e(e,n,t){this.offset=0|e,this.type=n,this.language=t}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}();!function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Ge||(Ge={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Fe||(Fe={})),function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(Ve||(Ve={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Be||(Be={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Ue||(Ue={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(He||(He={})),function(e){e[e.Inline=1]="Inline"}(Ke||(Ke={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(je||(je={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(We||(We={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(qe||(qe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ze||(ze={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Xe||(Xe={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Je||(Je={})),function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Large=2]="Large",e[e.SmallBlocks=3]="SmallBlocks",e[e.LargeBlocks=4]="LargeBlocks"}(Ye||(Ye={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Qe||(Qe={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Ze||(Ze={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}($e||($e={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(en||(en={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(nn||(nn={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(tn||(tn={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(rn||(rn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(an||(an={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.Snippet=25]="Snippet"}(on||(on={})),function(e){e[e.Deprecated=1]="Deprecated"}(sn||(sn={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(ln||(ln={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(cn||(cn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(dn||(dn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(un||(un={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(mn||(mn={})),function(e){e[e.Deprecated=1]="Deprecated"}(pn||(pn={}));var vn=function(){function e(){}return e.chord=function(e,n){return function(e,n){return(e|(65535&n)<<16>>>0)>>>0}(e,n)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();var hn=this&&this.__extends||function(){var e=function(n,t){return(e=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])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),bn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return hn(n,e),Object.defineProperty(n.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),n.prototype.getValue=function(){return this.getText()},n.prototype.getLinesContent=function(){return this._lines.slice(0)},n.prototype.getLineCount=function(){return this._lines.length},n.prototype.getLineContent=function(e){return this._lines[e-1]},n.prototype.getWordAtPosition=function(e,n){var t=function(e,n,t,r){n.lastIndex=0;var a=n.exec(t);if(!a)return null;var i=a[0].indexOf(" ")>=0?function(e,n,t,r){var a,i=e-1-r;for(n.lastIndex=0;a=n.exec(t);){var o=a.index||0;if(o>i)return null;if(n.lastIndex>=i)return{word:a[0],startColumn:r+1+o,endColumn:r+1+n.lastIndex}}return null}(e,n,t,r):function(e,n,t,r){var a,i=e-1-r,o=t.lastIndexOf(" ",i-1)+1;for(n.lastIndex=o;a=n.exec(t);){var s=a.index||0;if(s<=i&&n.lastIndex>=i)return{word:a[0],startColumn:r+1+s,endColumn:r+1+n.lastIndex}}return null}(e,n,t,r);return n.lastIndex=0,i}(e.column,function(e){var n=fe;if(e&&e instanceof RegExp)if(e.global)n=e;else{var t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),n=new RegExp(e.source,t)}return n.lastIndex=0,n}(n),this._lines[e.lineNumber-1],0);return t?new Z(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null},n.prototype.getWordUntilPosition=function(e,n){var t=this.getWordAtPosition(e,n);return t?{word:this._lines[e.lineNumber-1].substring(t.startColumn-1,e.column-1),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},n.prototype.createWordIterator=function(e){var n,t,r=this,a=0,i=0,o=[],s=function(){if(i<o.length){var l=t.substring(o[i].start,o[i].end);return i+=1,n?n.value=l:n={done:!1,value:l},n}return a>=r._lines.length?k:(t=r._lines[a],o=r._wordenize(t,e),i=0,a+=1,s())};return{next:s}},n.prototype.getLineWords=function(e,n){for(var t=this._lines[e-1],r=[],a=0,i=this._wordenize(t,n);a<i.length;a++){var o=i[a];r.push({word:t.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1})}return r},n.prototype._wordenize=function(e,n){var t,r=[];for(n.lastIndex=0;(t=n.exec(e))&&0!==t[0].length;)r.push({start:t.index,end:t.index+t[0].length});return r},n.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var n=this._eol,t=e.startLineNumber-1,r=e.endLineNumber-1,a=[];a.push(this._lines[t].substring(e.startColumn-1));for(var i=t+1;i<r;i++)a.push(this._lines[i]);return a.push(this._lines[r].substring(0,e.endColumn-1)),a.join(n)},n.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},n.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var n=this._lineStarts.getIndexOf(e),t=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,t)}},n.prototype._validateRange=function(e){var n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),t=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||t.lineNumber!==e.endLineNumber||t.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:t.lineNumber,endColumn:t.column}:e},n.prototype._validatePosition=function(e){if(!Q.isIPosition(e))throw new Error("bad position");var n=e.lineNumber,t=e.column,r=!1;if(n<1)n=1,t=1,r=!0;else if(n>this._lines.length)n=this._lines.length,t=this._lines[n-1].length+1,r=!0;else{var a=this._lines[n-1].length+1;t<1?(t=1,r=!0):t>a&&(t=a,r=!0)}return r?{lineNumber:n,column:t}:e},n}(me),En=function(){function e(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(e){return this._models[e]},e.prototype._getModels=function(){var e=this,n=[];return Object.keys(this._models).forEach(function(t){return n.push(e._models[t])}),n},e.prototype.acceptNewModel=function(e){this._models[e.url]=new bn(K.parse(e.url),e.lines,e.EOL,e.versionId)},e.prototype.acceptModelChanged=function(e,n){this._models[e]&&this._models[e].onEvents(n)},e.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},e.prototype.computeDiff=function(e,n,t){var r=this._getModel(e),a=this._getModel(n);if(!r||!a)return Promise.resolve(null);var i=r.getLinesContent(),o=a.getLinesContent(),s=new oe(i,o,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:t,shouldMakePrettyDiff:!0}).computeDiff(),l=!(s.length>0)&&this._modelsAreIdentical(r,a);return Promise.resolve({identical:l,changes:s})},e.prototype._modelsAreIdentical=function(e,n){var t=e.getLineCount();if(t!==n.getLineCount())return!1;for(var r=1;r<=t;r++){if(e.getLineContent(r)!==n.getLineContent(r))return!1}return!0},e.prototype.computeMoreMinimalEdits=function(n,t){var r=this._getModel(n);if(!r)return Promise.resolve(t);for(var a=[],i=void 0,o=0,s=t=S(t,function(e,n){return e.range&&n.range?Z.compareRangesUsingStarts(e.range,n.range):(e.range?0:1)-(n.range?0:1)});o<s.length;o++){var l=s[o],c=l.range,d=l.text,u=l.eol;if("number"==typeof u&&(i=u),!Z.isEmpty(c)||d){var m=r.getValueInRange(c);if(m!==(d=d.replace(/\r\n|\n|\r/g,r.eol)))if(Math.max(d.length,m.length)>e._diffLimit)a.push({range:c,text:d});else for(var p=x(m,d,!1),f=r.offsetAt(Z.lift(c).getStartPosition()),g=0,_=p;g<_.length;g++){var y=_[g],v=r.positionAt(f+y.originalStart),h=r.positionAt(f+y.originalStart+y.originalLength),b={text:d.substr(y.modifiedStart,y.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:h.lineNumber,endColumn:h.column}};r.getValueInRange(b.range)!==b.text&&a.push(b)}}}return"number"==typeof i&&a.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),Promise.resolve(a)},e.prototype.computeLinks=function(e){var n=this._getModel(e);return n?Promise.resolve(function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?he.computeLinks(e):[]}(n)):Promise.resolve(null)},e.prototype.textualSuggest=function(n,t,r,a){var i=this._getModel(n);if(!i)return Promise.resolve(null);var o=Object.create(null),s=[],l=new RegExp(r,a),c=i.getWordUntilPosition(t,l),d=i.getWordAtPosition(t,l);d&&(o[i.getValueInRange(d)]=!0);for(var u=i.createWordIterator(l),m=u.next();!m.done&&s.length<=e._suggestionsLimit;m=u.next()){var p=m.value;o[p]||(o[p]=!0,isNaN(Number(p))&&s.push({kind:18,label:p,insertText:p,range:{startLineNumber:t.lineNumber,startColumn:c.startColumn,endLineNumber:t.lineNumber,endColumn:c.endColumn}}))}return Promise.resolve({suggestions:s})},e.prototype.computeWordRanges=function(e,n,t,r){var a=this._getModel(e);if(!a)return Promise.resolve(Object.create(null));for(var i=new RegExp(t,r),o=Object.create(null),s=n.startLineNumber;s<n.endLineNumber;s++)for(var l=0,c=a.getLineWords(s,i);l<c.length;l++){var d=c[l];if(isNaN(Number(d.word))){var u=o[d.word];u||(u=[],o[d.word]=u),u.push({startLineNumber:s,startColumn:d.startColumn,endLineNumber:s,endColumn:d.endColumn})}}return Promise.resolve(o)},e.prototype.navigateValueSet=function(e,n,t,r,a){var i=this._getModel(e);if(!i)return Promise.resolve(null);var o=new RegExp(r,a);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});var s=i.getValueInRange(n),l=i.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!l)return Promise.resolve(null);var c=i.getValueInRange(l),d=be.INSTANCE.navigateValueSet(n,s,l,c,t);return Promise.resolve(d)},e.prototype.loadForeignModule=function(e,n,t){var r=this,a={host:y(t,function(e,n){return r._host.fhr(e,n)}),getMirrorModels:function(){return r._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(_(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},e.prototype.fmr=function(e,n){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(e){return Promise.reject(e)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e}();"function"==typeof importScripts&&(g.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Oe,Emitter:De,KeyCode:Ve,KeyMod:vn,Position:Q,Range:Z,Selection:_n,SelectionDirection:Be,MarkerSeverity:Fe,MarkerTag:Ge,Uri:K,Token:yn});var Tn=!1;function Sn(e){if(!Tn){Tn=!0;var n=new T(function(e){self.postMessage(e)},function(n){return new En(n,e)});self.onmessage=function(e){n.onmessage(e.data)}}}self.onmessage=function(e){Tn||Sn(null)};var Ln=t("9jCM"),An={NAME:"defaultLib:lib.d.ts",CONTENTS:'/*! *****************************************************************************\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/*! *****************************************************************************\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 var NaN: number;\ndeclare var 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 | number | boolean): 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 string 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: object): string[];\n}\n\n/**\n  * Provides functionality common to all JavaScript objects.\n  */\ndeclare var 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 var Function: FunctionConstructor;\n\n/**\n * Extracts the type of the \'this\' parameter of a function type, or \'unknown\' if the function type has no \'this\' parameter.\n */\ntype ThisParameterType<T> = T extends (this: unknown, ...args: any[]) => any ? unknown : T extends (this: infer U, ...args: any[]) => any ? U : unknown;\n\n/**\n * Removes the \'this\' parameter from a function type.\n */\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\n\ninterface CallableFunction extends Function {\n    /**\n      * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args An array of argument values to be passed to the function.\n      */\n    apply<T, R>(this: (this: T) => R, thisArg: T): R;\n    apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\n\n    /**\n      * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args Argument values to be passed to the function.\n      */\n    call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\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 The object to be used as the this object.\n      * @param args Arguments to bind to the parameters of the function.\n      */\n    bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\n    bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;\n    bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;\n    bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;\n    bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;\n    bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;\n}\n\ninterface NewableFunction extends Function {\n    /**\n      * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args An array of argument values to be passed to the function.\n      */\n    apply<T>(this: new () => T, thisArg: T): void;\n    apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\n\n    /**\n      * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args Argument values to be passed to the function.\n      */\n    call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\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 The object to be used as the this object.\n      * @param args Arguments to bind to the parameters of the function.\n      */\n    bind<T>(this: T, thisArg: any): T;\n    bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;\n    bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;\n    bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;\n    bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;\n    bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;\n}\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 var 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    <T>(value?: T): boolean;\n    readonly prototype: Boolean;\n}\n\ndeclare var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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?: (this: any, key: string, 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?: (this: any, 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 var 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>) => unknown, 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>) => unknown, 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>) => unknown, 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[]) => unknown, 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[]) => unknown, 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[]) => unknown, 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 var 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 whose keys are in the union 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 * Construct a type with the properties of T except for those in type K.\n */\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\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 var 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 var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare var 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/*! *****************************************************************************\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 AuthenticationExtensionsClientInputs {\n    appid?: string;\n    authnSel?: AuthenticatorSelectionList;\n    exts?: boolean;\n    loc?: boolean;\n    txAuthGeneric?: txAuthGenericArg;\n    txAuthSimple?: string;\n    uvi?: boolean;\n    uvm?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n    appid?: boolean;\n    authnSel?: boolean;\n    exts?: AuthenticationExtensionsSupported;\n    loc?: Coordinates;\n    txAuthGeneric?: ArrayBuffer;\n    txAuthSimple?: string;\n    uvi?: ArrayBuffer;\n    uvm?: UvmEntries;\n}\n\ninterface AuthenticatorSelectionCriteria {\n    authenticatorAttachment?: AuthenticatorAttachment;\n    requireResidentKey?: boolean;\n    userVerification?: UserVerificationRequirement;\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    endings?: EndingType;\n    type?: string;\n}\n\ninterface ByteLengthChunk {\n    byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n    ignoreMethod?: boolean;\n    ignoreSearch?: boolean;\n    ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n    alpha?: boolean;\n    desynchronized?: 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 ClipboardEventInit extends EventInit {\n    clipboardData?: DataTransfer | null;\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 {\n    composite: CompositeOperationOrAuto;\n    computedOffset: number;\n    easing: string;\n    offset: number | null;\n    [property: string]: string | number | null | undefined;\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 ConstrainULongRange extends ULongRange {\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 CredentialCreationOptions {\n    publicKey?: PublicKeyCredentialCreationOptions;\n    signal?: AbortSignal;\n}\n\ninterface CredentialRequestOptions {\n    mediation?: CredentialMediationRequirement;\n    publicKey?: PublicKeyCredentialRequestOptions;\n    signal?: AbortSignal;\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 DeviceLightEventInit extends EventInit {\n    value?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n    x?: number | null;\n    y?: number | null;\n    z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n    acceleration?: DeviceMotionEventAccelerationInit;\n    accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n    interval?: number;\n    rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n    alpha?: number | null;\n    beta?: number | null;\n    gamma?: number | 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 DevicePermissionDescriptor extends PermissionDescriptor {\n    deviceId?: string;\n    name: "camera" | "microphone" | "speaker";\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 ElementCreationOptions {\n    is?: string;\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    modifierScrollLock?: boolean;\n    modifierSuper?: boolean;\n    modifierSymbol?: boolean;\n    modifierSymbolLock?: boolean;\n    shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n    withCredentials?: 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 FullscreenOptions {\n    navigationUI?: FullscreenNavigationUI;\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 ImageBitmapRenderingContextSettings {\n    alpha?: boolean;\n}\n\ninterface ImageEncodeOptions {\n    quality?: number;\n    type?: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n    data?: string | null;\n    inputType?: string;\n    isComposing?: boolean;\n}\n\ninterface IntersectionObserverEntryInit {\n    boundingClientRect: DOMRectInit;\n    intersectionRatio: number;\n    intersectionRect: DOMRectInit;\n    isIntersecting: boolean;\n    rootBounds: DOMRectInit | null;\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    isComposing?: boolean;\n    key?: string;\n    location?: number;\n    repeat?: boolean;\n}\n\ninterface Keyframe {\n    composite?: CompositeOperationOrAuto;\n    easing?: string;\n    offset?: number | null;\n    [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n    id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n    composite?: CompositeOperation;\n    iterationComposite?: IterationCompositeOperation;\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;\n    messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n    audioCapabilities?: MediaKeySystemMediaCapability[];\n    distinctiveIdentifier?: MediaKeysRequirement;\n    initDataTypes?: string[];\n    label?: string;\n    persistentState?: MediaKeysRequirement;\n    sessionTypes?: string[];\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;\n}\n\ninterface MediaTrackCapabilities {\n    aspectRatio?: DoubleRange;\n    autoGainControl?: boolean[];\n    channelCount?: ULongRange;\n    deviceId?: string;\n    echoCancellation?: boolean[];\n    facingMode?: string[];\n    frameRate?: DoubleRange;\n    groupId?: string;\n    height?: ULongRange;\n    latency?: DoubleRange;\n    noiseSuppression?: boolean[];\n    resizeMode?: string[];\n    sampleRate?: ULongRange;\n    sampleSize?: ULongRange;\n    width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n    aspectRatio?: ConstrainDouble;\n    autoGainControl?: ConstrainBoolean;\n    channelCount?: ConstrainULong;\n    deviceId?: ConstrainDOMString;\n    echoCancellation?: ConstrainBoolean;\n    facingMode?: ConstrainDOMString;\n    frameRate?: ConstrainDouble;\n    groupId?: ConstrainDOMString;\n    height?: ConstrainULong;\n    latency?: ConstrainDouble;\n    noiseSuppression?: ConstrainBoolean;\n    resizeMode?: ConstrainDOMString;\n    sampleRate?: ConstrainULong;\n    sampleSize?: ConstrainULong;\n    width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n    advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n    aspectRatio?: number;\n    autoGainControl?: boolean;\n    channelCount?: number;\n    deviceId?: string;\n    echoCancellation?: boolean;\n    facingMode?: string;\n    frameRate?: number;\n    groupId?: string;\n    height?: number;\n    latency?: number;\n    noiseSuppression?: boolean;\n    resizeMode?: string;\n    sampleRate?: number;\n    sampleSize?: number;\n    width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n    aspectRatio?: boolean;\n    autoGainControl?: boolean;\n    channelCount?: boolean;\n    deviceId?: boolean;\n    echoCancellation?: boolean;\n    facingMode?: boolean;\n    frameRate?: boolean;\n    groupId?: boolean;\n    height?: boolean;\n    latency?: boolean;\n    noiseSuppression?: boolean;\n    resizeMode?: boolean;\n    sampleRate?: boolean;\n    sampleSize?: 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 MidiPermissionDescriptor extends PermissionDescriptor {\n    name: "midi";\n    sysex?: boolean;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n    button?: number;\n    buttons?: number;\n    clientX?: number;\n    clientY?: number;\n    movementX?: number;\n    movementY?: number;\n    relatedTarget?: EventTarget | null;\n    screenX?: number;\n    screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n    cacheName?: string;\n}\n\ninterface MutationObserverInit {\n    /**\n     * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.\n     */\n    attributeFilter?: string[];\n    /**\n     * Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded.\n     */\n    attributeOldValue?: boolean;\n    /**\n     * Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.\n     */\n    attributes?: boolean;\n    /**\n     * Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified.\n     */\n    characterData?: boolean;\n    /**\n     * Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded.\n     */\n    characterDataOldValue?: boolean;\n    /**\n     * Set to true if mutations to target\'s children are to be observed.\n     */\n    childList?: boolean;\n    /**\n     * Set to true if mutations to not just target, but also target\'s descendants are to be observed.\n     */\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    type?: 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 PermissionDescriptor {\n    name: PermissionName;\n}\n\ninterface PipeOptions {\n    preventAbort?: boolean;\n    preventCancel?: boolean;\n    preventClose?: boolean;\n    signal?: AbortSignal;\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 PostMessageOptions {\n    transfer?: any[];\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 {\n    composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n    easing?: string | string[];\n    offset?: number | (number | null)[];\n    [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n    attestation?: AttestationConveyancePreference;\n    authenticatorSelection?: AuthenticatorSelectionCriteria;\n    challenge: BufferSource;\n    excludeCredentials?: PublicKeyCredentialDescriptor[];\n    extensions?: AuthenticationExtensionsClientInputs;\n    pubKeyCredParams: PublicKeyCredentialParameters[];\n    rp: PublicKeyCredentialRpEntity;\n    timeout?: number;\n    user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n    id: BufferSource;\n    transports?: AuthenticatorTransport[];\n    type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n    icon?: string;\n    name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n    alg: COSEAlgorithmIdentifier;\n    type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n    allowCredentials?: PublicKeyCredentialDescriptor[];\n    challenge: BufferSource;\n    extensions?: AuthenticationExtensionsClientInputs;\n    rpId?: string;\n    timeout?: number;\n    userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n    id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n    displayName: string;\n    id: BufferSource;\n}\n\ninterface PushPermissionDescriptor extends PermissionDescriptor {\n    name: "push";\n    userVisibleOnly?: boolean;\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<T = any> {\n    highWaterMark?: number;\n    size?: QueuingStrategySizeCallback<T>;\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    /**\n     * A BodyInit object or null to set request\'s body.\n     */\n    body?: BodyInit | null;\n    /**\n     * A string indicating how the request will interact with the browser\'s cache to set request\'s cache.\n     */\n    cache?: RequestCache;\n    /**\n     * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials.\n     */\n    credentials?: RequestCredentials;\n    /**\n     * A Headers object, an object literal, or an array of two-item arrays to set request\'s headers.\n     */\n    headers?: HeadersInit;\n    /**\n     * A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity.\n     */\n    integrity?: string;\n    /**\n     * A boolean to set request\'s keepalive.\n     */\n    keepalive?: boolean;\n    /**\n     * A string to set request\'s method.\n     */\n    method?: string;\n    /**\n     * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode.\n     */\n    mode?: RequestMode;\n    /**\n     * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect.\n     */\n    redirect?: RequestRedirect;\n    /**\n     * A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer.\n     */\n    referrer?: string;\n    /**\n     * A referrer policy to set request\'s referrerPolicy.\n     */\n    referrerPolicy?: ReferrerPolicy;\n    /**\n     * An AbortSignal to set request\'s signal.\n     */\n    signal?: AbortSignal | null;\n    /**\n     * Can only be null. Used to disassociate request from any Window.\n     */\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 ShadowRootInit {\n    delegatesFocus?: boolean;\n    mode: ShadowRootMode;\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 TextEncoderEncodeIntoResult {\n    read?: number;\n    written?: number;\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 Transformer<I = any, O = any> {\n    flush?: TransformStreamDefaultControllerCallback<O>;\n    readableType?: undefined;\n    start?: TransformStreamDefaultControllerCallback<O>;\n    transform?: TransformStreamDefaultControllerTransformCallback<I, O>;\n    writableType?: undefined;\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 ULongRange {\n    max?: number;\n    min?: number;\n}\n\ninterface UnderlyingByteSource {\n    autoAllocateChunkSize?: number;\n    cancel?: ReadableStreamErrorCallback;\n    pull?: ReadableByteStreamControllerCallback;\n    start?: ReadableByteStreamControllerCallback;\n    type: "bytes";\n}\n\ninterface UnderlyingSink<W = any> {\n    abort?: WritableStreamErrorCallback;\n    close?: WritableStreamDefaultControllerCloseCallback;\n    start?: WritableStreamDefaultControllerStartCallback;\n    type?: undefined;\n    write?: WritableStreamDefaultControllerWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n    cancel?: ReadableStreamErrorCallback;\n    pull?: ReadableStreamDefaultControllerCallback<R>;\n    start?: ReadableStreamDefaultControllerCallback<R>;\n    type?: undefined;\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?: boolean;\n    antialias?: boolean;\n    depth?: boolean;\n    desynchronized?: boolean;\n    failIfMajorPerformanceCaveat?: boolean;\n    powerPreference?: WebGLPowerPreference;\n    premultipliedAlpha?: boolean;\n    preserveDrawingBuffer?: boolean;\n    stencil?: boolean;\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 WorkerOptions {\n    credentials?: RequestCredentials;\n    name?: string;\n    type?: WorkerType;\n}\n\ninterface WorkletOptions {\n    credentials?: RequestCredentials;\n}\n\ninterface txAuthGenericArg {\n    content: ArrayBuffer;\n    contentType: string;\n}\n\ninterface EventListener {\n    (evt: Event): void;\n}\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\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 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": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n    /**\n     * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n     */\n    readonly aborted: boolean;\n    onabort: ((this: AbortSignal, ev: Event) => 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    /**\n     * Returns true if range is collapsed, and false otherwise.\n     */\n    readonly collapsed: boolean;\n    /**\n     * Returns range\'s end node.\n     */\n    readonly endContainer: Node;\n    /**\n     * Returns range\'s end offset.\n     */\n    readonly endOffset: number;\n    /**\n     * Returns range\'s start node.\n     */\n    readonly startContainer: Node;\n    /**\n     * Returns range\'s start offset.\n     */\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\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\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\n/** Events providing information related to animations. */\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 AnimationFrameProvider {\n    cancelAnimationFrame(handle: number): void;\n    requestAnimationFrame(callback: FrameRequestCallback): number;\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<ApplicationCache>;\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<ApplicationCache>) => 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\n/** A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\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\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\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\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\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\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\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    resume(): Promise<void>;\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\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\ninterface AudioDestinationNode extends AudioNode {\n    readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n    prototype: AudioDestinationNode;\n    new(): AudioDestinationNode;\n};\n\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\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\n/** A generic interface for representing an audio processing module. Examples include: */\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\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\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\n/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. */\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\n/** A single audio track from one of the HTML media elements, <audio> or <video>.  */\ninterface AudioTrack {\n    enabled: boolean;\n    readonly id: string;\n    kind: string;\n    readonly label: string;\n    language: string;\n    readonly sourceBuffer: SourceBuffer | null;\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\n/** Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list. */\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 AuthenticatorAssertionResponse extends AuthenticatorResponse {\n    readonly authenticatorData: ArrayBuffer;\n    readonly signature: ArrayBuffer;\n    readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n    prototype: AuthenticatorAssertionResponse;\n    new(): AuthenticatorAssertionResponse;\n};\n\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n    readonly attestationObject: ArrayBuffer;\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n    prototype: AuthenticatorAttestationResponse;\n    new(): AuthenticatorAttestationResponse;\n};\n\ninterface AuthenticatorResponse {\n    readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n    prototype: AuthenticatorResponse;\n    new(): AuthenticatorResponse;\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    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\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\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\n/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */\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\n/** A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system. */\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<Uint8Array> | 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\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n    highWaterMark: number;\n    size(chunk: ArrayBufferView): number;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n    prototype: ByteLengthQueuingStrategy;\n    new(options: { highWaterMark: number }): ByteLengthQueuingStrategy;\n};\n\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n    prototype: CDATASection;\n    new(): CDATASection;\n};\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ninterface CSS {\n    escape(value: string): string;\n    supports(property: string, value?: string): boolean;\n}\ndeclare var CSS: CSS;\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\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\n/** Any CSS at-rule that contains other rules nested within it. */\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\n/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */\ninterface CSSKeyframeRule extends CSSRule {\n    keyText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n    prototype: CSSKeyframeRule;\n    new(): CSSKeyframeRule;\n};\n\n/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */\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\n/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */\ninterface CSSMediaRule extends CSSConditionRule {\n    readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n    prototype: CSSMediaRule;\n    new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\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\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\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\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\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\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\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\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n    alignContent: string;\n    alignItems: string;\n    alignSelf: string;\n    alignmentBaseline: string | null;\n    animation: string;\n    animationDelay: string;\n    animationDirection: string;\n    animationDuration: string;\n    animationFillMode: string;\n    animationIterationCount: string;\n    animationName: string;\n    animationPlayState: string;\n    animationTimingFunction: string;\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;\n    breakAfter: string | null;\n    breakBefore: string | null;\n    breakInside: string | null;\n    captionSide: string | null;\n    caretColor: string;\n    clear: string | null;\n    clip: string;\n    clipPath: string;\n    clipRule: string;\n    color: string | null;\n    colorInterpolationFilters: string;\n    columnCount: string;\n    columnFill: string;\n    columnGap: string;\n    columnRule: string;\n    columnRuleColor: string;\n    columnRuleStyle: string;\n    columnRuleWidth: string;\n    columnSpan: string;\n    columnWidth: string;\n    columns: string;\n    content: string | null;\n    counterIncrement: string | null;\n    counterReset: string | null;\n    cssFloat: string | null;\n    cssText: string;\n    cursor: string;\n    direction: string;\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;\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;\n    floodOpacity: string;\n    font: string;\n    fontFamily: string;\n    fontFeatureSettings: string;\n    fontKerning: string;\n    fontSize: string;\n    fontSizeAdjust: string;\n    fontStretch: string;\n    fontStyle: string;\n    fontSynthesis: string;\n    fontVariant: string;\n    fontVariantCaps: string;\n    fontVariantEastAsian: string;\n    fontVariantLigatures: string;\n    fontVariantNumeric: string;\n    fontVariantPosition: string;\n    fontWeight: string;\n    gap: string;\n    glyphOrientationHorizontal: string | null;\n    glyphOrientationVertical: string;\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;\n    gridColumnStart: string | null;\n    gridGap: string;\n    gridRow: string | null;\n    gridRowEnd: string | null;\n    gridRowGap: string;\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    hyphens: string;\n    imageOrientation: string;\n    imageRendering: string;\n    imeMode: string | null;\n    justifyContent: string;\n    justifyItems: string;\n    justifySelf: string;\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;\n    lightingColor: string;\n    lineBreak: string;\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;\n    maskComposite: string;\n    maskImage: string;\n    maskPosition: string;\n    maskRepeat: string;\n    maskSize: string;\n    maskType: string;\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;\n    objectPosition: string;\n    opacity: string | null;\n    order: string | null;\n    orphans: string | null;\n    outline: string;\n    outlineColor: string;\n    outlineOffset: string;\n    outlineStyle: string;\n    outlineWidth: string;\n    overflow: string;\n    overflowAnchor: string;\n    overflowWrap: string;\n    overflowX: string;\n    overflowY: string;\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    placeContent: string;\n    placeItems: string;\n    placeSelf: string;\n    pointerEvents: string | null;\n    position: string | null;\n    quotes: string | null;\n    resize: string;\n    right: string | null;\n    rotate: string | null;\n    rowGap: string;\n    rubyAlign: string | null;\n    rubyOverhang: string | null;\n    rubyPosition: string | null;\n    scale: string | null;\n    scrollBehavior: string;\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    tabSize: string;\n    tableLayout: string | null;\n    textAlign: string;\n    textAlignLast: string;\n    textAnchor: string | null;\n    textCombineUpright: string;\n    textDecoration: string;\n    textDecorationColor: string;\n    textDecorationLine: string;\n    textDecorationStyle: string;\n    textEmphasis: string;\n    textEmphasisColor: string;\n    textEmphasisPosition: string;\n    textEmphasisStyle: string;\n    textIndent: string;\n    textJustify: string;\n    textKashida: string | null;\n    textKashidaSpace: string | null;\n    textOrientation: string;\n    textOverflow: string;\n    textShadow: string;\n    textTransform: string;\n    textUnderlinePosition: string;\n    top: string | null;\n    touchAction: string;\n    transform: string;\n    transformBox: string;\n    transformOrigin: string;\n    transformStyle: string | null;\n    transition: string;\n    transitionDelay: string;\n    transitionDuration: string;\n    transitionProperty: string;\n    transitionTimingFunction: string;\n    translate: string | null;\n    unicodeBidi: string;\n    userSelect: string;\n    verticalAlign: string | null;\n    visibility: string | null;\n    /** @deprecated */\n    webkitAlignContent: string;\n    /** @deprecated */\n    webkitAlignItems: string;\n    /** @deprecated */\n    webkitAlignSelf: string;\n    /** @deprecated */\n    webkitAnimation: string;\n    /** @deprecated */\n    webkitAnimationDelay: string;\n    /** @deprecated */\n    webkitAnimationDirection: string;\n    /** @deprecated */\n    webkitAnimationDuration: string;\n    /** @deprecated */\n    webkitAnimationFillMode: string;\n    /** @deprecated */\n    webkitAnimationIterationCount: string;\n    /** @deprecated */\n    webkitAnimationName: string;\n    /** @deprecated */\n    webkitAnimationPlayState: string;\n    /** @deprecated */\n    webkitAnimationTimingFunction: string;\n    /** @deprecated */\n    webkitAppearance: string;\n    /** @deprecated */\n    webkitBackfaceVisibility: string;\n    /** @deprecated */\n    webkitBackgroundClip: string;\n    /** @deprecated */\n    webkitBackgroundOrigin: string;\n    /** @deprecated */\n    webkitBackgroundSize: string;\n    /** @deprecated */\n    webkitBorderBottomLeftRadius: string;\n    /** @deprecated */\n    webkitBorderBottomRightRadius: string;\n    webkitBorderImage: string | null;\n    /** @deprecated */\n    webkitBorderRadius: string;\n    /** @deprecated */\n    webkitBorderTopLeftRadius: string;\n    /** @deprecated */\n    webkitBorderTopRightRadius: string;\n    /** @deprecated */\n    webkitBoxAlign: string;\n    webkitBoxDirection: string | null;\n    /** @deprecated */\n    webkitBoxFlex: string;\n    /** @deprecated */\n    webkitBoxOrdinalGroup: string;\n    webkitBoxOrient: string | null;\n    /** @deprecated */\n    webkitBoxPack: string;\n    /** @deprecated */\n    webkitBoxShadow: string;\n    /** @deprecated */\n    webkitBoxSizing: string;\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    /** @deprecated */\n    webkitFilter: string;\n    /** @deprecated */\n    webkitFlex: string;\n    /** @deprecated */\n    webkitFlexBasis: string;\n    /** @deprecated */\n    webkitFlexDirection: string;\n    /** @deprecated */\n    webkitFlexFlow: string;\n    /** @deprecated */\n    webkitFlexGrow: string;\n    /** @deprecated */\n    webkitFlexShrink: string;\n    /** @deprecated */\n    webkitFlexWrap: string;\n    /** @deprecated */\n    webkitJustifyContent: string;\n    webkitLineClamp: string;\n    /** @deprecated */\n    webkitMask: string;\n    /** @deprecated */\n    webkitMaskBoxImage: string;\n    /** @deprecated */\n    webkitMaskBoxImageOutset: string;\n    /** @deprecated */\n    webkitMaskBoxImageRepeat: string;\n    /** @deprecated */\n    webkitMaskBoxImageSlice: string;\n    /** @deprecated */\n    webkitMaskBoxImageSource: string;\n    /** @deprecated */\n    webkitMaskBoxImageWidth: string;\n    /** @deprecated */\n    webkitMaskClip: string;\n    /** @deprecated */\n    webkitMaskComposite: string;\n    /** @deprecated */\n    webkitMaskImage: string;\n    /** @deprecated */\n    webkitMaskOrigin: string;\n    /** @deprecated */\n    webkitMaskPosition: string;\n    /** @deprecated */\n    webkitMaskRepeat: string;\n    /** @deprecated */\n    webkitMaskSize: string;\n    /** @deprecated */\n    webkitOrder: string;\n    /** @deprecated */\n    webkitPerspective: string;\n    /** @deprecated */\n    webkitPerspectiveOrigin: string;\n    webkitTapHighlightColor: string | null;\n    /** @deprecated */\n    webkitTextFillColor: string;\n    /** @deprecated */\n    webkitTextSizeAdjust: string;\n    /** @deprecated */\n    webkitTextStroke: string;\n    /** @deprecated */\n    webkitTextStrokeColor: string;\n    /** @deprecated */\n    webkitTextStrokeWidth: string;\n    /** @deprecated */\n    webkitTransform: string;\n    /** @deprecated */\n    webkitTransformOrigin: string;\n    /** @deprecated */\n    webkitTransformStyle: string;\n    /** @deprecated */\n    webkitTransition: string;\n    /** @deprecated */\n    webkitTransitionDelay: string;\n    /** @deprecated */\n    webkitTransitionDuration: string;\n    /** @deprecated */\n    webkitTransitionProperty: string;\n    /** @deprecated */\n    webkitTransitionTimingFunction: string;\n    webkitUserModify: string | null;\n    webkitUserSelect: string | null;\n    webkitWritingMode: string | null;\n    whiteSpace: string;\n    widows: string | null;\n    width: string | null;\n    willChange: string;\n    wordBreak: string;\n    wordSpacing: string;\n    wordWrap: string;\n    writingMode: string;\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\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n    selectorText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n    prototype: CSSStyleRule;\n    new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\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\n/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n    prototype: CSSSupportsRule;\n    new(): CSSSupportsRule;\n};\n\n/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec. */\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\n/** The storage for Cache objects. */\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\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n    /**\n     * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n     * \n     * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if 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\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n    /**\n     * Sets the transformation matrix that will be used when rendering the pattern during a fill or 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\n/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */\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\n/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n    prototype: ChannelMergerNode;\n    new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n    prototype: ChannelSplitterNode;\n    new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren\'t any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren\'t abstract. */\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     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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 Clipboard extends EventTarget {\n    readText(): Promise<string>;\n    writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n    prototype: Clipboard;\n    new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n    readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n    prototype: ClipboardEvent;\n    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute. */\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\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n    prototype: Comment;\n    new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n    readonly data: string;\n}\n\ndeclare var CompositionEvent: {\n    prototype: CompositionEvent;\n    new(type: 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\n/** Provides access to the browser\'s debugging console (e.g. the Web Console in Firefox). The specifics of how it works varies from browser to browser, but there is a de facto set of features that are typically provided. */\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\n/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */\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\n/** The position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. */\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\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n    highWaterMark: number;\n    size(chunk: any): 1;\n}\n\ndeclare var CountQueuingStrategy: {\n    prototype: CountQueuingStrategy;\n    new(options: { highWaterMark: number }): CountQueuingStrategy;\n};\n\ninterface Credential {\n    readonly id: string;\n    readonly type: string;\n}\n\ndeclare var Credential: {\n    prototype: Credential;\n    new(): Credential;\n};\n\ninterface CredentialsContainer {\n    create(options?: CredentialCreationOptions): Promise<Credential | null>;\n    get(options?: CredentialRequestOptions): Promise<Credential | null>;\n    preventSilentAccess(): Promise<void>;\n    store(credential: Credential): Promise<Credential>;\n}\n\ndeclare var CredentialsContainer: {\n    prototype: CredentialsContainer;\n    new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\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\n/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */\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\n/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */\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. 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\n/** An error object that contains an error name. */\ninterface DOMError {\n    readonly name: string;\n    toString(): string;\n}\n\ndeclare var DOMError: {\n    prototype: DOMError;\n    new(): DOMError;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\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\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\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    /** @deprecated */\n    scaleNonUniform(scaleX?: number, scaleY?: 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\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\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\n/** A type returned by some APIs which contains a list of DOMString (strings). */\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 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\n/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n    [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n    prototype: DOMStringMap;\n    new(): DOMStringMap;\n};\n\n/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */\ninterface DOMTokenList {\n    /**\n     * Returns the number of tokens.\n     */\n    readonly length: number;\n    /**\n     * Returns the associated set as string.\n     * \n     * Can be set, to change the associated attribute.\n     */\n    value: string;\n    /**\n     * Adds all arguments passed, except those already present.\n     * \n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n     * \n     * Throws an "InvalidCharacterError" DOMException if one of the arguments 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     * Returns the token with index index.\n     */\n    item(index: number): string | null;\n    /**\n     * Removes arguments passed, if they are present.\n     * \n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n     * \n     * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n     */\n    remove(...tokens: string[]): void;\n    /**\n     * Replaces token with newToken.\n     * \n     * Returns true if token was replaced with newToken, and false otherwise.\n     * \n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n     * \n     * Throws an "InvalidCharacterError" DOMException if one of the arguments 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 false otherwise.\n     * \n     * Throws a TypeError if the associated attribute has no supported tokens defined.\n     */\n    supports(token: string): boolean;\n    /**\n     * If force is not given, "toggles" token, removing it if it\'s present and adding it if it\'s not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n     * \n     * Returns true if token is now present, and false otherwise.\n     * \n     * Throws a "SyntaxError" DOMException if token is empty.\n     * \n     * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n     */\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\n/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */\ninterface DataTransfer {\n    /**\n     * Returns the kind of operation that is currently selected. If the kind of operation isn\'t one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n     * \n     * Can be set, to change the selected operation.\n     * \n     * The possible values are "none", "copy", "link", and "move".\n     */\n    dropEffect: string;\n    /**\n     * Returns the kinds of operations that are to be allowed.\n     * \n     * Can be set (during the dragstart event), to change the allowed operations.\n     * \n     * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n     */\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 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 feedback.\n     */\n    setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n    prototype: DataTransfer;\n    new(): DataTransfer;\n};\n\n/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */\ninterface DataTransferItem {\n    /**\n     * Returns the drag data item kind, one of: "string", "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 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\n/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */\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 text then a type string has to be provided 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\n/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */\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\n/** Provides information about the amount of acceleration the device is experiencing along all three axes. */\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\n/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen\'s brightness based on the current ambient light level in order to save energy or provide better readability. */\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\n/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation. */\ninterface DeviceMotionEvent extends Event {\n    readonly acceleration: DeviceMotionEventAcceleration | null;\n    readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n    readonly interval: number;\n    readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n    prototype: DeviceMotionEvent;\n    new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\ninterface DeviceMotionEventAcceleration {\n    readonly x: number | null;\n    readonly y: number | null;\n    readonly z: number | null;\n}\n\ninterface DeviceMotionEventRotationRate {\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\n/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */\ninterface DeviceOrientationEvent extends Event {\n    readonly absolute: boolean;\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n    prototype: DeviceOrientationEvent;\n    new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\n/** Provides information about the rate at which the device is rotating around all three axes. */\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    "pointerlockchange": Event;\n    "pointerlockerror": Event;\n    "readystatechange": ProgressEvent<Document>;\n    "visibilitychange": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree. */\ninterface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, ParentNode, XPathEvaluatorBase, 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 cookies can\'t be applied to this resource, the empty string will be returned.\n     * \n     * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n     * \n     * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.\n     */\n    cookie: string;\n    /**\n     * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n     * \n     * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG 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;\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 and fullscreen is supported, or false otherwise.\n     */\n    readonly fullscreenEnabled: boolean;\n    /**\n     * Returns the head element.\n     */\n    readonly head: HTMLHeadElement;\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;\n    onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n    onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n    onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n    onpointerlockerror: ((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<Document>) => 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     * \n     * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "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    /** @deprecated */\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 ":" (U+003E) in qualifiedName or qualifiedName.\n     * \n     * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n     * \n     * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n     * \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 neither qualifiedName nor namespace prefix is "xmlns".\n     * \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<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\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: "InputEvent"): InputEvent;\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. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "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    /**\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): TreeWalker;\n    /** @deprecated */\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    /**\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 resolves promise when done.\n     */\n    exitFullscreen(): Promise<void>;\n    exitPointerLock(): 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     * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\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 "*" returns a HTMLCollection of all descendant elements.\n     * \n     * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n     * \n     * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n     * \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     * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n     */\n    getSelection(): Selection | null;\n    /**\n     * Gets a value indicating whether the object currently has focus.\n     */\n    hasFocus(): boolean;\n    /**\n     * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n     * \n     * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n     */\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    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: "InputEvent"): InputEvent;\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\n/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn\'t part of the active document tree structure, changes made to the fragment don\'t affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */\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     * Returns document\'s fullscreen element.\n     */\n    readonly fullscreenElement: Element | null;\n    readonly pointerLockElement: 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    caretPositionFromPoint(x: number, y: number): CaretPosition | null;\n    /** @deprecated */\n    caretRangeFromPoint(x: number, y: number): Range;\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\n/** A Node containing a doctype. */\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\n/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */\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\n/** Inherits properties from its parent, AudioNode. */\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: GLenum;\n    readonly MIN_EXT: GLenum;\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n    readonly SRGB8_ALPHA8_EXT: GLenum;\n    readonly SRGB_ALPHA_EXT: GLenum;\n    readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n    readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\ninterface ElementEventMap {\n    "fullscreenchange": Event;\n    "fullscreenerror": Event;\n}\n\n/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */\ninterface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, InnerHTML, Animatable {\n    readonly assignedSlot: HTMLSlotElement | null;\n    readonly attributes: NamedNodeMap;\n    /**\n     * Allows for manipulation of element\'s class content attribute as a 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 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 change it.\n     */\n    id: 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 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(init: 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<E extends Element = Element>(selector: string): E | 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 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. 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    /**\n     * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n     */\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     * When supplied, options\'s navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application\'s. The default value "auto" indicates no application preference.\n     */\n    requestFullscreen(options?: FullscreenOptions): Promise<void>;\n    requestPointerLock(): 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 present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n     * \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\n/** Events providing information related to errors in scripts or in files. */\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\n/** An event which takes place in the DOM. */\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    /**\n     * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n     */\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 invoked.\n     */\n    readonly currentTarget: EventTarget | null;\n    /**\n     * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n     */\n    readonly defaultPrevented: boolean;\n    /**\n     * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n     */\n    readonly eventPhase: number;\n    /**\n     * Returns true if event was dispatched by the user agent, and false otherwise.\n     */\n    readonly isTrusted: boolean;\n    returnValue: boolean;\n    /** @deprecated */\n    readonly srcElement: EventTarget | 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 the time origin.\n     */\n    readonly timeStamp: number;\n    /**\n     * Returns the type of event, e.g. "click", "hashchange", or "submit".\n     */\n    readonly type: string;\n    /**\n     * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n     */\n    composedPath(): EventTarget[];\n    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n    /**\n     * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n     */\n    preventDefault(): void;\n    /**\n     * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any 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 EventSourceEventMap {\n    "error": Event;\n    "message": MessageEvent;\n    "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n    onerror: ((this: EventSource, ev: Event) => any) | null;\n    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n    onopen: ((this: EventSource, ev: Event) => any) | null;\n    /**\n     * Returns the state of this EventSource object\'s connection. It can have the values described below.\n     */\n    readonly readyState: number;\n    /**\n     * Returns the URL providing the event stream.\n     */\n    readonly url: string;\n    /**\n     * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n     */\n    readonly withCredentials: boolean;\n    /**\n     * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n     */\n    close(): void;\n    readonly CLOSED: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n    addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n    prototype: EventSource;\n    new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;\n    readonly CLOSED: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\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     * \n     * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n     * \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     * \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     * \n     * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n     * \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 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\ndeclare var External: {\n    prototype: External;\n    new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\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\n/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\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<FileReader>;\n    "error": ProgressEvent<FileReader>;\n    "load": ProgressEvent<FileReader>;\n    "loadend": ProgressEvent<FileReader>;\n    "loadstart": ProgressEvent<FileReader>;\n    "progress": ProgressEvent<FileReader>;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n    readonly error: DOMException | null;\n    onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => 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, encoding?: 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\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n    readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n    prototype: FocusEvent;\n    new(type: 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\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */\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\n/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */\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\n/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */\ninterface Gamepad {\n    readonly axes: ReadonlyArray<number>;\n    readonly buttons: ReadonlyArray<GamepadButton>;\n    readonly connected: boolean;\n    readonly hand: GamepadHand;\n    readonly hapticActuators: ReadonlyArray<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\n/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */\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\n/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */\ninterface GamepadEvent extends Event {\n    readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n    prototype: GamepadEvent;\n    new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\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\n/** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */\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 GenericTransformStream {\n    /**\n     * Returns a readable stream whose chunks are strings resulting from running encoding\'s decoder on the chunks written to writable.\n     */\n    readonly readable: ReadableStream;\n    /**\n     * Returns a writable stream which accepts BufferSource chunks and runs them through encoding\'s decoder before making them available to readable.\n     * \n     * Typically this will be used via the pipeThrough() method on a ReadableStream source.\n     * \n     * ```\n     * var decoder = new TextDecoderStream(encoding);\n     * byteReadable\n     *   .pipeThrough(decoder)\n     *   .pipeTo(textWritable);\n     * ```\n     * \n     * If the error mode is "fatal" and encoding\'s decoder returns error, both readable and writable will be errored with a TypeError.\n     */\n    readonly writable: WritableStream;\n}\n\n/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user\'s location. */\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 GlobalEventHandlersEventMap {\n    "abort": UIEvent;\n    "animationcancel": AnimationEvent;\n    "animationend": AnimationEvent;\n    "animationiteration": AnimationEvent;\n    "animationstart": AnimationEvent;\n    "auxclick": MouseEvent;\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    "focusin": FocusEvent;\n    "focusout": 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": Event;\n    "securitypolicyviolation": SecurityPolicyViolationEvent;\n    "seeked": Event;\n    "seeking": Event;\n    "select": Event;\n    "selectionchange": Event;\n    "selectstart": Event;\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: MouseEvent) => 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: OnErrorEventHandler;\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: Event) => 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: Event) => any) | null;\n    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onselectstart: ((this: GlobalEventHandlers, ev: Event) => 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 HTMLAllCollection {\n    /**\n     * Returns the number of elements in the collection.\n     */\n    readonly length: number;\n    /**\n     * Returns the item with index index from the collection (determined by tree order).\n     */\n    item(nameOrIndex?: string): HTMLCollection | Element | null;\n    /**\n     * Returns the item with ID or name name from the collection.\n     * \n     * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n     * \n     * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\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\n/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */\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\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */\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\n/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */\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\n/** A HTML line break element (<br>). It inherits from HTMLElement. */\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\n/** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements. */\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\n/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */\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\n/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */\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\n/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */\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", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n    getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n    getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n    getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n    getContext(contextId: string, options?: any): RenderingContext | 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    transferControlToOffscreen(): OffscreenCanvas;\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\n/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */\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\n/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */\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\n/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */\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\n/** The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object. */\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\n/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */\ninterface HTMLEmbedElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: string;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    /** @deprecated */\n    name: string;\n    /**\n     * Sets or retrieves a URL to be loaded by the object.\n     */\n    src: string;\n    type: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: string;\n    getSVGDocument(): Document | null;\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */\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\n/** Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text. */\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\n/** A collection of HTML form control elements.  */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n    /**\n     * Returns the item with ID or name name from the collection.\n     * \n     * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n     */\n    namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n    prototype: HTMLFormControlsCollection;\n    new(): HTMLFormControlsCollection;\n};\n\n/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */\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\n/** Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. */\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\n/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */\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\n/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */\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\n/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */\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\n/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */\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\n/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */\ninterface HTMLIFrameElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    allow: 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: 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 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    referrerPolicy: ReferrerPolicy;\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    getSVGDocument(): Document | null;\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\n/** Provides special properties and methods for manipulating <img> elements. */\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\n/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */\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    /**\n     * Returns a Date object representing the form control\'s value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn\'t date- or time-based.\n     */\n    valueAsDate: Date | null;\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\n/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */\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\n/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */\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\n/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */\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\n/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */\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    imageSizes: string;\n    imageSrcset: 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\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */\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\n/** Provides methods to manipulate <marquee> elements. */\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    "waitingforkey": Event;\n}\n\n/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */\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    onwaitingforkey: ((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 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\n/** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */\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\n/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */\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\n/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */\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\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */\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\n/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */\ninterface HTMLObjectElement extends HTMLElement {\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    readonly contentWindow: WindowProxy | 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     * Sets or retrieves the name of the object.\n     */\n    name: string;\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    /**\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    getSVGDocument(): Document | null;\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\n/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */\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\n/** <option> elements and inherits all classes and methods of the HTMLElement interface. */\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\n/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n    /**\n     * Returns the number of elements in the collection.\n     * \n     * When set to a smaller number, truncates the number of option elements in the corresponding container.\n     * \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 item.\n     * \n     * Can be set, to change the selection.\n     */\n    selectedIndex: number;\n    /**\n     * Inserts element before the node given by before.\n     * \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 collection, in which case element is inserted before that element.\n     * \n     * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n     * \n     * This method will throw a "HierarchyRequestError" DOMException if 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\n/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */\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\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */\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\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */\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\n/** A <picture> HTML element. It doesn\'t implement specific properties or methods. */\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\n/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */\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\n/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */\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\n/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */\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\n/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */\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\n/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\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\n/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */\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\n/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */\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\n/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */\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\n/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */\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\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */\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\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */\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\n/** Enables access to the contents of an HTML <template> element. */\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\n/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */\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\n/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */\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\n/** The HTMLTrackElement */\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\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */\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\n/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\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\n/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */\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\n/** Events that fire when the fragment identifier of the URL has changed. */\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\n/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */\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\n/** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */\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\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n    /**\n     * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n     */\n    readonly direction: IDBCursorDirection;\n    /**\n     * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n     */\n    readonly key: IDBValidKey;\n    /**\n     * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n     */\n    readonly primaryKey: IDBValidKey;\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 range.\n     */\n    advance(count: number): void;\n    /**\n     * Advances the cursor to the next record in range.\n     */\n    continue(key?: IDBValidKey): void;\n    /**\n     * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n     */\n    continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n    /**\n     * Delete the record pointed at by the cursor with a new value.\n     * \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     * \n     * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n     * \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\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */\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\n/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */\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     * \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     * \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") 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\n/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBFactory {\n    /**\n     * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n     * \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 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 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 current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection.\n     */\n    open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n    prototype: IDBFactory;\n    new(): IDBFactory;\n};\n\n/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */\ninterface IDBIndex {\n    readonly keyPath: string | string[];\n    readonly multiEntry: boolean;\n    /**\n     * Returns the name of the index.\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     * \n     * If successful, request\'s result will be the count.\n     */\n    count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     * \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     * \n     * If successful, request\'s result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     * \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, ordered by direction. If query is null, all records in index are matched.\n     * \n     * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n     */\n    openCursor(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n    prototype: IDBIndex;\n    new(): IDBIndex;\n};\n\n/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */\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. If lowerOpen is true, lower is not included in the range. 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 upper bound. If open is true, key is not included in the 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\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */\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     * Returns the name of the store.\n     */\n    name: string;\n    /**\n     * Returns the associated transaction.\n     */\n    readonly transaction: IDBTransaction;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     * \n     * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n     * \n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n     * \n     * If successful, request\'s result will be the record\'s key.\n     */\n    add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n    /**\n     * Deletes all records in store.\n     * \n     * If successful, request\'s result will be undefined.\n     */\n    clear(): IDBRequest<undefined>;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     * \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 satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n     * \n     * Throws an "InvalidStateError" DOMException if not called within an upgrade 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     * \n     * If successful, request\'s result will be undefined.\n     */\n    delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n    /**\n     * Deletes the index in store with the given name.\n     * \n     * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n     */\n    deleteIndex(name: string): void;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     * \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 given key or key range in query (up to count if given).\n     * \n     * If successful, request\'s result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     * \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, ordered by direction. If query is null, all records in store are matched.\n     * \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(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     * \n     * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n     * \n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n     * \n     * If successful, request\'s result will be the record\'s key.\n     */\n    put(value: any, key?: IDBValidKey): 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\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\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\n/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */\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 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, then returns "done".\n     */\n    readonly readyState: IDBRequestReadyState;\n    /**\n     * When a request is completed, returns the result, or undefined if the request failed. Throws a "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 request.\n     */\n    readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n    /**\n     * Returns the IDBTransaction the request was made within. 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 error (a DOMException) providing the reason.\n     */\n    readonly error: DOMException;\n    /**\n     * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n     */\n    readonly mode: IDBTransactionMode;\n    /**\n     * Returns a list of the names of object stores in the 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 a "AbortError" DOMException and all changes made to the database will be 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\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\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\n/** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR)  filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */\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 pixels.\n     */\n    readonly height: number;\n    /**\n     * Returns the intrinsic width of the image, in CSS 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 | OffscreenCanvas;\n    /**\n     * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n     */\n    transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n    prototype: ImageBitmapRenderingContext;\n    new(): ImageBitmapRenderingContext;\n};\n\n/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */\ninterface ImageData {\n    /**\n     * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n     */\n    readonly data: Uint8ClampedArray;\n    /**\n     * Returns the actual dimensions of the data in the ImageData object, in pixels.\n     */\n    readonly height: number;\n    /**\n     * Returns the actual dimensions of the data in the ImageData object, in pixels.\n     */\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 InnerHTML {\n    innerHTML: string;\n}\n\ninterface InputDeviceInfo extends MediaDeviceInfo {\n    getCapabilities(): MediaTrackCapabilities;\n}\n\ndeclare var InputDeviceInfo: {\n    prototype: InputDeviceInfo;\n    new(): InputDeviceInfo;\n};\n\ninterface InputEvent extends UIEvent {\n    readonly data: string | null;\n    readonly inputType: string;\n    readonly isComposing: boolean;\n}\n\ndeclare var InputEvent: {\n    prototype: InputEvent;\n    new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document\'s viewport. */\ninterface IntersectionObserver {\n    readonly root: Element | null;\n    readonly rootMargin: string;\n    readonly thresholds: ReadonlyArray<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\n/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */\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 | null;\n    readonly target: Element;\n    readonly time: number;\n}\n\ndeclare var IntersectionObserverEntry: {\n    prototype: IntersectionObserverEntry;\n    new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\n/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */\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 isComposing: 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    getModifierState(keyArg: string): boolean;\n    readonly DOM_KEY_LOCATION_LEFT: 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(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n    readonly DOM_KEY_LOCATION_LEFT: 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\n/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */\ninterface Location {\n    /**\n     * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing 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     * \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 port for the scheme).\n     * \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     * \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     * \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     * \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     * \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     * \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     * \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(): void;\n    /** @deprecated */\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\n/** The MSGestureEvent is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include MSGestureStart, MSGestureEnd, MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart. */\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\n/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */\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\n/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */\ninterface MediaDeviceInfo {\n    readonly deviceId: string;\n    readonly groupId: string;\n    readonly kind: MediaDeviceKind;\n    readonly label: string;\n    toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n    prototype: MediaDeviceInfo;\n    new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n    "devicechange": Event;\n}\n\n/** Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. */\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\n/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */\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\n/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */\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\n/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */\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 MediaKeySessionEventMap {\n    "keystatuseschange": Event;\n    "message": MessageEvent;\n}\n\n/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */\ninterface MediaKeySession extends EventTarget {\n    readonly closed: Promise<void>;\n    readonly expiration: number;\n    readonly keyStatuses: MediaKeyStatusMap;\n    onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n    onmessage: ((this: MediaKeySession, ev: MessageEvent) => any) | null;\n    readonly sessionId: string;\n    close(): Promise<void>;\n    generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n    load(sessionId: string): Promise<boolean>;\n    remove(): Promise<void>;\n    update(response: BufferSource): Promise<void>;\n    addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n    prototype: MediaKeySession;\n    new(): MediaKeySession;\n};\n\n/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */\ninterface MediaKeyStatusMap {\n    readonly size: number;\n    get(keyId: BufferSource): any;\n    has(keyId: BufferSource): boolean;\n    forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n    prototype: MediaKeyStatusMap;\n    new(): MediaKeyStatusMap;\n};\n\n/** This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. */\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\n/** This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. */\ninterface MediaKeys {\n    createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n    setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\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\n/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */\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: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | 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 MediaSourceEventMap {\n    "sourceclose": Event;\n    "sourceended": Event;\n    "sourceopen": Event;\n}\n\n/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */\ninterface MediaSource extends EventTarget {\n    readonly activeSourceBuffers: SourceBufferList;\n    duration: number;\n    onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n    onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n    onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n    readonly readyState: ReadyState;\n    readonly sourceBuffers: SourceBufferList;\n    addSourceBuffer(type: string): SourceBuffer;\n    clearLiveSeekableRange(): void;\n    endOfStream(error?: EndOfStreamError): void;\n    removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n    setLiveSeekableRange(start: number, end: number): void;\n    addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n    prototype: MediaSource;\n    new(): MediaSource;\n    isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n    "addtrack": MediaStreamTrackEvent;\n    "removetrack": MediaStreamTrackEvent;\n}\n\n/** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */\ninterface MediaStream extends EventTarget {\n    readonly active: boolean;\n    readonly id: string;\n    onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => 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    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\n/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */\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\n/** Events that occurs in relation to a MediaStream. Two events of this type can be thrown: addstream and removestream. */\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": Event;\n    "isolationchange": Event;\n    "mute": Event;\n    "unmute": Event;\n}\n\n/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */\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: Event) => any) | null;\n    onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    readonly readyState: MediaStreamTrackState;\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\n/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */\ninterface MediaStreamTrackEvent extends Event {\n    readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n    prototype: MediaStreamTrackEvent;\n    new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n    /**\n     * Returns the first MessagePort object.\n     */\n    readonly port1: MessagePort;\n    /**\n     * Returns the second MessagePort object.\n     */\n    readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n    prototype: MessageChannel;\n    new(): MessageChannel;\n};\n\n/** A message received by a target object. */\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 server-sent events.\n     */\n    readonly lastEventId: string;\n    /**\n     * Returns the origin of the message, for server-sent events and cross-document messaging.\n     */\n    readonly origin: string;\n    /**\n     * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n     */\n    readonly ports: ReadonlyArray<MessagePort>;\n    /**\n     * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at 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\n/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */\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 transferred, not just cloned, meaning that they are no longer usable on the sending side.\n     * \n     * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n     */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: PostMessageOptions): 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\n/** Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. */\ninterface MimeType {\n    /**\n     * Returns the MIME type\'s description.\n     */\n    readonly description: string;\n    /**\n     * Returns the Plugin object that implements this MIME type.\n     */\n    readonly enabledPlugin: Plugin;\n    /**\n     * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n     */\n    readonly suffixes: string;\n    /**\n     * Returns the MIME type.\n     */\n    readonly type: string;\n}\n\ndeclare var MimeType: {\n    prototype: MimeType;\n    new(): MimeType;\n};\n\n/** Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */\ninterface MimeTypeArray {\n    readonly length: number;\n    item(index: number): MimeType | null;\n    namedItem(name: string): MimeType | null;\n    [index: number]: MimeType;\n}\n\ndeclare var MimeTypeArray: {\n    prototype: MimeTypeArray;\n    new(): MimeTypeArray;\n};\n\n/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */\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    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 | null;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly shiftKey: boolean;\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(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/** Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. */\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\n/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */\ninterface MutationObserver {\n    /**\n     * Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked.\n     */\n    disconnect(): void;\n    /**\n     * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n     * \n     * The options argument allows for setting mutation observation options via object members.\n     */\n    observe(target: Node, options?: MutationObserverInit): void;\n    /**\n     * Empties the record queue and returns what was in there.\n     */\n    takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n    prototype: MutationObserver;\n    new(callback: MutationCallback): MutationObserver;\n};\n\n/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback. */\ninterface MutationRecord {\n    /**\n     * Return the nodes added and removed respectively.\n     */\n    readonly addedNodes: NodeList;\n    /**\n     * Returns the local name of the changed attribute, and null otherwise.\n     */\n    readonly attributeName: string | null;\n    /**\n     * Returns the namespace of the changed attribute, and null otherwise.\n     */\n    readonly attributeNamespace: string | null;\n    /**\n     * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n     */\n    readonly nextSibling: Node | null;\n    /**\n     * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.\n     */\n    readonly oldValue: string | null;\n    /**\n     * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n     */\n    readonly previousSibling: Node | null;\n    /**\n     * Return the nodes added and removed respectively.\n     */\n    readonly removedNodes: NodeList;\n    /**\n     * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.\n     */\n    readonly target: Node;\n    /**\n     * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "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\n/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */\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\n/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */\ninterface Navigator extends NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, NavigatorConcurrentHardware, NavigatorStorage, NavigatorAutomationInformation, MSFileSaver, MSNavigatorDoNotTrack, NavigatorBeacon {\n    readonly activeVRDisplays: ReadonlyArray<VRDisplay>;\n    readonly clipboard: Clipboard;\n    readonly credentials: CredentialsContainer;\n    readonly doNotTrack: string | null;\n    readonly geolocation: Geolocation;\n    readonly maxTouchPoints: number;\n    readonly mediaDevices: MediaDevices;\n    readonly msManipulationViewsEnabled: boolean;\n    readonly msMaxTouchPoints: number;\n    readonly msPointerEnabled: boolean;\n    readonly permissions: Permissions;\n    readonly pointerEnabled: boolean;\n    readonly serviceWorker: ServiceWorkerContainer;\n    getGamepads(): (Gamepad | null)[];\n    getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;\n    getVRDisplays(): Promise<VRDisplay[]>;\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    registerProtocolHandler(scheme: string, url: string, title: string): void;\n    unregisterProtocolHandler(scheme: string, url: string): void;\n}\n\ninterface NavigatorCookies {\n    readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n    readonly appCodeName: string;\n    readonly appName: string;\n    readonly appVersion: string;\n    readonly oscpu: 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    taintEnabled(): boolean;\n}\n\ninterface NavigatorLanguage {\n    readonly language: string;\n    readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorOnLine {\n    readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n    readonly mimeTypes: MimeTypeArray;\n    readonly plugins: PluginArray;\n    javaEnabled(): boolean;\n}\n\ninterface NavigatorStorage {\n    readonly storage: StorageManager;\n}\n\n/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */\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    /** @deprecated */\n    readonly namespaceURI: string | null;\n    /**\n     * Returns the next sibling.\n     */\n    readonly nextSibling: ChildNode | null;\n    /**\n     * Returns a string appropriate for the type of node.\n     */\n    readonly nodeName: string;\n    /**\n     * Returns the type of node.\n     */\n    readonly nodeType: number;\n    nodeValue: string | null;\n    /**\n     * Returns the node document. 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    /**\n     * Returns a bitmask indicating the position of other relative to node.\n     */\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 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    /**\n     * node is a CDATASection node.\n     */\n    readonly CDATA_SECTION_NODE: number;\n    /**\n     * node is a Comment node.\n     */\n    readonly COMMENT_NODE: number;\n    /**\n     * node is a DocumentFragment node.\n     */\n    readonly DOCUMENT_FRAGMENT_NODE: number;\n    /**\n     * node is a document.\n     */\n    readonly DOCUMENT_NODE: number;\n    /**\n     * Set when other is a descendant of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n    /**\n     * Set when other is an ancestor of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINS: number;\n    /**\n     * Set when node and other are not in the same tree.\n     */\n    readonly DOCUMENT_POSITION_DISCONNECTED: number;\n    /**\n     * Set when other is following node.\n     */\n    readonly DOCUMENT_POSITION_FOLLOWING: number;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n    /**\n     * Set when other is preceding node.\n     */\n    readonly DOCUMENT_POSITION_PRECEDING: number;\n    /**\n     * node is a doctype.\n     */\n    readonly DOCUMENT_TYPE_NODE: number;\n    /**\n     * node is an element.\n     */\n    readonly ELEMENT_NODE: number;\n    readonly ENTITY_NODE: number;\n    readonly ENTITY_REFERENCE_NODE: number;\n    readonly NOTATION_NODE: number;\n    /**\n     * node is a ProcessingInstruction node.\n     */\n    readonly PROCESSING_INSTRUCTION_NODE: number;\n    /**\n     * node is a Text node.\n     */\n    readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n    prototype: Node;\n    new(): Node;\n    readonly ATTRIBUTE_NODE: number;\n    /**\n     * node is a CDATASection node.\n     */\n    readonly CDATA_SECTION_NODE: number;\n    /**\n     * node is a Comment node.\n     */\n    readonly COMMENT_NODE: number;\n    /**\n     * node is a DocumentFragment node.\n     */\n    readonly DOCUMENT_FRAGMENT_NODE: number;\n    /**\n     * node is a document.\n     */\n    readonly DOCUMENT_NODE: number;\n    /**\n     * Set when other is a descendant of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n    /**\n     * Set when other is an ancestor of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINS: number;\n    /**\n     * Set when node and other are not in the same tree.\n     */\n    readonly DOCUMENT_POSITION_DISCONNECTED: number;\n    /**\n     * Set when other is following node.\n     */\n    readonly DOCUMENT_POSITION_FOLLOWING: number;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n    /**\n     * Set when other is preceding node.\n     */\n    readonly DOCUMENT_POSITION_PRECEDING: number;\n    /**\n     * node is a doctype.\n     */\n    readonly DOCUMENT_TYPE_NODE: number;\n    /**\n     * node is an element.\n     */\n    readonly ELEMENT_NODE: number;\n    readonly ENTITY_NODE: number;\n    readonly ENTITY_REFERENCE_NODE: number;\n    readonly NOTATION_NODE: number;\n    /**\n     * node is a ProcessingInstruction node.\n     */\n    readonly PROCESSING_INSTRUCTION_NODE: number;\n    /**\n     * node is a Text node.\n     */\n    readonly TEXT_NODE: number;\n};\n\n/** An object used to filter the nodes in a NodeIterator or TreeWalker. They don\'t know anything about the DOM or how to traverse nodes; they just know how to evaluate a single node against the provided filter. */\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\n/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */\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\n/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */\ninterface NodeList {\n    /**\n     * Returns the number of nodes in the collection.\n     */\n    readonly length: number;\n    /**\n     * Returns the node with index index from the collection. The nodes are sorted in tree order.\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 NonDocumentTypeChildNode {\n    /**\n     * Returns the first following sibling that is an element, and null otherwise.\n     */\n    readonly nextElementSibling: Element | null;\n    /**\n     * Returns the first preceding sibling that 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\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\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\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */\ninterface OES_texture_half_float {\n    readonly HALF_FLOAT_OES: GLenum;\n}\n\n/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n    readonly VERTEX_ARRAY_BINDING_OES: GLenum;\n}\n\n/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */\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\n/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn\'t render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */\ninterface OfflineAudioContext extends BaseAudioContext {\n    readonly length: number;\n    oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n    resume(): Promise<void>;\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 OffscreenCanvas extends EventTarget {\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n     * \n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    height: number;\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n     * \n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    width: number;\n    /**\n     * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n     * \n     * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n     */\n    convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n    /**\n     * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n     * \n     * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n     * \n     * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n     */\n    getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;\n    getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n    getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n    getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n    getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n    /**\n     * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.\n     */\n    transferToImageBitmap(): ImageBitmap;\n}\n\ndeclare var OffscreenCanvas: {\n    prototype: OffscreenCanvas;\n    new(width: number, height: number): OffscreenCanvas;\n};\n\ninterface OffscreenCanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath {\n    readonly canvas: OffscreenCanvas;\n    commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n    prototype: OffscreenCanvasRenderingContext2D;\n    new(): OffscreenCanvasRenderingContext2D;\n};\n\n/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */\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 OverconstrainedError extends Error {\n    constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n    prototype: OverconstrainedError;\n    new(): OverconstrainedError;\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\n/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */\ninterface PageTransitionEvent extends Event {\n    readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n    prototype: PageTransitionEvent;\n    new(): PageTransitionEvent;\n};\n\n/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can\'t have panning effects without at least two audio channels! */\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 strings in nodes with equivalent Text nodes.\n     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n     */\n    append(...nodes: (Node | string)[]): void;\n    /**\n     * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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 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 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\n/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */\ninterface Path2D extends CanvasPath {\n    /**\n     * Adds to the path the path given by the argument.\n     */\n    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n    prototype: Path2D;\n    new(path?: Path2D | string): Path2D;\n};\n\n/** This Payment Request API interface is used to store shipping or payment address information. */\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\n/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */\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\n/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */\ninterface PaymentRequestUpdateEvent extends Event {\n    updateWith(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n    prototype: PaymentRequestUpdateEvent;\n    new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */\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\n/** Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */\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\n/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */\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\n/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline. */\ninterface PerformanceMark extends PerformanceEntry {\n}\n\ndeclare var PerformanceMark: {\n    prototype: PerformanceMark;\n    new(): PerformanceMark;\n};\n\n/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline. */\ninterface PerformanceMeasure extends PerformanceEntry {\n}\n\ndeclare var PerformanceMeasure: {\n    prototype: PerformanceMeasure;\n    new(): PerformanceMeasure;\n};\n\n/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. */\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\n/** Provides methods and properties to store and retrieve metrics regarding the browser\'s document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */\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    readonly supportedEntryTypes: ReadonlyArray<string>;\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\n/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */\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\n/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property. */\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\n/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */\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 PermissionStatusEventMap {\n    "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n    onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n    readonly state: PermissionState;\n    addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n    prototype: PermissionStatus;\n    new(): PermissionStatus;\n};\n\ninterface Permissions {\n    query(permissionDesc: PermissionDescriptor | DevicePermissionDescriptor | MidiPermissionDescriptor | PushPermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n    prototype: Permissions;\n    new(): Permissions;\n};\n\n/** Provides information about a browser plugin. */\ninterface Plugin {\n    /**\n     * Returns the plugin\'s description.\n     */\n    readonly description: string;\n    /**\n     * Returns the plugin library\'s filename, if applicable on the current platform.\n     */\n    readonly filename: string;\n    /**\n     * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n     */\n    readonly length: number;\n    /**\n     * Returns the plugin\'s name.\n     */\n    readonly name: string;\n    /**\n     * Returns the specified MimeType object.\n     */\n    item(index: number): MimeType | null;\n    namedItem(name: string): MimeType | null;\n    [index: number]: MimeType;\n}\n\ndeclare var Plugin: {\n    prototype: Plugin;\n    new(): Plugin;\n};\n\n/** Used to store a list of Plugin objects describing the available plugins; it\'s returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */\ninterface PluginArray {\n    readonly length: number;\n    item(index: number): Plugin | null;\n    namedItem(name: string): Plugin | null;\n    refresh(reload?: boolean): void;\n    [index: number]: Plugin;\n}\n\ndeclare var PluginArray: {\n    prototype: PluginArray;\n    new(): PluginArray;\n};\n\n/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */\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\n/** PopStateEvent is an event handler for the popstate event on the window. */\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\n/** The position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed. */\ninterface Position {\n    readonly coords: Coordinates;\n    readonly timestamp: number;\n}\n\n/** The reason of an error occurring when using the geolocating device. */\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\n/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them. */\ninterface ProcessingInstruction extends CharacterData {\n    readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n    prototype: ProcessingInstruction;\n    new(): ProcessingInstruction;\n};\n\n/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n    readonly lengthComputable: boolean;\n    readonly loaded: number;\n    readonly target: T | null;\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 PublicKeyCredential extends Credential {\n    readonly rawId: ArrayBuffer;\n    readonly response: AuthenticatorResponse;\n    getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n    prototype: PublicKeyCredential;\n    new(): PublicKeyCredential;\n    isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */\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\n/** This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service. */\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\n/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */\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\n/** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */\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\n/** Provides access to information about the ICE transport layer over which the data is being sent and received. */\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\n/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it\'s no longer needed. */\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\n/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */\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\n/** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */\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\n/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */\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\n/** One end of a connection—or potential connection—and how it\'s configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */\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\n/** A fragment of a document that can contain nodes and parts of text nodes. */\ninterface Range extends AbstractRange {\n    /**\n     * Returns the node, furthest away from 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 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 ReadableByteStreamController {\n    readonly byobRequest: ReadableStreamBYOBRequest | undefined;\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk: ArrayBufferView): void;\n    error(error?: any): void;\n}\n\n/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */\ninterface ReadableStream<R = any> {\n    readonly locked: boolean;\n    cancel(reason?: any): Promise<void>;\n    getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n    getReader(): ReadableStreamDefaultReader<R>;\n    pipeThrough<T>({ writable, readable }: { writable: WritableStream<R>, readable: ReadableStream<T> }, options?: PipeOptions): ReadableStream<T>;\n    pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;\n    tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n    prototype: ReadableStream;\n    new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream<Uint8Array>;\n    new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamBYOBReader {\n    readonly closed: Promise<void>;\n    cancel(reason?: any): Promise<void>;\n    read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n    releaseLock(): void;\n}\n\ninterface ReadableStreamBYOBRequest {\n    readonly view: ArrayBufferView;\n    respond(bytesWritten: number): void;\n    respondWithNewView(view: ArrayBufferView): void;\n}\n\ninterface ReadableStreamDefaultController<R = any> {\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk: R): void;\n    error(error?: any): void;\n}\n\ninterface ReadableStreamDefaultReader<R = any> {\n    readonly closed: Promise<void>;\n    cancel(reason?: any): Promise<void>;\n    read(): Promise<ReadableStreamReadResult<R>>;\n    releaseLock(): void;\n}\n\ninterface ReadableStreamReadResult<T> {\n    done: boolean;\n    value: T;\n}\n\ninterface ReadableStreamReader<R = any> {\n    cancel(): Promise<void>;\n    read(): Promise<ReadableStreamReadResult<R>>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamReader: {\n    prototype: ReadableStreamReader;\n    new(): ReadableStreamReader;\n};\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n    /**\n     * Returns the cache mode associated with request, which is a string indicating how 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 indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.\n     */\n    readonly credentials: RequestCredentials;\n    /**\n     * Returns the kind of resource requested by request, e.g., "document" or "script".\n     */\n    readonly destination: RequestDestination;\n    /**\n     * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this 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 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 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 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 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 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 explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during 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 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 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\n/** This Fetch API interface represents the response to a request. */\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\n/** Provides access to the properties of <a> element, as well as methods to manipulate them. */\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\n/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */\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 SVGAnimateElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, 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: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n    prototype: SVGAnimateElement;\n    new(): SVGAnimateElement;\n};\n\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, 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: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n    prototype: SVGAnimateMotionElement;\n    new(): SVGAnimateMotionElement;\n};\n\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, 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: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n    prototype: SVGAnimateTransformElement;\n    new(): SVGAnimateTransformElement;\n};\n\n/** Used for attributes of basic type <angle> which can be animated. */\ninterface SVGAnimatedAngle {\n    readonly animVal: SVGAngle;\n    readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n    prototype: SVGAnimatedAngle;\n    new(): SVGAnimatedAngle;\n};\n\n/** Used for attributes of type boolean which can be animated. */\ninterface SVGAnimatedBoolean {\n    readonly animVal: boolean;\n    baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n    prototype: SVGAnimatedBoolean;\n    new(): SVGAnimatedBoolean;\n};\n\n/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */\ninterface SVGAnimatedEnumeration {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n    prototype: SVGAnimatedEnumeration;\n    new(): SVGAnimatedEnumeration;\n};\n\n/** Used for attributes of basic type <integer> which can be animated. */\ninterface SVGAnimatedInteger {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n    prototype: SVGAnimatedInteger;\n    new(): SVGAnimatedInteger;\n};\n\n/** Used for attributes of basic type <length> which can be animated. */\ninterface SVGAnimatedLength {\n    readonly animVal: SVGLength;\n    readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n    prototype: SVGAnimatedLength;\n    new(): SVGAnimatedLength;\n};\n\n/** Used for attributes of type SVGLengthList which can be animated. */\ninterface SVGAnimatedLengthList {\n    readonly animVal: SVGLengthList;\n    readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n    prototype: SVGAnimatedLengthList;\n    new(): SVGAnimatedLengthList;\n};\n\n/** Used for attributes of basic type <Number> which can be animated. */\ninterface SVGAnimatedNumber {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n    prototype: SVGAnimatedNumber;\n    new(): SVGAnimatedNumber;\n};\n\n/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */\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\n/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */\ninterface SVGAnimatedPreserveAspectRatio {\n    readonly animVal: SVGPreserveAspectRatio;\n    readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n    prototype: SVGAnimatedPreserveAspectRatio;\n    new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/** Used for attributes of basic SVGRect which can be animated. */\ninterface SVGAnimatedRect {\n    readonly animVal: DOMRectReadOnly;\n    readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n    prototype: SVGAnimatedRect;\n    new(): SVGAnimatedRect;\n};\n\n/** The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. */\ninterface SVGAnimatedString {\n    readonly animVal: string;\n    baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n    prototype: SVGAnimatedString;\n    new(): SVGAnimatedString;\n};\n\n/** Used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedTransformList {\n    readonly animVal: SVGTransformList;\n    readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n    prototype: SVGAnimatedTransformList;\n    new(): SVGAnimatedTransformList;\n};\n\ninterface SVGAnimationElement extends SVGElement {\n    readonly targetElement: SVGElement;\n    getCurrentTime(): number;\n    getSimpleDuration(): number;\n    getStartTime(): number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, 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: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n    prototype: SVGAnimationElement;\n    new(): SVGAnimationElement;\n};\n\n/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */\ninterface SVGCircleElement extends SVGGeometryElement {\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\n/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */\ninterface SVGClipPathElement extends SVGElement {\n    readonly clipPathUnits: SVGAnimatedEnumeration;\n    readonly transform: SVGAnimatedTransformList;\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\n/** A base interface used by the component transfer function interfaces. */\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 SVGCursorElement extends SVGElement {\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, 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: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCursorElement: {\n    prototype: SVGCursorElement;\n    new(): SVGCursorElement;\n};\n\n/** Corresponds to the <defs> element. */\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\n/** Corresponds to the <desc> element. */\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\n/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */\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\n/** Provides access to the properties of <ellipse> elements. */\ninterface SVGEllipseElement extends SVGGeometryElement {\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\n/** Corresponds to the <feBlend> element. */\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\n/** Corresponds to the <feColorMatrix> element. */\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\n/** Corresponds to the <feComponentTransfer> element. */\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\n/** Corresponds to the <feComposite> element. */\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\n/** Corresponds to the <feConvolveMatrix> element. */\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\n/** Corresponds to the <feDiffuseLighting> element. */\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\n/** Corresponds to the <feDisplacementMap> element. */\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\n/** Corresponds to the <feDistantLight> element. */\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 SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly dx: SVGAnimatedNumber;\n    readonly dy: SVGAnimatedNumber;\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: SVGFEDropShadowElement, 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: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n    prototype: SVGFEDropShadowElement;\n    new(): SVGFEDropShadowElement;\n};\n\n/** Corresponds to the <feFlood> element. */\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\n/** Corresponds to the <feFuncA> element. */\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\n/** Corresponds to the <feFuncB> element. */\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\n/** Corresponds to the <feFuncG> element. */\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\n/** Corresponds to the <feFuncR> element. */\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\n/** Corresponds to the <feGaussianBlur> element. */\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\n/** Corresponds to the <feImage> element. */\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\n/** Corresponds to the <feMerge> element. */\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\n/** Corresponds to the <feMergeNode> element. */\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\n/** Corresponds to the <feMorphology> element. */\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\n/** Corresponds to the <feOffset> element. */\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\n/** Corresponds to the <fePointLight> element. */\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\n/** Corresponds to the <feSpecularLighting> element. */\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\n/** Corresponds to the <feSpotLight> element. */\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\n/** Corresponds to the <feTile> element. */\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\n/** Corresponds to the <feTurbulence> element. */\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\n/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\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    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\n/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */\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\n/** Corresponds to the <g> element. */\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\n/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */\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\n/** SVG elements whose primary purpose is to directly render graphics into a group. */\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\n/** Corresponds to the <image> element. */\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\n/** Correspond to the <length> basic data type. */\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\n/** The SVGLengthList defines a list of SVGLength objects. */\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\n/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */\ninterface SVGLineElement extends SVGGeometryElement {\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\n/** Corresponds to the <linearGradient> element. */\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\n/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */\ninterface SVGMaskElement extends SVGElement {\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\n/** Corresponds to the <metadata> element. */\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\n/** Corresponds to the <number> basic data type. */\ninterface SVGNumber {\n    value: number;\n}\n\ndeclare var SVGNumber: {\n    prototype: SVGNumber;\n    new(): SVGNumber;\n};\n\n/** The SVGNumberList defines a list of SVGNumber objects. */\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\n/** Corresponds to the <path> element. */\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\n/** Corresponds to the <pattern> element. */\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 length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: DOMPoint): DOMPoint;\n    clear(): void;\n    getItem(index: number): DOMPoint;\n    initialize(newItem: DOMPoint): DOMPoint;\n    insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n    removeItem(index: number): DOMPoint;\n    replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n    [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n    prototype: SVGPointList;\n    new(): SVGPointList;\n};\n\n/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */\ninterface SVGPolygonElement extends SVGGeometryElement, 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\n/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */\ninterface SVGPolylineElement extends SVGGeometryElement, 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\n/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements. */\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\n/** Corresponds to the <RadialGradient> element. */\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\n/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */\ninterface SVGRectElement extends SVGGeometryElement {\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\n/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */\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    animationsPaused(): boolean;\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    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    pauseAnimations(): void;\n    setCurrentTime(seconds: number): void;\n    /** @deprecated */\n    suspendRedraw(maxWaitMilliseconds: number): number;\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\n/** Corresponds to the SVG <script> element. */\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\n/** Corresponds to the <stop> element. */\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\n/** The SVGStringList defines a list of DOMString objects. */\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\n/** Corresponds to the SVG <style> element. */\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\n/** Corresponds to the <switch> element. */\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\n/** Corresponds to the <symbol> element. */\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\n/** A <tspan> element. */\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\n/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */\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\n/** Corresponds to the <text> elements. */\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\n/** Corresponds to the <textPath> element. */\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\n/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */\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\n/** Corresponds to the <title> element. */\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\n/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. */\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\n/** The SVGTransformList defines a list of SVGTransform objects. */\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\n/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */\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\n/** Corresponds to the <use> element. */\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\n/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */\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\n/** Used to reflect the zoomAndPan attribute, and is mixed in to other interfaces for elements that support this attribute. */\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\n/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */\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\n/** Allows the generation, processing, or analyzing of audio using JavaScript. */\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\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\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\n/** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */\ninterface Selection {\n    readonly anchorNode: Node | null;\n    readonly anchorOffset: number;\n    readonly focusNode: Node | null;\n    readonly focusOffset: number;\n    readonly isCollapsed: boolean;\n    readonly rangeCount: number;\n    readonly type: string;\n    addRange(range: Range): void;\n    collapse(node: Node | null, offset?: number): void;\n    collapseToEnd(): void;\n    collapseToStart(): void;\n    containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n    deleteFromDocument(): void;\n    empty(): void;\n    extend(node: Node, offset?: number): void;\n    getRangeAt(index: number): Range;\n    removeAllRanges(): void;\n    removeRange(range: Range): void;\n    selectAllChildren(node: Node): void;\n    setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n    setPosition(node: Node | null, offset?: number): void;\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\n/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */\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    postMessage(message: any, options?: PostMessageOptions): 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\n/** The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */\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\n/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */\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\n/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */\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 DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n    readonly host: Element;\n    readonly mode: ShadowRootMode;\n}\n\ndeclare var ShadowRoot: {\n    prototype: ShadowRoot;\n    new(): ShadowRoot;\n};\n\ninterface Slotable {\n    readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n    "abort": Event;\n    "error": Event;\n    "update": Event;\n    "updateend": Event;\n    "updatestart": Event;\n}\n\n/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */\ninterface SourceBuffer extends EventTarget {\n    appendWindowEnd: number;\n    appendWindowStart: number;\n    readonly audioTracks: AudioTrackList;\n    readonly buffered: TimeRanges;\n    mode: AppendMode;\n    onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n    onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n    readonly textTracks: TextTrackList;\n    timestampOffset: number;\n    readonly updating: boolean;\n    readonly videoTracks: VideoTrackList;\n    abort(): void;\n    appendBuffer(data: BufferSource): void;\n    remove(start: number, end: number): void;\n    addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n    prototype: SourceBuffer;\n    new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n    "addsourcebuffer": Event;\n    "removesourcebuffer": Event;\n}\n\n/** A simple container list for multiple SourceBuffer objects. */\ninterface SourceBufferList extends EventTarget {\n    readonly length: number;\n    onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n    onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n    addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\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\n/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */\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\n/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */\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\n/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */\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\n/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */\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\n/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */\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\n/** This Web Storage API interface provides access to a particular domain\'s session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */\ninterface Storage {\n    /**\n     * Returns the number of key/value pairs currently present in the list associated with the 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     * Returns the current value associated with the given key, or null if the given key does not exist in the list associated with the object.\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 than or equal to the number of key/value pairs in the object.\n     */\n    key(index: number): string | null;\n    /**\n     * Removes the key/value pair with the given key from the list associated with the object, if a key/value pair with the given key exists.\n     */\n    removeItem(key: string): void;\n    /**\n     * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n     * \n     * Throws a "QuotaExceededError" DOMException exception if the new value couldn\'t be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)\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\n/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */\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\n/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */\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\n/** A list of StyleSheet. */\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\n/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */\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\n/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */\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\n/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element\'s text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */\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\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n    /**\n     * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented stream. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n     * \n     * ```\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     * ```\n     * \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 TextDecoderCommon {\n    /**\n     * Returns encoding\'s name, lowercased.\n     */\n    readonly encoding: string;\n    /**\n     * Returns true if error mode is "fatal", and false 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\ninterface TextDecoderStream extends TextDecoderCommon, GenericTransformStream {\n}\n\ndeclare var TextDecoderStream: {\n    prototype: TextDecoderStream;\n    new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n    /**\n     * Returns the result of running UTF-8\'s encoder.\n     */\n    encode(input?: string): Uint8Array;\n    /**\n     * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as a dictionary whereby read is the number of converted code units of source and written is the number of bytes modified in destination.\n     */\n    encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n    prototype: TextEncoder;\n    new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n    /**\n     * Returns "utf-8".\n     */\n    readonly encoding: string;\n}\n\ninterface TextEncoderStream extends TextEncoderCommon, GenericTransformStream {\n}\n\ndeclare var TextEncoderStream: {\n    prototype: TextEncoderStream;\n    new(): TextEncoderStream;\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\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxAscent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxDescent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxLeft: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxRight: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly alphabeticBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly emHeightAscent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly emHeightDescent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly fontBoundingBoxAscent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly fontBoundingBoxDescent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly hangingBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly ideographicBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\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\n/** This interface also inherits properties from EventTarget. */\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    readonly sourceBuffer: SourceBuffer | null;\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\n/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */\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\n/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. */\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\n/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */\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\n/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */\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\n/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */\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\n/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */\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 TransformStream<I = any, O = any> {\n    readonly readable: ReadableStream<O>;\n    readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n    prototype: TransformStream;\n    new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n    readonly desiredSize: number | null;\n    enqueue(chunk: O): void;\n    error(reason?: any): void;\n    terminate(): void;\n}\n\n/** Events providing information related to transitions. */\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\n/** The nodes of a document subtree and a position within them. */\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\n/** Simple user interface events. */\ninterface UIEvent extends Event {\n    readonly detail: number;\n    readonly view: Window | null;\n    /** @deprecated */\n    readonly which: number;\n}\n\ndeclare var UIEvent: {\n    prototype: UIEvent;\n    new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/** The URL interface represents an object providing static methods used for creating object URLs. */\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\n/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */\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\n/** This WebVR API interface describes the capabilities of a VRDisplay — its features can be used to perform VR device capability tests, for example can it return position information. */\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\n/** This WebVR API interface represents represents the event object of WebVR-related events (see the list of WebVR window extensions). */\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\n/** This WebVR API interface represents all the information required to correctly render a scene for a given eye, including field of view information. */\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\n/** This WebVR API interface represents a field of view defined by 4 different degree values describing the view from a center point. */\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\n/** This WebVR API interface represents all the information needed to render a single frame of a VR scene; constructed by VRDisplay.getFrameData(). */\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\n/** This WebVR API interface represents the state of a VR sensor at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */\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\n/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element\'s value fails to validate, if it\'s not valid. */\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\n/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */\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\n/** A single video track from a <video> element. */\ninterface VideoTrack {\n    readonly id: string;\n    kind: string;\n    readonly label: string;\n    language: string;\n    selected: boolean;\n    readonly sourceBuffer: SourceBuffer | null;\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\n/** Used to represent a list of the video tracks contained within a <video> element, with each track represented by a separate VideoTrack object in the list. */\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: GLenum;\n    readonly RGBA32F_EXT: GLenum;\n    readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_astc {\n    getSupportedProfiles(): string[];\n    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;\n    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;\n    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;\n    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;\n    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;\n}\n\n/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */\ninterface WEBGL_debug_renderer_info {\n    readonly UNMASKED_RENDERER_WEBGL: GLenum;\n    readonly UNMASKED_VENDOR_WEBGL: GLenum;\n}\n\ninterface WEBGL_debug_shaders {\n    getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n    readonly UNSIGNED_INT_24_8_WEBGL: GLenum;\n}\n\ninterface WEBGL_draw_buffers {\n    drawBuffersWEBGL(buffers: GLenum[]): void;\n    readonly COLOR_ATTACHMENT0_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT10_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT11_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT12_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT13_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT14_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT15_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT1_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT2_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT3_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT4_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT5_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT6_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT7_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT8_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT9_WEBGL: GLenum;\n    readonly DRAW_BUFFER0_WEBGL: GLenum;\n    readonly DRAW_BUFFER10_WEBGL: GLenum;\n    readonly DRAW_BUFFER11_WEBGL: GLenum;\n    readonly DRAW_BUFFER12_WEBGL: GLenum;\n    readonly DRAW_BUFFER13_WEBGL: GLenum;\n    readonly DRAW_BUFFER14_WEBGL: GLenum;\n    readonly DRAW_BUFFER15_WEBGL: GLenum;\n    readonly DRAW_BUFFER1_WEBGL: GLenum;\n    readonly DRAW_BUFFER2_WEBGL: GLenum;\n    readonly DRAW_BUFFER3_WEBGL: GLenum;\n    readonly DRAW_BUFFER4_WEBGL: GLenum;\n    readonly DRAW_BUFFER5_WEBGL: GLenum;\n    readonly DRAW_BUFFER6_WEBGL: GLenum;\n    readonly DRAW_BUFFER7_WEBGL: GLenum;\n    readonly DRAW_BUFFER8_WEBGL: GLenum;\n    readonly DRAW_BUFFER9_WEBGL: GLenum;\n    readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;\n    readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;\n}\n\ninterface WEBGL_lose_context {\n    loseContext(): void;\n    restoreContext(): void;\n}\n\n/** A WaveShaperNode always has exactly one input and one output. */\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 WebGL2RenderingContext extends WebGLRenderingContextBase, WebGL2RenderingContextBase, WebGL2RenderingContextOverloads {\n}\n\ndeclare var WebGL2RenderingContext: {\n    prototype: WebGL2RenderingContext;\n    new(): WebGL2RenderingContext;\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    readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n    readonly ALREADY_SIGNALED: GLenum;\n    readonly ANY_SAMPLES_PASSED: GLenum;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n    readonly COLOR: GLenum;\n    readonly COLOR_ATTACHMENT1: GLenum;\n    readonly COLOR_ATTACHMENT10: GLenum;\n    readonly COLOR_ATTACHMENT11: GLenum;\n    readonly COLOR_ATTACHMENT12: GLenum;\n    readonly COLOR_ATTACHMENT13: GLenum;\n    readonly COLOR_ATTACHMENT14: GLenum;\n    readonly COLOR_ATTACHMENT15: GLenum;\n    readonly COLOR_ATTACHMENT2: GLenum;\n    readonly COLOR_ATTACHMENT3: GLenum;\n    readonly COLOR_ATTACHMENT4: GLenum;\n    readonly COLOR_ATTACHMENT5: GLenum;\n    readonly COLOR_ATTACHMENT6: GLenum;\n    readonly COLOR_ATTACHMENT7: GLenum;\n    readonly COLOR_ATTACHMENT8: GLenum;\n    readonly COLOR_ATTACHMENT9: GLenum;\n    readonly COMPARE_REF_TO_TEXTURE: GLenum;\n    readonly CONDITION_SATISFIED: GLenum;\n    readonly COPY_READ_BUFFER: GLenum;\n    readonly COPY_READ_BUFFER_BINDING: GLenum;\n    readonly COPY_WRITE_BUFFER: GLenum;\n    readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n    readonly CURRENT_QUERY: GLenum;\n    readonly DEPTH: GLenum;\n    readonly DEPTH24_STENCIL8: GLenum;\n    readonly DEPTH32F_STENCIL8: GLenum;\n    readonly DEPTH_COMPONENT24: GLenum;\n    readonly DEPTH_COMPONENT32F: GLenum;\n    readonly DRAW_BUFFER0: GLenum;\n    readonly DRAW_BUFFER1: GLenum;\n    readonly DRAW_BUFFER10: GLenum;\n    readonly DRAW_BUFFER11: GLenum;\n    readonly DRAW_BUFFER12: GLenum;\n    readonly DRAW_BUFFER13: GLenum;\n    readonly DRAW_BUFFER14: GLenum;\n    readonly DRAW_BUFFER15: GLenum;\n    readonly DRAW_BUFFER2: GLenum;\n    readonly DRAW_BUFFER3: GLenum;\n    readonly DRAW_BUFFER4: GLenum;\n    readonly DRAW_BUFFER5: GLenum;\n    readonly DRAW_BUFFER6: GLenum;\n    readonly DRAW_BUFFER7: GLenum;\n    readonly DRAW_BUFFER8: GLenum;\n    readonly DRAW_BUFFER9: GLenum;\n    readonly DRAW_FRAMEBUFFER: GLenum;\n    readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n    readonly DYNAMIC_COPY: GLenum;\n    readonly DYNAMIC_READ: GLenum;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n    readonly FLOAT_MAT2x3: GLenum;\n    readonly FLOAT_MAT2x4: GLenum;\n    readonly FLOAT_MAT3x2: GLenum;\n    readonly FLOAT_MAT3x4: GLenum;\n    readonly FLOAT_MAT4x2: GLenum;\n    readonly FLOAT_MAT4x3: GLenum;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n    readonly FRAMEBUFFER_DEFAULT: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n    readonly HALF_FLOAT: GLenum;\n    readonly INTERLEAVED_ATTRIBS: GLenum;\n    readonly INT_2_10_10_10_REV: GLenum;\n    readonly INT_SAMPLER_2D: GLenum;\n    readonly INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly INT_SAMPLER_3D: GLenum;\n    readonly INT_SAMPLER_CUBE: GLenum;\n    readonly INVALID_INDEX: GLenum;\n    readonly MAX: GLenum;\n    readonly MAX_3D_TEXTURE_SIZE: GLenum;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n    readonly MAX_COLOR_ATTACHMENTS: GLenum;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_DRAW_BUFFERS: GLenum;\n    readonly MAX_ELEMENTS_INDICES: GLenum;\n    readonly MAX_ELEMENTS_VERTICES: GLenum;\n    readonly MAX_ELEMENT_INDEX: GLenum;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly MAX_SAMPLES: GLenum;\n    readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n    readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n    readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n    readonly MAX_VARYING_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MIN: GLenum;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly OBJECT_TYPE: GLenum;\n    readonly PACK_ROW_LENGTH: GLenum;\n    readonly PACK_SKIP_PIXELS: GLenum;\n    readonly PACK_SKIP_ROWS: GLenum;\n    readonly PIXEL_PACK_BUFFER: GLenum;\n    readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n    readonly PIXEL_UNPACK_BUFFER: GLenum;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n    readonly QUERY_RESULT: GLenum;\n    readonly QUERY_RESULT_AVAILABLE: GLenum;\n    readonly R11F_G11F_B10F: GLenum;\n    readonly R16F: GLenum;\n    readonly R16I: GLenum;\n    readonly R16UI: GLenum;\n    readonly R32F: GLenum;\n    readonly R32I: GLenum;\n    readonly R32UI: GLenum;\n    readonly R8: GLenum;\n    readonly R8I: GLenum;\n    readonly R8UI: GLenum;\n    readonly R8_SNORM: GLenum;\n    readonly RASTERIZER_DISCARD: GLenum;\n    readonly READ_BUFFER: GLenum;\n    readonly READ_FRAMEBUFFER: GLenum;\n    readonly READ_FRAMEBUFFER_BINDING: GLenum;\n    readonly RED: GLenum;\n    readonly RED_INTEGER: GLenum;\n    readonly RENDERBUFFER_SAMPLES: GLenum;\n    readonly RG: GLenum;\n    readonly RG16F: GLenum;\n    readonly RG16I: GLenum;\n    readonly RG16UI: GLenum;\n    readonly RG32F: GLenum;\n    readonly RG32I: GLenum;\n    readonly RG32UI: GLenum;\n    readonly RG8: GLenum;\n    readonly RG8I: GLenum;\n    readonly RG8UI: GLenum;\n    readonly RG8_SNORM: GLenum;\n    readonly RGB10_A2: GLenum;\n    readonly RGB10_A2UI: GLenum;\n    readonly RGB16F: GLenum;\n    readonly RGB16I: GLenum;\n    readonly RGB16UI: GLenum;\n    readonly RGB32F: GLenum;\n    readonly RGB32I: GLenum;\n    readonly RGB32UI: GLenum;\n    readonly RGB8: GLenum;\n    readonly RGB8I: GLenum;\n    readonly RGB8UI: GLenum;\n    readonly RGB8_SNORM: GLenum;\n    readonly RGB9_E5: GLenum;\n    readonly RGBA16F: GLenum;\n    readonly RGBA16I: GLenum;\n    readonly RGBA16UI: GLenum;\n    readonly RGBA32F: GLenum;\n    readonly RGBA32I: GLenum;\n    readonly RGBA32UI: GLenum;\n    readonly RGBA8: GLenum;\n    readonly RGBA8I: GLenum;\n    readonly RGBA8UI: GLenum;\n    readonly RGBA8_SNORM: GLenum;\n    readonly RGBA_INTEGER: GLenum;\n    readonly RGB_INTEGER: GLenum;\n    readonly RG_INTEGER: GLenum;\n    readonly SAMPLER_2D_ARRAY: GLenum;\n    readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n    readonly SAMPLER_2D_SHADOW: GLenum;\n    readonly SAMPLER_3D: GLenum;\n    readonly SAMPLER_BINDING: GLenum;\n    readonly SAMPLER_CUBE_SHADOW: GLenum;\n    readonly SEPARATE_ATTRIBS: GLenum;\n    readonly SIGNALED: GLenum;\n    readonly SIGNED_NORMALIZED: GLenum;\n    readonly SRGB: GLenum;\n    readonly SRGB8: GLenum;\n    readonly SRGB8_ALPHA8: GLenum;\n    readonly STATIC_COPY: GLenum;\n    readonly STATIC_READ: GLenum;\n    readonly STENCIL: GLenum;\n    readonly STREAM_COPY: GLenum;\n    readonly STREAM_READ: GLenum;\n    readonly SYNC_CONDITION: GLenum;\n    readonly SYNC_FENCE: GLenum;\n    readonly SYNC_FLAGS: GLenum;\n    readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n    readonly SYNC_STATUS: GLenum;\n    readonly TEXTURE_2D_ARRAY: GLenum;\n    readonly TEXTURE_3D: GLenum;\n    readonly TEXTURE_BASE_LEVEL: GLenum;\n    readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n    readonly TEXTURE_BINDING_3D: GLenum;\n    readonly TEXTURE_COMPARE_FUNC: GLenum;\n    readonly TEXTURE_COMPARE_MODE: GLenum;\n    readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n    readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n    readonly TEXTURE_MAX_LEVEL: GLenum;\n    readonly TEXTURE_MAX_LOD: GLenum;\n    readonly TEXTURE_MIN_LOD: GLenum;\n    readonly TEXTURE_WRAP_R: GLenum;\n    readonly TIMEOUT_EXPIRED: GLenum;\n    readonly TIMEOUT_IGNORED: GLint64;\n    readonly TRANSFORM_FEEDBACK: GLenum;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n    readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n    readonly UNIFORM_ARRAY_STRIDE: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n    readonly UNIFORM_BLOCK_BINDING: GLenum;\n    readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n    readonly UNIFORM_BLOCK_INDEX: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n    readonly UNIFORM_BUFFER: GLenum;\n    readonly UNIFORM_BUFFER_BINDING: GLenum;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n    readonly UNIFORM_BUFFER_SIZE: GLenum;\n    readonly UNIFORM_BUFFER_START: GLenum;\n    readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n    readonly UNIFORM_MATRIX_STRIDE: GLenum;\n    readonly UNIFORM_OFFSET: GLenum;\n    readonly UNIFORM_SIZE: GLenum;\n    readonly UNIFORM_TYPE: GLenum;\n    readonly UNPACK_IMAGE_HEIGHT: GLenum;\n    readonly UNPACK_ROW_LENGTH: GLenum;\n    readonly UNPACK_SKIP_IMAGES: GLenum;\n    readonly UNPACK_SKIP_PIXELS: GLenum;\n    readonly UNPACK_SKIP_ROWS: GLenum;\n    readonly UNSIGNALED: GLenum;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n    readonly UNSIGNED_INT_24_8: GLenum;\n    readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n    readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n    readonly UNSIGNED_INT_VEC2: GLenum;\n    readonly UNSIGNED_INT_VEC3: GLenum;\n    readonly UNSIGNED_INT_VEC4: GLenum;\n    readonly UNSIGNED_NORMALIZED: GLenum;\n    readonly VERTEX_ARRAY_BINDING: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n    readonly WAIT_FAILED: GLenum;\n};\n\ninterface WebGL2RenderingContextBase {\n    beginQuery(target: GLenum, query: WebGLQuery): void;\n    beginTransformFeedback(primitiveMode: GLenum): void;\n    bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n    bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n    bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n    bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n    bindVertexArray(array: WebGLVertexArrayObject | null): void;\n    blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n    clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n    clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n    copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createQuery(): WebGLQuery | null;\n    createSampler(): WebGLSampler | null;\n    createTransformFeedback(): WebGLTransformFeedback | null;\n    createVertexArray(): WebGLVertexArrayObject | null;\n    deleteQuery(query: WebGLQuery | null): void;\n    deleteSampler(sampler: WebGLSampler | null): void;\n    deleteSync(sync: WebGLSync | null): void;\n    deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n    deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n    drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n    drawBuffers(buffers: GLenum[]): void;\n    drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n    drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    endQuery(target: GLenum): void;\n    endTransformFeedback(): void;\n    fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n    framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n    getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n    getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n    getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n    getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n    getFragDataLocation(program: WebGLProgram, name: string): GLint;\n    getIndexedParameter(target: GLenum, index: GLuint): any;\n    getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n    getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n    getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n    getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n    getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n    getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n    getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n    invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n    invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    isQuery(query: WebGLQuery | null): GLboolean;\n    isSampler(sampler: WebGLSampler | null): GLboolean;\n    isSync(sync: WebGLSync | null): GLboolean;\n    isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n    isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n    pauseTransformFeedback(): void;\n    readBuffer(src: GLenum): void;\n    renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    resumeTransformFeedback(): void;\n    samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n    samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;\n    transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n    uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n    uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n    uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n    uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n    uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n    vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    vertexAttribI4iv(index: GLuint, values: Int32List): void;\n    vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n    vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n    vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n    waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n    readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n    readonly ALREADY_SIGNALED: GLenum;\n    readonly ANY_SAMPLES_PASSED: GLenum;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n    readonly COLOR: GLenum;\n    readonly COLOR_ATTACHMENT1: GLenum;\n    readonly COLOR_ATTACHMENT10: GLenum;\n    readonly COLOR_ATTACHMENT11: GLenum;\n    readonly COLOR_ATTACHMENT12: GLenum;\n    readonly COLOR_ATTACHMENT13: GLenum;\n    readonly COLOR_ATTACHMENT14: GLenum;\n    readonly COLOR_ATTACHMENT15: GLenum;\n    readonly COLOR_ATTACHMENT2: GLenum;\n    readonly COLOR_ATTACHMENT3: GLenum;\n    readonly COLOR_ATTACHMENT4: GLenum;\n    readonly COLOR_ATTACHMENT5: GLenum;\n    readonly COLOR_ATTACHMENT6: GLenum;\n    readonly COLOR_ATTACHMENT7: GLenum;\n    readonly COLOR_ATTACHMENT8: GLenum;\n    readonly COLOR_ATTACHMENT9: GLenum;\n    readonly COMPARE_REF_TO_TEXTURE: GLenum;\n    readonly CONDITION_SATISFIED: GLenum;\n    readonly COPY_READ_BUFFER: GLenum;\n    readonly COPY_READ_BUFFER_BINDING: GLenum;\n    readonly COPY_WRITE_BUFFER: GLenum;\n    readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n    readonly CURRENT_QUERY: GLenum;\n    readonly DEPTH: GLenum;\n    readonly DEPTH24_STENCIL8: GLenum;\n    readonly DEPTH32F_STENCIL8: GLenum;\n    readonly DEPTH_COMPONENT24: GLenum;\n    readonly DEPTH_COMPONENT32F: GLenum;\n    readonly DRAW_BUFFER0: GLenum;\n    readonly DRAW_BUFFER1: GLenum;\n    readonly DRAW_BUFFER10: GLenum;\n    readonly DRAW_BUFFER11: GLenum;\n    readonly DRAW_BUFFER12: GLenum;\n    readonly DRAW_BUFFER13: GLenum;\n    readonly DRAW_BUFFER14: GLenum;\n    readonly DRAW_BUFFER15: GLenum;\n    readonly DRAW_BUFFER2: GLenum;\n    readonly DRAW_BUFFER3: GLenum;\n    readonly DRAW_BUFFER4: GLenum;\n    readonly DRAW_BUFFER5: GLenum;\n    readonly DRAW_BUFFER6: GLenum;\n    readonly DRAW_BUFFER7: GLenum;\n    readonly DRAW_BUFFER8: GLenum;\n    readonly DRAW_BUFFER9: GLenum;\n    readonly DRAW_FRAMEBUFFER: GLenum;\n    readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n    readonly DYNAMIC_COPY: GLenum;\n    readonly DYNAMIC_READ: GLenum;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n    readonly FLOAT_MAT2x3: GLenum;\n    readonly FLOAT_MAT2x4: GLenum;\n    readonly FLOAT_MAT3x2: GLenum;\n    readonly FLOAT_MAT3x4: GLenum;\n    readonly FLOAT_MAT4x2: GLenum;\n    readonly FLOAT_MAT4x3: GLenum;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n    readonly FRAMEBUFFER_DEFAULT: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n    readonly HALF_FLOAT: GLenum;\n    readonly INTERLEAVED_ATTRIBS: GLenum;\n    readonly INT_2_10_10_10_REV: GLenum;\n    readonly INT_SAMPLER_2D: GLenum;\n    readonly INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly INT_SAMPLER_3D: GLenum;\n    readonly INT_SAMPLER_CUBE: GLenum;\n    readonly INVALID_INDEX: GLenum;\n    readonly MAX: GLenum;\n    readonly MAX_3D_TEXTURE_SIZE: GLenum;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n    readonly MAX_COLOR_ATTACHMENTS: GLenum;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_DRAW_BUFFERS: GLenum;\n    readonly MAX_ELEMENTS_INDICES: GLenum;\n    readonly MAX_ELEMENTS_VERTICES: GLenum;\n    readonly MAX_ELEMENT_INDEX: GLenum;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly MAX_SAMPLES: GLenum;\n    readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n    readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n    readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n    readonly MAX_VARYING_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MIN: GLenum;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly OBJECT_TYPE: GLenum;\n    readonly PACK_ROW_LENGTH: GLenum;\n    readonly PACK_SKIP_PIXELS: GLenum;\n    readonly PACK_SKIP_ROWS: GLenum;\n    readonly PIXEL_PACK_BUFFER: GLenum;\n    readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n    readonly PIXEL_UNPACK_BUFFER: GLenum;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n    readonly QUERY_RESULT: GLenum;\n    readonly QUERY_RESULT_AVAILABLE: GLenum;\n    readonly R11F_G11F_B10F: GLenum;\n    readonly R16F: GLenum;\n    readonly R16I: GLenum;\n    readonly R16UI: GLenum;\n    readonly R32F: GLenum;\n    readonly R32I: GLenum;\n    readonly R32UI: GLenum;\n    readonly R8: GLenum;\n    readonly R8I: GLenum;\n    readonly R8UI: GLenum;\n    readonly R8_SNORM: GLenum;\n    readonly RASTERIZER_DISCARD: GLenum;\n    readonly READ_BUFFER: GLenum;\n    readonly READ_FRAMEBUFFER: GLenum;\n    readonly READ_FRAMEBUFFER_BINDING: GLenum;\n    readonly RED: GLenum;\n    readonly RED_INTEGER: GLenum;\n    readonly RENDERBUFFER_SAMPLES: GLenum;\n    readonly RG: GLenum;\n    readonly RG16F: GLenum;\n    readonly RG16I: GLenum;\n    readonly RG16UI: GLenum;\n    readonly RG32F: GLenum;\n    readonly RG32I: GLenum;\n    readonly RG32UI: GLenum;\n    readonly RG8: GLenum;\n    readonly RG8I: GLenum;\n    readonly RG8UI: GLenum;\n    readonly RG8_SNORM: GLenum;\n    readonly RGB10_A2: GLenum;\n    readonly RGB10_A2UI: GLenum;\n    readonly RGB16F: GLenum;\n    readonly RGB16I: GLenum;\n    readonly RGB16UI: GLenum;\n    readonly RGB32F: GLenum;\n    readonly RGB32I: GLenum;\n    readonly RGB32UI: GLenum;\n    readonly RGB8: GLenum;\n    readonly RGB8I: GLenum;\n    readonly RGB8UI: GLenum;\n    readonly RGB8_SNORM: GLenum;\n    readonly RGB9_E5: GLenum;\n    readonly RGBA16F: GLenum;\n    readonly RGBA16I: GLenum;\n    readonly RGBA16UI: GLenum;\n    readonly RGBA32F: GLenum;\n    readonly RGBA32I: GLenum;\n    readonly RGBA32UI: GLenum;\n    readonly RGBA8: GLenum;\n    readonly RGBA8I: GLenum;\n    readonly RGBA8UI: GLenum;\n    readonly RGBA8_SNORM: GLenum;\n    readonly RGBA_INTEGER: GLenum;\n    readonly RGB_INTEGER: GLenum;\n    readonly RG_INTEGER: GLenum;\n    readonly SAMPLER_2D_ARRAY: GLenum;\n    readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n    readonly SAMPLER_2D_SHADOW: GLenum;\n    readonly SAMPLER_3D: GLenum;\n    readonly SAMPLER_BINDING: GLenum;\n    readonly SAMPLER_CUBE_SHADOW: GLenum;\n    readonly SEPARATE_ATTRIBS: GLenum;\n    readonly SIGNALED: GLenum;\n    readonly SIGNED_NORMALIZED: GLenum;\n    readonly SRGB: GLenum;\n    readonly SRGB8: GLenum;\n    readonly SRGB8_ALPHA8: GLenum;\n    readonly STATIC_COPY: GLenum;\n    readonly STATIC_READ: GLenum;\n    readonly STENCIL: GLenum;\n    readonly STREAM_COPY: GLenum;\n    readonly STREAM_READ: GLenum;\n    readonly SYNC_CONDITION: GLenum;\n    readonly SYNC_FENCE: GLenum;\n    readonly SYNC_FLAGS: GLenum;\n    readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n    readonly SYNC_STATUS: GLenum;\n    readonly TEXTURE_2D_ARRAY: GLenum;\n    readonly TEXTURE_3D: GLenum;\n    readonly TEXTURE_BASE_LEVEL: GLenum;\n    readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n    readonly TEXTURE_BINDING_3D: GLenum;\n    readonly TEXTURE_COMPARE_FUNC: GLenum;\n    readonly TEXTURE_COMPARE_MODE: GLenum;\n    readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n    readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n    readonly TEXTURE_MAX_LEVEL: GLenum;\n    readonly TEXTURE_MAX_LOD: GLenum;\n    readonly TEXTURE_MIN_LOD: GLenum;\n    readonly TEXTURE_WRAP_R: GLenum;\n    readonly TIMEOUT_EXPIRED: GLenum;\n    readonly TIMEOUT_IGNORED: GLint64;\n    readonly TRANSFORM_FEEDBACK: GLenum;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n    readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n    readonly UNIFORM_ARRAY_STRIDE: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n    readonly UNIFORM_BLOCK_BINDING: GLenum;\n    readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n    readonly UNIFORM_BLOCK_INDEX: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n    readonly UNIFORM_BUFFER: GLenum;\n    readonly UNIFORM_BUFFER_BINDING: GLenum;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n    readonly UNIFORM_BUFFER_SIZE: GLenum;\n    readonly UNIFORM_BUFFER_START: GLenum;\n    readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n    readonly UNIFORM_MATRIX_STRIDE: GLenum;\n    readonly UNIFORM_OFFSET: GLenum;\n    readonly UNIFORM_SIZE: GLenum;\n    readonly UNIFORM_TYPE: GLenum;\n    readonly UNPACK_IMAGE_HEIGHT: GLenum;\n    readonly UNPACK_ROW_LENGTH: GLenum;\n    readonly UNPACK_SKIP_IMAGES: GLenum;\n    readonly UNPACK_SKIP_PIXELS: GLenum;\n    readonly UNPACK_SKIP_ROWS: GLenum;\n    readonly UNSIGNALED: GLenum;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n    readonly UNSIGNED_INT_24_8: GLenum;\n    readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n    readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n    readonly UNSIGNED_INT_VEC2: GLenum;\n    readonly UNSIGNED_INT_VEC3: GLenum;\n    readonly UNSIGNED_INT_VEC4: GLenum;\n    readonly UNSIGNED_NORMALIZED: GLenum;\n    readonly VERTEX_ARRAY_BINDING: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n    readonly WAIT_FAILED: GLenum;\n}\n\ninterface WebGL2RenderingContextOverloads {\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): 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    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): 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    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\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\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer extends WebGLObject {\n}\n\ndeclare var WebGLBuffer: {\n    prototype: WebGLBuffer;\n    new(): WebGLBuffer;\n};\n\n/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */\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\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\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\n/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */\ninterface WebGLProgram extends WebGLObject {\n}\n\ndeclare var WebGLProgram: {\n    prototype: WebGLProgram;\n    new(): WebGLProgram;\n};\n\ninterface WebGLQuery extends WebGLObject {\n}\n\ndeclare var WebGLQuery: {\n    prototype: WebGLQuery;\n    new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer extends WebGLObject {\n}\n\ndeclare var WebGLRenderbuffer: {\n    prototype: WebGLRenderbuffer;\n    new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\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 | OffscreenCanvas;\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    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    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 | GLboolean): void;\n    polygonOffset(factor: GLfloat, units: GLfloat): 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    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): 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 WebGLRenderingContextOverloads {\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    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    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): 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    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    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): 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}\n\ninterface WebGLSampler extends WebGLObject {\n}\n\ndeclare var WebGLSampler: {\n    prototype: WebGLSampler;\n    new(): WebGLSampler;\n};\n\n/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */\ninterface WebGLShader extends WebGLObject {\n}\n\ndeclare var WebGLShader: {\n    prototype: WebGLShader;\n    new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\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 WebGLSync extends WebGLObject {\n}\n\ndeclare var WebGLSync: {\n    prototype: WebGLSync;\n    new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture extends WebGLObject {\n}\n\ndeclare var WebGLTexture: {\n    prototype: WebGLTexture;\n    new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback extends WebGLObject {\n}\n\ndeclare var WebGLTransformFeedback: {\n    prototype: WebGLTransformFeedback;\n    new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n    prototype: WebGLUniformLocation;\n    new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject extends WebGLObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n    prototype: WebGLVertexArrayObject;\n    new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES extends WebGLObject {\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\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\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\n/** Events that occur due to the user moving a mouse wheel or similar input device. */\ninterface WheelEvent extends MouseEvent {\n    readonly deltaMode: number;\n    readonly deltaX: number;\n    readonly deltaY: number;\n    readonly deltaZ: number;\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(type: 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    "deviceorientationabsolute": 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<Window>;\n    "ratechange": Event;\n    "readystatechange": ProgressEvent<Window>;\n    "reset": Event;\n    "resize": UIEvent;\n    "scroll": Event;\n    "seeked": Event;\n    "seeking": Event;\n    "select": Event;\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\n/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */\ninterface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, AnimationFrameProvider, WindowOrWorkerGlobalScope, WindowEventHandlers {\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    /** @deprecated */\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    ondeviceorientationabsolute: ((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<Window>) => 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 & typeof globalThis;\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 & typeof globalThis;\n    alert(message?: any): void;\n    blur(): 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 | null;\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    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    [index: number]: Window;\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\n/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */\ninterface Worker extends EventTarget, AbstractWorker {\n    onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: PostMessageOptions): 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 | URL, options?: WorkerOptions): 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\n/** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n    readonly locked: boolean;\n    abort(reason?: any): Promise<void>;\n    getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n    prototype: WritableStream;\n    new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n    error(error?: any): void;\n}\n\n/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */\ninterface WritableStreamDefaultWriter<W = any> {\n    readonly closed: Promise<void>;\n    readonly desiredSize: number | null;\n    readonly ready: Promise<void>;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    releaseLock(): void;\n    write(chunk: W): Promise<void>;\n}\n\n/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */\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\n/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */\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     * \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     * \n     * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n     * \n     * When set: setting to "document" is ignored if current global object is not a Window object.\n     * \n     * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n     * \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     * \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 request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n     * \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 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 to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n     * \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     * \n     * Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed.\n     * \n     * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n     * \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. (It does not actually change the header though.)\n     * \n     * Throws an "InvalidStateError" DOMException if state is loading or done.\n     */\n    overrideMimeType(mime: string): void;\n    /**\n     * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n     * \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     * \n     * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n     * \n     * Throws a "SyntaxError" DOMException if name is not a header name 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<XMLHttpRequestEventTarget>;\n    "error": ProgressEvent<XMLHttpRequestEventTarget>;\n    "load": ProgressEvent<XMLHttpRequestEventTarget>;\n    "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n    "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n    "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n    "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\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\n/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */\ninterface XMLSerializer {\n    serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n    prototype: XMLSerializer;\n    new(): XMLSerializer;\n};\n\n/** The XPathEvaluator interface allows to compile and evaluate XPath expressions. */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n    prototype: XPathEvaluator;\n    new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n    createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n    createNSResolver(nodeResolver: Node): XPathNSResolver;\n    evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */\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\n/** The results generated by evaluating an XPath expression within the context of a given node. */\ninterface XPathResult {\n    readonly booleanValue: boolean;\n    readonly invalidIteratorState: boolean;\n    readonly numberValue: number;\n    readonly resultType: number;\n    readonly singleNodeValue: Node | null;\n    readonly snapshotLength: number;\n    readonly stringValue: string;\n    iterateNext(): Node | null;\n    snapshotItem(index: number): Node | null;\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\n/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */\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\ndeclare namespace WebAssembly {\n    interface CompileError {\n    }\n    \n    var CompileError: {\n        prototype: CompileError;\n        new(): CompileError;\n    };\n    \n    interface Global {\n        value: any;\n        valueOf(): any;\n    }\n    \n    var Global: {\n        prototype: Global;\n        new(descriptor: GlobalDescriptor, value?: any): Global;\n    };\n    \n    interface Instance {\n        readonly exports: any;\n    }\n    \n    var Instance: {\n        prototype: Instance;\n        new(module: Module, importObject?: any): Instance;\n    };\n    \n    interface LinkError {\n    }\n    \n    var LinkError: {\n        prototype: LinkError;\n        new(): LinkError;\n    };\n    \n    interface Memory {\n        readonly buffer: ArrayBuffer;\n        grow(delta: number): number;\n    }\n    \n    var Memory: {\n        prototype: Memory;\n        new(descriptor: MemoryDescriptor): Memory;\n    };\n    \n    interface Module {\n    }\n    \n    var Module: {\n        prototype: Module;\n        new(bytes: BufferSource): Module;\n        customSections(module: Module, sectionName: string): ArrayBuffer[];\n        exports(module: Module): ModuleExportDescriptor[];\n        imports(module: Module): ModuleImportDescriptor[];\n    };\n    \n    interface RuntimeError {\n    }\n    \n    var RuntimeError: {\n        prototype: RuntimeError;\n        new(): RuntimeError;\n    };\n    \n    interface Table {\n        readonly length: number;\n        get(index: number): Function | null;\n        grow(delta: number): number;\n        set(index: number, value: Function | null): void;\n    }\n    \n    var Table: {\n        prototype: Table;\n        new(descriptor: TableDescriptor): Table;\n    };\n    \n    interface GlobalDescriptor {\n        mutable?: boolean;\n        value: string;\n    }\n    \n    interface MemoryDescriptor {\n        initial: number;\n        maximum?: number;\n    }\n    \n    interface ModuleExportDescriptor {\n        kind: ImportExportKind;\n        name: string;\n    }\n    \n    interface ModuleImportDescriptor {\n        kind: ImportExportKind;\n        module: string;\n        name: string;\n    }\n    \n    interface TableDescriptor {\n        element: TableKind;\n        initial: number;\n        maximum?: number;\n    }\n    \n    interface WebAssemblyInstantiatedSource {\n        instance: Instance;\n        module: Module;\n    }\n    \n    type ImportExportKind = "function" | "table" | "memory" | "global";\n    type TableKind = "anyfunc";\n    function compile(bytes: BufferSource): Promise<Module>;\n    function instantiate(bytes: BufferSource, importObject?: any): Promise<WebAssemblyInstantiatedSource>;\n    function instantiate(moduleObject: Module, importObject?: any): Promise<Instance>;\n    function validate(bytes: BufferSource): boolean;\n}\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 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?: Error): 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 QueuingStrategySizeCallback<T = any> {\n    (chunk: T): number;\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 ReadableByteStreamControllerCallback {\n    (controller: ReadableByteStreamController): void | PromiseLike<void>;\n}\n\ninterface ReadableStreamDefaultControllerCallback<R> {\n    (controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;\n}\n\ninterface ReadableStreamErrorCallback {\n    (reason: any): void | PromiseLike<void>;\n}\n\ninterface TransformStreamDefaultControllerCallback<O> {\n    (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformStreamDefaultControllerTransformCallback<I, O> {\n    (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface VoidFunction {\n    (): void;\n}\n\ninterface WritableStreamDefaultControllerCloseCallback {\n    (): void | PromiseLike<void>;\n}\n\ninterface WritableStreamDefaultControllerStartCallback {\n    (controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface WritableStreamDefaultControllerWriteCallback<W> {\n    (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface WritableStreamErrorCallback {\n    (reason: any): void | PromiseLike<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    "bdi": HTMLElement;\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    "main": HTMLElement;\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    "rp": HTMLElement;\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    "summary": 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    "a": SVGAElement;\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    "script": SVGScriptElement;\n    "stop": SVGStopElement;\n    "style": SVGStyleElement;\n    "svg": SVGSVGElement;\n    "switch": SVGSwitchElement;\n    "symbol": SVGSymbolElement;\n    "text": SVGTextElement;\n    "textPath": SVGTextPathElement;\n    "title": SVGTitleElement;\n    "tspan": SVGTSpanElement;\n    "use": SVGUseElement;\n    "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\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 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;\n/** @deprecated */\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 ondeviceorientationabsolute: ((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<Window>) => 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 & typeof globalThis;\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 & typeof globalThis;\ndeclare function alert(message?: any): void;\ndeclare function blur(): 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 | null;\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 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 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: MouseEvent) => 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: OnErrorEventHandler;\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: Event) => 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: Event) => any) | null;\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectstart: ((this: Window, ev: Event) => 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 cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\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 HeadersInit = Headers | string[][] | Record<string, string>;\ntype BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;\ntype RequestInfo = Request | string;\ntype BlobPart = BufferSource | Blob | string;\ntype DOMHighResTimeStamp = number;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\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 ConstrainULong = number | ConstrainULongRange;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype PerformanceEntryList = PerformanceEntry[];\ntype VibratePattern = number | number[];\ntype COSEAlgorithmIdentifier = number;\ntype AuthenticatorSelectionList = AAGUID[];\ntype AAGUID = BufferSource;\ntype AuthenticationExtensionsSupported = string[];\ntype UvmEntry = number[];\ntype UvmEntries = UvmEntry[];\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 | OffscreenCanvas;\ntype Float32List = Float32Array | GLfloat[];\ntype Int32List = Int32Array | GLint[];\ntype GLint64 = number;\ntype GLuint64 = number;\ntype Uint32List = Uint32Array | GLuint[];\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 IDBKeyPath = string;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;\ntype RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;\n/** @deprecated */\ntype MouseWheelEvent = WheelEvent;\ntype WindowProxy = Window;\ntype AlignSetting = "start" | "center" | "end" | "left" | "right";\ntype AnimationPlayState = "idle" | "running" | "paused" | "finished";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "none" | "indirect" | "direct";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "suspended" | "running" | "closed";\ntype AuthenticatorAttachment = "platform" | "cross-platform";\ntype AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";\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 CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";\ntype CredentialMediationRequirement = "silent" | "optional" | "required";\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 EndingType = "transparent" | "native";\ntype FillMode = "none" | "forwards" | "backwards" | "both" | "auto";\ntype FullscreenNavigationUI = "auto" | "show" | "hide";\ntype GamepadHand = "" | "left" | "right";\ntype GamepadHapticActuatorType = "vibration";\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";\ntype MediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "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 OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";\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 PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camera" | "microphone" | "speaker" | "device-info" | "background-sync" | "bluetooth" | "persistent-storage" | "ambient-light-sensor" | "accelerometer" | "gyroscope" | "magnetometer" | "clipboard";\ntype PermissionState = "granted" | "denied" | "prompt";\ntype PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";\ntype PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";\ntype PublicKeyCredentialType = "public-key";\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" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-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" | "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 UserVerificationRequirement = "required" | "preferred" | "discouraged";\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/*! *****************************************************************************\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/*! *****************************************************************************\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'},xn={NAME:"defaultLib:lib.es6.d.ts",CONTENTS:'/*! *****************************************************************************\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/*! *****************************************************************************\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/*! *****************************************************************************\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 var NaN: number;\ndeclare var 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 | number | boolean): 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 string 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: object): string[];\n}\n\n/**\n  * Provides functionality common to all JavaScript objects.\n  */\ndeclare var 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 var Function: FunctionConstructor;\n\n/**\n * Extracts the type of the \'this\' parameter of a function type, or \'unknown\' if the function type has no \'this\' parameter.\n */\ntype ThisParameterType<T> = T extends (this: unknown, ...args: any[]) => any ? unknown : T extends (this: infer U, ...args: any[]) => any ? U : unknown;\n\n/**\n * Removes the \'this\' parameter from a function type.\n */\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\n\ninterface CallableFunction extends Function {\n    /**\n      * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args An array of argument values to be passed to the function.\n      */\n    apply<T, R>(this: (this: T) => R, thisArg: T): R;\n    apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\n\n    /**\n      * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args Argument values to be passed to the function.\n      */\n    call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\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 The object to be used as the this object.\n      * @param args Arguments to bind to the parameters of the function.\n      */\n    bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\n    bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;\n    bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;\n    bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;\n    bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;\n    bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;\n}\n\ninterface NewableFunction extends Function {\n    /**\n      * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args An array of argument values to be passed to the function.\n      */\n    apply<T>(this: new () => T, thisArg: T): void;\n    apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\n\n    /**\n      * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n      * @param thisArg The object to be used as the this object.\n      * @param args Argument values to be passed to the function.\n      */\n    call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\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 The object to be used as the this object.\n      * @param args Arguments to bind to the parameters of the function.\n      */\n    bind<T>(this: T, thisArg: any): T;\n    bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;\n    bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;\n    bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;\n    bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;\n    bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;\n}\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 var 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    <T>(value?: T): boolean;\n    readonly prototype: Boolean;\n}\n\ndeclare var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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?: (this: any, key: string, 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?: (this: any, 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 var 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>) => unknown, 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>) => unknown, 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>) => unknown, 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[]) => unknown, 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[]) => unknown, 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[]) => unknown, 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 var 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 whose keys are in the union 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 * Construct a type with the properties of T except for those in type K.\n */\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\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 var 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 var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare var 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      */\n    from(arrayLike: ArrayLike<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<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare var 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/*! *****************************************************************************\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[]) => unknown, 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[]) => unknown, 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 the names of the enumerable string 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     * 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>) => unknown, 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>) => unknown, 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 | string, flags?: string): RegExp;\n    (pattern: RegExp | string, 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/*! *****************************************************************************\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(): Map<any, any>;\n    new<K, V>(entries?: ReadonlyArray<readonly [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/*! *****************************************************************************\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/*! *****************************************************************************\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/*! *****************************************************************************\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;\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 IteratorYieldResult<TYield> {\n    done?: false;\n    value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n    done: true;\n    value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n    // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n    return?(value?: TReturn): IteratorResult<T, TReturn>;\n    throw?(e?: any): IteratorResult<T, TReturn>;\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<readonly [K, V]>): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n    new <K extends object, V>(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> | null): 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\ninterface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n    // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n    return(value: TReturn): IteratorResult<T, TReturn>;\n    throw(e: any): IteratorResult<T, TReturn>;\n    [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\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/*! *****************************************************************************\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<T>(values: T[]): Promise<T extends PromiseLike<infer U> ? U : 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 iterable of Promises.\n     * @returns A new Promise.\n     */\n    race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : 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/*! *****************************************************************************\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/*! *****************************************************************************\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;\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 IteratorYieldResult<TYield> {\n    done?: false;\n    value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n    done: true;\n    value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n    // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n    return?(value?: TReturn): IteratorResult<T, TReturn>;\n    throw?(e?: any): IteratorResult<T, TReturn>;\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<readonly [K, V]>): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n    new <K extends object, V>(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> | null): 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/*! *****************************************************************************\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/*! *****************************************************************************\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/*! *****************************************************************************\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;/*! *****************************************************************************\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/*! *****************************************************************************\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;\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]: string;\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]: string;\n}\n\ninterface WeakMap<K extends object, V> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends object> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface JSON {\n    readonly [Symbol.toStringTag]: string;\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]: string;\n}\n\ninterface Math {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Promise<T> {\n    readonly [Symbol.toStringTag]: string;\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]: string;\n}\n\ninterface DataView {\n    readonly [Symbol.toStringTag]: string;\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}/*! *****************************************************************************\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 AuthenticationExtensionsClientInputs {\n    appid?: string;\n    authnSel?: AuthenticatorSelectionList;\n    exts?: boolean;\n    loc?: boolean;\n    txAuthGeneric?: txAuthGenericArg;\n    txAuthSimple?: string;\n    uvi?: boolean;\n    uvm?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n    appid?: boolean;\n    authnSel?: boolean;\n    exts?: AuthenticationExtensionsSupported;\n    loc?: Coordinates;\n    txAuthGeneric?: ArrayBuffer;\n    txAuthSimple?: string;\n    uvi?: ArrayBuffer;\n    uvm?: UvmEntries;\n}\n\ninterface AuthenticatorSelectionCriteria {\n    authenticatorAttachment?: AuthenticatorAttachment;\n    requireResidentKey?: boolean;\n    userVerification?: UserVerificationRequirement;\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    endings?: EndingType;\n    type?: string;\n}\n\ninterface ByteLengthChunk {\n    byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n    ignoreMethod?: boolean;\n    ignoreSearch?: boolean;\n    ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n    alpha?: boolean;\n    desynchronized?: 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 ClipboardEventInit extends EventInit {\n    clipboardData?: DataTransfer | null;\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 {\n    composite: CompositeOperationOrAuto;\n    computedOffset: number;\n    easing: string;\n    offset: number | null;\n    [property: string]: string | number | null | undefined;\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 ConstrainULongRange extends ULongRange {\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 CredentialCreationOptions {\n    publicKey?: PublicKeyCredentialCreationOptions;\n    signal?: AbortSignal;\n}\n\ninterface CredentialRequestOptions {\n    mediation?: CredentialMediationRequirement;\n    publicKey?: PublicKeyCredentialRequestOptions;\n    signal?: AbortSignal;\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 DeviceLightEventInit extends EventInit {\n    value?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n    x?: number | null;\n    y?: number | null;\n    z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n    acceleration?: DeviceMotionEventAccelerationInit;\n    accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n    interval?: number;\n    rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n    alpha?: number | null;\n    beta?: number | null;\n    gamma?: number | 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 DevicePermissionDescriptor extends PermissionDescriptor {\n    deviceId?: string;\n    name: "camera" | "microphone" | "speaker";\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 ElementCreationOptions {\n    is?: string;\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    modifierScrollLock?: boolean;\n    modifierSuper?: boolean;\n    modifierSymbol?: boolean;\n    modifierSymbolLock?: boolean;\n    shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n    withCredentials?: 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 FullscreenOptions {\n    navigationUI?: FullscreenNavigationUI;\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 ImageBitmapRenderingContextSettings {\n    alpha?: boolean;\n}\n\ninterface ImageEncodeOptions {\n    quality?: number;\n    type?: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n    data?: string | null;\n    inputType?: string;\n    isComposing?: boolean;\n}\n\ninterface IntersectionObserverEntryInit {\n    boundingClientRect: DOMRectInit;\n    intersectionRatio: number;\n    intersectionRect: DOMRectInit;\n    isIntersecting: boolean;\n    rootBounds: DOMRectInit | null;\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    isComposing?: boolean;\n    key?: string;\n    location?: number;\n    repeat?: boolean;\n}\n\ninterface Keyframe {\n    composite?: CompositeOperationOrAuto;\n    easing?: string;\n    offset?: number | null;\n    [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n    id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n    composite?: CompositeOperation;\n    iterationComposite?: IterationCompositeOperation;\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;\n    messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n    audioCapabilities?: MediaKeySystemMediaCapability[];\n    distinctiveIdentifier?: MediaKeysRequirement;\n    initDataTypes?: string[];\n    label?: string;\n    persistentState?: MediaKeysRequirement;\n    sessionTypes?: string[];\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;\n}\n\ninterface MediaTrackCapabilities {\n    aspectRatio?: DoubleRange;\n    autoGainControl?: boolean[];\n    channelCount?: ULongRange;\n    deviceId?: string;\n    echoCancellation?: boolean[];\n    facingMode?: string[];\n    frameRate?: DoubleRange;\n    groupId?: string;\n    height?: ULongRange;\n    latency?: DoubleRange;\n    noiseSuppression?: boolean[];\n    resizeMode?: string[];\n    sampleRate?: ULongRange;\n    sampleSize?: ULongRange;\n    width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n    aspectRatio?: ConstrainDouble;\n    autoGainControl?: ConstrainBoolean;\n    channelCount?: ConstrainULong;\n    deviceId?: ConstrainDOMString;\n    echoCancellation?: ConstrainBoolean;\n    facingMode?: ConstrainDOMString;\n    frameRate?: ConstrainDouble;\n    groupId?: ConstrainDOMString;\n    height?: ConstrainULong;\n    latency?: ConstrainDouble;\n    noiseSuppression?: ConstrainBoolean;\n    resizeMode?: ConstrainDOMString;\n    sampleRate?: ConstrainULong;\n    sampleSize?: ConstrainULong;\n    width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n    advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n    aspectRatio?: number;\n    autoGainControl?: boolean;\n    channelCount?: number;\n    deviceId?: string;\n    echoCancellation?: boolean;\n    facingMode?: string;\n    frameRate?: number;\n    groupId?: string;\n    height?: number;\n    latency?: number;\n    noiseSuppression?: boolean;\n    resizeMode?: string;\n    sampleRate?: number;\n    sampleSize?: number;\n    width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n    aspectRatio?: boolean;\n    autoGainControl?: boolean;\n    channelCount?: boolean;\n    deviceId?: boolean;\n    echoCancellation?: boolean;\n    facingMode?: boolean;\n    frameRate?: boolean;\n    groupId?: boolean;\n    height?: boolean;\n    latency?: boolean;\n    noiseSuppression?: boolean;\n    resizeMode?: boolean;\n    sampleRate?: boolean;\n    sampleSize?: 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 MidiPermissionDescriptor extends PermissionDescriptor {\n    name: "midi";\n    sysex?: boolean;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n    button?: number;\n    buttons?: number;\n    clientX?: number;\n    clientY?: number;\n    movementX?: number;\n    movementY?: number;\n    relatedTarget?: EventTarget | null;\n    screenX?: number;\n    screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n    cacheName?: string;\n}\n\ninterface MutationObserverInit {\n    /**\n     * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.\n     */\n    attributeFilter?: string[];\n    /**\n     * Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded.\n     */\n    attributeOldValue?: boolean;\n    /**\n     * Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.\n     */\n    attributes?: boolean;\n    /**\n     * Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified.\n     */\n    characterData?: boolean;\n    /**\n     * Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded.\n     */\n    characterDataOldValue?: boolean;\n    /**\n     * Set to true if mutations to target\'s children are to be observed.\n     */\n    childList?: boolean;\n    /**\n     * Set to true if mutations to not just target, but also target\'s descendants are to be observed.\n     */\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    type?: 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 PermissionDescriptor {\n    name: PermissionName;\n}\n\ninterface PipeOptions {\n    preventAbort?: boolean;\n    preventCancel?: boolean;\n    preventClose?: boolean;\n    signal?: AbortSignal;\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 PostMessageOptions {\n    transfer?: any[];\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 {\n    composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n    easing?: string | string[];\n    offset?: number | (number | null)[];\n    [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n    attestation?: AttestationConveyancePreference;\n    authenticatorSelection?: AuthenticatorSelectionCriteria;\n    challenge: BufferSource;\n    excludeCredentials?: PublicKeyCredentialDescriptor[];\n    extensions?: AuthenticationExtensionsClientInputs;\n    pubKeyCredParams: PublicKeyCredentialParameters[];\n    rp: PublicKeyCredentialRpEntity;\n    timeout?: number;\n    user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n    id: BufferSource;\n    transports?: AuthenticatorTransport[];\n    type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n    icon?: string;\n    name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n    alg: COSEAlgorithmIdentifier;\n    type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n    allowCredentials?: PublicKeyCredentialDescriptor[];\n    challenge: BufferSource;\n    extensions?: AuthenticationExtensionsClientInputs;\n    rpId?: string;\n    timeout?: number;\n    userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n    id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n    displayName: string;\n    id: BufferSource;\n}\n\ninterface PushPermissionDescriptor extends PermissionDescriptor {\n    name: "push";\n    userVisibleOnly?: boolean;\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<T = any> {\n    highWaterMark?: number;\n    size?: QueuingStrategySizeCallback<T>;\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    /**\n     * A BodyInit object or null to set request\'s body.\n     */\n    body?: BodyInit | null;\n    /**\n     * A string indicating how the request will interact with the browser\'s cache to set request\'s cache.\n     */\n    cache?: RequestCache;\n    /**\n     * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials.\n     */\n    credentials?: RequestCredentials;\n    /**\n     * A Headers object, an object literal, or an array of two-item arrays to set request\'s headers.\n     */\n    headers?: HeadersInit;\n    /**\n     * A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity.\n     */\n    integrity?: string;\n    /**\n     * A boolean to set request\'s keepalive.\n     */\n    keepalive?: boolean;\n    /**\n     * A string to set request\'s method.\n     */\n    method?: string;\n    /**\n     * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode.\n     */\n    mode?: RequestMode;\n    /**\n     * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect.\n     */\n    redirect?: RequestRedirect;\n    /**\n     * A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer.\n     */\n    referrer?: string;\n    /**\n     * A referrer policy to set request\'s referrerPolicy.\n     */\n    referrerPolicy?: ReferrerPolicy;\n    /**\n     * An AbortSignal to set request\'s signal.\n     */\n    signal?: AbortSignal | null;\n    /**\n     * Can only be null. Used to disassociate request from any Window.\n     */\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 ShadowRootInit {\n    delegatesFocus?: boolean;\n    mode: ShadowRootMode;\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 TextEncoderEncodeIntoResult {\n    read?: number;\n    written?: number;\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 Transformer<I = any, O = any> {\n    flush?: TransformStreamDefaultControllerCallback<O>;\n    readableType?: undefined;\n    start?: TransformStreamDefaultControllerCallback<O>;\n    transform?: TransformStreamDefaultControllerTransformCallback<I, O>;\n    writableType?: undefined;\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 ULongRange {\n    max?: number;\n    min?: number;\n}\n\ninterface UnderlyingByteSource {\n    autoAllocateChunkSize?: number;\n    cancel?: ReadableStreamErrorCallback;\n    pull?: ReadableByteStreamControllerCallback;\n    start?: ReadableByteStreamControllerCallback;\n    type: "bytes";\n}\n\ninterface UnderlyingSink<W = any> {\n    abort?: WritableStreamErrorCallback;\n    close?: WritableStreamDefaultControllerCloseCallback;\n    start?: WritableStreamDefaultControllerStartCallback;\n    type?: undefined;\n    write?: WritableStreamDefaultControllerWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n    cancel?: ReadableStreamErrorCallback;\n    pull?: ReadableStreamDefaultControllerCallback<R>;\n    start?: ReadableStreamDefaultControllerCallback<R>;\n    type?: undefined;\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?: boolean;\n    antialias?: boolean;\n    depth?: boolean;\n    desynchronized?: boolean;\n    failIfMajorPerformanceCaveat?: boolean;\n    powerPreference?: WebGLPowerPreference;\n    premultipliedAlpha?: boolean;\n    preserveDrawingBuffer?: boolean;\n    stencil?: boolean;\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 WorkerOptions {\n    credentials?: RequestCredentials;\n    name?: string;\n    type?: WorkerType;\n}\n\ninterface WorkletOptions {\n    credentials?: RequestCredentials;\n}\n\ninterface txAuthGenericArg {\n    content: ArrayBuffer;\n    contentType: string;\n}\n\ninterface EventListener {\n    (evt: Event): void;\n}\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\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 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": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n    /**\n     * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n     */\n    readonly aborted: boolean;\n    onabort: ((this: AbortSignal, ev: Event) => 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    /**\n     * Returns true if range is collapsed, and false otherwise.\n     */\n    readonly collapsed: boolean;\n    /**\n     * Returns range\'s end node.\n     */\n    readonly endContainer: Node;\n    /**\n     * Returns range\'s end offset.\n     */\n    readonly endOffset: number;\n    /**\n     * Returns range\'s start node.\n     */\n    readonly startContainer: Node;\n    /**\n     * Returns range\'s start offset.\n     */\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\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\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\n/** Events providing information related to animations. */\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 AnimationFrameProvider {\n    cancelAnimationFrame(handle: number): void;\n    requestAnimationFrame(callback: FrameRequestCallback): number;\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<ApplicationCache>;\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<ApplicationCache>) => 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\n/** A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\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\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\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\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\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\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\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    resume(): Promise<void>;\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\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\ninterface AudioDestinationNode extends AudioNode {\n    readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n    prototype: AudioDestinationNode;\n    new(): AudioDestinationNode;\n};\n\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\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\n/** A generic interface for representing an audio processing module. Examples include: */\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\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\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\n/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. */\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\n/** A single audio track from one of the HTML media elements, <audio> or <video>.  */\ninterface AudioTrack {\n    enabled: boolean;\n    readonly id: string;\n    kind: string;\n    readonly label: string;\n    language: string;\n    readonly sourceBuffer: SourceBuffer | null;\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\n/** Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list. */\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 AuthenticatorAssertionResponse extends AuthenticatorResponse {\n    readonly authenticatorData: ArrayBuffer;\n    readonly signature: ArrayBuffer;\n    readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n    prototype: AuthenticatorAssertionResponse;\n    new(): AuthenticatorAssertionResponse;\n};\n\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n    readonly attestationObject: ArrayBuffer;\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n    prototype: AuthenticatorAttestationResponse;\n    new(): AuthenticatorAttestationResponse;\n};\n\ninterface AuthenticatorResponse {\n    readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n    prototype: AuthenticatorResponse;\n    new(): AuthenticatorResponse;\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    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\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\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\n/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */\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\n/** A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system. */\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<Uint8Array> | 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\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n    highWaterMark: number;\n    size(chunk: ArrayBufferView): number;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n    prototype: ByteLengthQueuingStrategy;\n    new(options: { highWaterMark: number }): ByteLengthQueuingStrategy;\n};\n\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n    prototype: CDATASection;\n    new(): CDATASection;\n};\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ninterface CSS {\n    escape(value: string): string;\n    supports(property: string, value?: string): boolean;\n}\ndeclare var CSS: CSS;\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\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\n/** Any CSS at-rule that contains other rules nested within it. */\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\n/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */\ninterface CSSKeyframeRule extends CSSRule {\n    keyText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n    prototype: CSSKeyframeRule;\n    new(): CSSKeyframeRule;\n};\n\n/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */\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\n/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */\ninterface CSSMediaRule extends CSSConditionRule {\n    readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n    prototype: CSSMediaRule;\n    new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\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\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\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\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\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\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\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\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n    alignContent: string;\n    alignItems: string;\n    alignSelf: string;\n    alignmentBaseline: string | null;\n    animation: string;\n    animationDelay: string;\n    animationDirection: string;\n    animationDuration: string;\n    animationFillMode: string;\n    animationIterationCount: string;\n    animationName: string;\n    animationPlayState: string;\n    animationTimingFunction: string;\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;\n    breakAfter: string | null;\n    breakBefore: string | null;\n    breakInside: string | null;\n    captionSide: string | null;\n    caretColor: string;\n    clear: string | null;\n    clip: string;\n    clipPath: string;\n    clipRule: string;\n    color: string | null;\n    colorInterpolationFilters: string;\n    columnCount: string;\n    columnFill: string;\n    columnGap: string;\n    columnRule: string;\n    columnRuleColor: string;\n    columnRuleStyle: string;\n    columnRuleWidth: string;\n    columnSpan: string;\n    columnWidth: string;\n    columns: string;\n    content: string | null;\n    counterIncrement: string | null;\n    counterReset: string | null;\n    cssFloat: string | null;\n    cssText: string;\n    cursor: string;\n    direction: string;\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;\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;\n    floodOpacity: string;\n    font: string;\n    fontFamily: string;\n    fontFeatureSettings: string;\n    fontKerning: string;\n    fontSize: string;\n    fontSizeAdjust: string;\n    fontStretch: string;\n    fontStyle: string;\n    fontSynthesis: string;\n    fontVariant: string;\n    fontVariantCaps: string;\n    fontVariantEastAsian: string;\n    fontVariantLigatures: string;\n    fontVariantNumeric: string;\n    fontVariantPosition: string;\n    fontWeight: string;\n    gap: string;\n    glyphOrientationHorizontal: string | null;\n    glyphOrientationVertical: string;\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;\n    gridColumnStart: string | null;\n    gridGap: string;\n    gridRow: string | null;\n    gridRowEnd: string | null;\n    gridRowGap: string;\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    hyphens: string;\n    imageOrientation: string;\n    imageRendering: string;\n    imeMode: string | null;\n    justifyContent: string;\n    justifyItems: string;\n    justifySelf: string;\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;\n    lightingColor: string;\n    lineBreak: string;\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;\n    maskComposite: string;\n    maskImage: string;\n    maskPosition: string;\n    maskRepeat: string;\n    maskSize: string;\n    maskType: string;\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;\n    objectPosition: string;\n    opacity: string | null;\n    order: string | null;\n    orphans: string | null;\n    outline: string;\n    outlineColor: string;\n    outlineOffset: string;\n    outlineStyle: string;\n    outlineWidth: string;\n    overflow: string;\n    overflowAnchor: string;\n    overflowWrap: string;\n    overflowX: string;\n    overflowY: string;\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    placeContent: string;\n    placeItems: string;\n    placeSelf: string;\n    pointerEvents: string | null;\n    position: string | null;\n    quotes: string | null;\n    resize: string;\n    right: string | null;\n    rotate: string | null;\n    rowGap: string;\n    rubyAlign: string | null;\n    rubyOverhang: string | null;\n    rubyPosition: string | null;\n    scale: string | null;\n    scrollBehavior: string;\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    tabSize: string;\n    tableLayout: string | null;\n    textAlign: string;\n    textAlignLast: string;\n    textAnchor: string | null;\n    textCombineUpright: string;\n    textDecoration: string;\n    textDecorationColor: string;\n    textDecorationLine: string;\n    textDecorationStyle: string;\n    textEmphasis: string;\n    textEmphasisColor: string;\n    textEmphasisPosition: string;\n    textEmphasisStyle: string;\n    textIndent: string;\n    textJustify: string;\n    textKashida: string | null;\n    textKashidaSpace: string | null;\n    textOrientation: string;\n    textOverflow: string;\n    textShadow: string;\n    textTransform: string;\n    textUnderlinePosition: string;\n    top: string | null;\n    touchAction: string;\n    transform: string;\n    transformBox: string;\n    transformOrigin: string;\n    transformStyle: string | null;\n    transition: string;\n    transitionDelay: string;\n    transitionDuration: string;\n    transitionProperty: string;\n    transitionTimingFunction: string;\n    translate: string | null;\n    unicodeBidi: string;\n    userSelect: string;\n    verticalAlign: string | null;\n    visibility: string | null;\n    /** @deprecated */\n    webkitAlignContent: string;\n    /** @deprecated */\n    webkitAlignItems: string;\n    /** @deprecated */\n    webkitAlignSelf: string;\n    /** @deprecated */\n    webkitAnimation: string;\n    /** @deprecated */\n    webkitAnimationDelay: string;\n    /** @deprecated */\n    webkitAnimationDirection: string;\n    /** @deprecated */\n    webkitAnimationDuration: string;\n    /** @deprecated */\n    webkitAnimationFillMode: string;\n    /** @deprecated */\n    webkitAnimationIterationCount: string;\n    /** @deprecated */\n    webkitAnimationName: string;\n    /** @deprecated */\n    webkitAnimationPlayState: string;\n    /** @deprecated */\n    webkitAnimationTimingFunction: string;\n    /** @deprecated */\n    webkitAppearance: string;\n    /** @deprecated */\n    webkitBackfaceVisibility: string;\n    /** @deprecated */\n    webkitBackgroundClip: string;\n    /** @deprecated */\n    webkitBackgroundOrigin: string;\n    /** @deprecated */\n    webkitBackgroundSize: string;\n    /** @deprecated */\n    webkitBorderBottomLeftRadius: string;\n    /** @deprecated */\n    webkitBorderBottomRightRadius: string;\n    webkitBorderImage: string | null;\n    /** @deprecated */\n    webkitBorderRadius: string;\n    /** @deprecated */\n    webkitBorderTopLeftRadius: string;\n    /** @deprecated */\n    webkitBorderTopRightRadius: string;\n    /** @deprecated */\n    webkitBoxAlign: string;\n    webkitBoxDirection: string | null;\n    /** @deprecated */\n    webkitBoxFlex: string;\n    /** @deprecated */\n    webkitBoxOrdinalGroup: string;\n    webkitBoxOrient: string | null;\n    /** @deprecated */\n    webkitBoxPack: string;\n    /** @deprecated */\n    webkitBoxShadow: string;\n    /** @deprecated */\n    webkitBoxSizing: string;\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    /** @deprecated */\n    webkitFilter: string;\n    /** @deprecated */\n    webkitFlex: string;\n    /** @deprecated */\n    webkitFlexBasis: string;\n    /** @deprecated */\n    webkitFlexDirection: string;\n    /** @deprecated */\n    webkitFlexFlow: string;\n    /** @deprecated */\n    webkitFlexGrow: string;\n    /** @deprecated */\n    webkitFlexShrink: string;\n    /** @deprecated */\n    webkitFlexWrap: string;\n    /** @deprecated */\n    webkitJustifyContent: string;\n    webkitLineClamp: string;\n    /** @deprecated */\n    webkitMask: string;\n    /** @deprecated */\n    webkitMaskBoxImage: string;\n    /** @deprecated */\n    webkitMaskBoxImageOutset: string;\n    /** @deprecated */\n    webkitMaskBoxImageRepeat: string;\n    /** @deprecated */\n    webkitMaskBoxImageSlice: string;\n    /** @deprecated */\n    webkitMaskBoxImageSource: string;\n    /** @deprecated */\n    webkitMaskBoxImageWidth: string;\n    /** @deprecated */\n    webkitMaskClip: string;\n    /** @deprecated */\n    webkitMaskComposite: string;\n    /** @deprecated */\n    webkitMaskImage: string;\n    /** @deprecated */\n    webkitMaskOrigin: string;\n    /** @deprecated */\n    webkitMaskPosition: string;\n    /** @deprecated */\n    webkitMaskRepeat: string;\n    /** @deprecated */\n    webkitMaskSize: string;\n    /** @deprecated */\n    webkitOrder: string;\n    /** @deprecated */\n    webkitPerspective: string;\n    /** @deprecated */\n    webkitPerspectiveOrigin: string;\n    webkitTapHighlightColor: string | null;\n    /** @deprecated */\n    webkitTextFillColor: string;\n    /** @deprecated */\n    webkitTextSizeAdjust: string;\n    /** @deprecated */\n    webkitTextStroke: string;\n    /** @deprecated */\n    webkitTextStrokeColor: string;\n    /** @deprecated */\n    webkitTextStrokeWidth: string;\n    /** @deprecated */\n    webkitTransform: string;\n    /** @deprecated */\n    webkitTransformOrigin: string;\n    /** @deprecated */\n    webkitTransformStyle: string;\n    /** @deprecated */\n    webkitTransition: string;\n    /** @deprecated */\n    webkitTransitionDelay: string;\n    /** @deprecated */\n    webkitTransitionDuration: string;\n    /** @deprecated */\n    webkitTransitionProperty: string;\n    /** @deprecated */\n    webkitTransitionTimingFunction: string;\n    webkitUserModify: string | null;\n    webkitUserSelect: string | null;\n    webkitWritingMode: string | null;\n    whiteSpace: string;\n    widows: string | null;\n    width: string | null;\n    willChange: string;\n    wordBreak: string;\n    wordSpacing: string;\n    wordWrap: string;\n    writingMode: string;\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\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n    selectorText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n    prototype: CSSStyleRule;\n    new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\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\n/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n    prototype: CSSSupportsRule;\n    new(): CSSSupportsRule;\n};\n\n/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec. */\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\n/** The storage for Cache objects. */\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\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n    /**\n     * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n     * \n     * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if 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\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n    /**\n     * Sets the transformation matrix that will be used when rendering the pattern during a fill or 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\n/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */\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\n/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n    prototype: ChannelMergerNode;\n    new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n    prototype: ChannelSplitterNode;\n    new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren\'t any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren\'t abstract. */\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     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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 Clipboard extends EventTarget {\n    readText(): Promise<string>;\n    writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n    prototype: Clipboard;\n    new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n    readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n    prototype: ClipboardEvent;\n    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute. */\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\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n    prototype: Comment;\n    new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n    readonly data: string;\n}\n\ndeclare var CompositionEvent: {\n    prototype: CompositionEvent;\n    new(type: 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\n/** Provides access to the browser\'s debugging console (e.g. the Web Console in Firefox). The specifics of how it works varies from browser to browser, but there is a de facto set of features that are typically provided. */\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\n/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */\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\n/** The position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. */\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\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n    highWaterMark: number;\n    size(chunk: any): 1;\n}\n\ndeclare var CountQueuingStrategy: {\n    prototype: CountQueuingStrategy;\n    new(options: { highWaterMark: number }): CountQueuingStrategy;\n};\n\ninterface Credential {\n    readonly id: string;\n    readonly type: string;\n}\n\ndeclare var Credential: {\n    prototype: Credential;\n    new(): Credential;\n};\n\ninterface CredentialsContainer {\n    create(options?: CredentialCreationOptions): Promise<Credential | null>;\n    get(options?: CredentialRequestOptions): Promise<Credential | null>;\n    preventSilentAccess(): Promise<void>;\n    store(credential: Credential): Promise<Credential>;\n}\n\ndeclare var CredentialsContainer: {\n    prototype: CredentialsContainer;\n    new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\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\n/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */\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\n/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */\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. 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\n/** An error object that contains an error name. */\ninterface DOMError {\n    readonly name: string;\n    toString(): string;\n}\n\ndeclare var DOMError: {\n    prototype: DOMError;\n    new(): DOMError;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\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\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\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    /** @deprecated */\n    scaleNonUniform(scaleX?: number, scaleY?: 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\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\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\n/** A type returned by some APIs which contains a list of DOMString (strings). */\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 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\n/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n    [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n    prototype: DOMStringMap;\n    new(): DOMStringMap;\n};\n\n/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */\ninterface DOMTokenList {\n    /**\n     * Returns the number of tokens.\n     */\n    readonly length: number;\n    /**\n     * Returns the associated set as string.\n     * \n     * Can be set, to change the associated attribute.\n     */\n    value: string;\n    /**\n     * Adds all arguments passed, except those already present.\n     * \n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n     * \n     * Throws an "InvalidCharacterError" DOMException if one of the arguments 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     * Returns the token with index index.\n     */\n    item(index: number): string | null;\n    /**\n     * Removes arguments passed, if they are present.\n     * \n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n     * \n     * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n     */\n    remove(...tokens: string[]): void;\n    /**\n     * Replaces token with newToken.\n     * \n     * Returns true if token was replaced with newToken, and false otherwise.\n     * \n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n     * \n     * Throws an "InvalidCharacterError" DOMException if one of the arguments 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 false otherwise.\n     * \n     * Throws a TypeError if the associated attribute has no supported tokens defined.\n     */\n    supports(token: string): boolean;\n    /**\n     * If force is not given, "toggles" token, removing it if it\'s present and adding it if it\'s not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n     * \n     * Returns true if token is now present, and false otherwise.\n     * \n     * Throws a "SyntaxError" DOMException if token is empty.\n     * \n     * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n     */\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\n/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */\ninterface DataTransfer {\n    /**\n     * Returns the kind of operation that is currently selected. If the kind of operation isn\'t one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n     * \n     * Can be set, to change the selected operation.\n     * \n     * The possible values are "none", "copy", "link", and "move".\n     */\n    dropEffect: string;\n    /**\n     * Returns the kinds of operations that are to be allowed.\n     * \n     * Can be set (during the dragstart event), to change the allowed operations.\n     * \n     * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n     */\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 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 feedback.\n     */\n    setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n    prototype: DataTransfer;\n    new(): DataTransfer;\n};\n\n/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */\ninterface DataTransferItem {\n    /**\n     * Returns the drag data item kind, one of: "string", "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 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\n/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */\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 text then a type string has to be provided 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\n/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */\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\n/** Provides information about the amount of acceleration the device is experiencing along all three axes. */\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\n/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen\'s brightness based on the current ambient light level in order to save energy or provide better readability. */\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\n/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation. */\ninterface DeviceMotionEvent extends Event {\n    readonly acceleration: DeviceMotionEventAcceleration | null;\n    readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n    readonly interval: number;\n    readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n    prototype: DeviceMotionEvent;\n    new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\ninterface DeviceMotionEventAcceleration {\n    readonly x: number | null;\n    readonly y: number | null;\n    readonly z: number | null;\n}\n\ninterface DeviceMotionEventRotationRate {\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\n/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */\ninterface DeviceOrientationEvent extends Event {\n    readonly absolute: boolean;\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n    prototype: DeviceOrientationEvent;\n    new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\n/** Provides information about the rate at which the device is rotating around all three axes. */\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    "pointerlockchange": Event;\n    "pointerlockerror": Event;\n    "readystatechange": ProgressEvent<Document>;\n    "visibilitychange": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree. */\ninterface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, ParentNode, XPathEvaluatorBase, 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 cookies can\'t be applied to this resource, the empty string will be returned.\n     * \n     * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n     * \n     * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.\n     */\n    cookie: string;\n    /**\n     * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n     * \n     * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG 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;\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 and fullscreen is supported, or false otherwise.\n     */\n    readonly fullscreenEnabled: boolean;\n    /**\n     * Returns the head element.\n     */\n    readonly head: HTMLHeadElement;\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;\n    onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n    onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n    onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n    onpointerlockerror: ((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<Document>) => 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     * \n     * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "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    /** @deprecated */\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 ":" (U+003E) in qualifiedName or qualifiedName.\n     * \n     * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n     * \n     * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n     * \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 neither qualifiedName nor namespace prefix is "xmlns".\n     * \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<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\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: "InputEvent"): InputEvent;\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. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "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    /**\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): TreeWalker;\n    /** @deprecated */\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    /**\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 resolves promise when done.\n     */\n    exitFullscreen(): Promise<void>;\n    exitPointerLock(): 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     * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\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 "*" returns a HTMLCollection of all descendant elements.\n     * \n     * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n     * \n     * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n     * \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     * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n     */\n    getSelection(): Selection | null;\n    /**\n     * Gets a value indicating whether the object currently has focus.\n     */\n    hasFocus(): boolean;\n    /**\n     * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n     * \n     * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n     */\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    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: "InputEvent"): InputEvent;\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\n/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn\'t part of the active document tree structure, changes made to the fragment don\'t affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */\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     * Returns document\'s fullscreen element.\n     */\n    readonly fullscreenElement: Element | null;\n    readonly pointerLockElement: 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    caretPositionFromPoint(x: number, y: number): CaretPosition | null;\n    /** @deprecated */\n    caretRangeFromPoint(x: number, y: number): Range;\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\n/** A Node containing a doctype. */\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\n/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */\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\n/** Inherits properties from its parent, AudioNode. */\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: GLenum;\n    readonly MIN_EXT: GLenum;\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n    readonly SRGB8_ALPHA8_EXT: GLenum;\n    readonly SRGB_ALPHA_EXT: GLenum;\n    readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n    readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\ninterface ElementEventMap {\n    "fullscreenchange": Event;\n    "fullscreenerror": Event;\n}\n\n/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */\ninterface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, InnerHTML, Animatable {\n    readonly assignedSlot: HTMLSlotElement | null;\n    readonly attributes: NamedNodeMap;\n    /**\n     * Allows for manipulation of element\'s class content attribute as a 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 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 change it.\n     */\n    id: 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 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(init: 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<E extends Element = Element>(selector: string): E | 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 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. 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    /**\n     * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n     */\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     * When supplied, options\'s navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application\'s. The default value "auto" indicates no application preference.\n     */\n    requestFullscreen(options?: FullscreenOptions): Promise<void>;\n    requestPointerLock(): 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 present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n     * \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\n/** Events providing information related to errors in scripts or in files. */\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\n/** An event which takes place in the DOM. */\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    /**\n     * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n     */\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 invoked.\n     */\n    readonly currentTarget: EventTarget | null;\n    /**\n     * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n     */\n    readonly defaultPrevented: boolean;\n    /**\n     * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n     */\n    readonly eventPhase: number;\n    /**\n     * Returns true if event was dispatched by the user agent, and false otherwise.\n     */\n    readonly isTrusted: boolean;\n    returnValue: boolean;\n    /** @deprecated */\n    readonly srcElement: EventTarget | 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 the time origin.\n     */\n    readonly timeStamp: number;\n    /**\n     * Returns the type of event, e.g. "click", "hashchange", or "submit".\n     */\n    readonly type: string;\n    /**\n     * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n     */\n    composedPath(): EventTarget[];\n    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n    /**\n     * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n     */\n    preventDefault(): void;\n    /**\n     * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any 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 EventSourceEventMap {\n    "error": Event;\n    "message": MessageEvent;\n    "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n    onerror: ((this: EventSource, ev: Event) => any) | null;\n    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n    onopen: ((this: EventSource, ev: Event) => any) | null;\n    /**\n     * Returns the state of this EventSource object\'s connection. It can have the values described below.\n     */\n    readonly readyState: number;\n    /**\n     * Returns the URL providing the event stream.\n     */\n    readonly url: string;\n    /**\n     * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n     */\n    readonly withCredentials: boolean;\n    /**\n     * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n     */\n    close(): void;\n    readonly CLOSED: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n    addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n    prototype: EventSource;\n    new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;\n    readonly CLOSED: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\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     * \n     * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n     * \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     * \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     * \n     * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n     * \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 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\ndeclare var External: {\n    prototype: External;\n    new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\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\n/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\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<FileReader>;\n    "error": ProgressEvent<FileReader>;\n    "load": ProgressEvent<FileReader>;\n    "loadend": ProgressEvent<FileReader>;\n    "loadstart": ProgressEvent<FileReader>;\n    "progress": ProgressEvent<FileReader>;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n    readonly error: DOMException | null;\n    onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => 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, encoding?: 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\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n    readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n    prototype: FocusEvent;\n    new(type: 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\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */\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\n/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */\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\n/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */\ninterface Gamepad {\n    readonly axes: ReadonlyArray<number>;\n    readonly buttons: ReadonlyArray<GamepadButton>;\n    readonly connected: boolean;\n    readonly hand: GamepadHand;\n    readonly hapticActuators: ReadonlyArray<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\n/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */\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\n/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */\ninterface GamepadEvent extends Event {\n    readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n    prototype: GamepadEvent;\n    new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\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\n/** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */\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 GenericTransformStream {\n    /**\n     * Returns a readable stream whose chunks are strings resulting from running encoding\'s decoder on the chunks written to writable.\n     */\n    readonly readable: ReadableStream;\n    /**\n     * Returns a writable stream which accepts BufferSource chunks and runs them through encoding\'s decoder before making them available to readable.\n     * \n     * Typically this will be used via the pipeThrough() method on a ReadableStream source.\n     * \n     * ```\n     * var decoder = new TextDecoderStream(encoding);\n     * byteReadable\n     *   .pipeThrough(decoder)\n     *   .pipeTo(textWritable);\n     * ```\n     * \n     * If the error mode is "fatal" and encoding\'s decoder returns error, both readable and writable will be errored with a TypeError.\n     */\n    readonly writable: WritableStream;\n}\n\n/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user\'s location. */\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 GlobalEventHandlersEventMap {\n    "abort": UIEvent;\n    "animationcancel": AnimationEvent;\n    "animationend": AnimationEvent;\n    "animationiteration": AnimationEvent;\n    "animationstart": AnimationEvent;\n    "auxclick": MouseEvent;\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    "focusin": FocusEvent;\n    "focusout": 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": Event;\n    "securitypolicyviolation": SecurityPolicyViolationEvent;\n    "seeked": Event;\n    "seeking": Event;\n    "select": Event;\n    "selectionchange": Event;\n    "selectstart": Event;\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: MouseEvent) => 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: OnErrorEventHandler;\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: Event) => 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: Event) => any) | null;\n    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onselectstart: ((this: GlobalEventHandlers, ev: Event) => 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 HTMLAllCollection {\n    /**\n     * Returns the number of elements in the collection.\n     */\n    readonly length: number;\n    /**\n     * Returns the item with index index from the collection (determined by tree order).\n     */\n    item(nameOrIndex?: string): HTMLCollection | Element | null;\n    /**\n     * Returns the item with ID or name name from the collection.\n     * \n     * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n     * \n     * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\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\n/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */\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\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */\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\n/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */\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\n/** A HTML line break element (<br>). It inherits from HTMLElement. */\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\n/** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements. */\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\n/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */\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\n/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */\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\n/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */\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", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n    getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n    getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n    getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n    getContext(contextId: string, options?: any): RenderingContext | 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    transferControlToOffscreen(): OffscreenCanvas;\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\n/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */\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\n/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */\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\n/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */\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\n/** The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object. */\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\n/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */\ninterface HTMLEmbedElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: string;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    /** @deprecated */\n    name: string;\n    /**\n     * Sets or retrieves a URL to be loaded by the object.\n     */\n    src: string;\n    type: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: string;\n    getSVGDocument(): Document | null;\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */\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\n/** Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text. */\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\n/** A collection of HTML form control elements.  */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n    /**\n     * Returns the item with ID or name name from the collection.\n     * \n     * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n     */\n    namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n    prototype: HTMLFormControlsCollection;\n    new(): HTMLFormControlsCollection;\n};\n\n/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */\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\n/** Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. */\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\n/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */\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\n/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */\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\n/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */\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\n/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */\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\n/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */\ninterface HTMLIFrameElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    allow: 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: 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 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    referrerPolicy: ReferrerPolicy;\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    getSVGDocument(): Document | null;\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\n/** Provides special properties and methods for manipulating <img> elements. */\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\n/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */\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    /**\n     * Returns a Date object representing the form control\'s value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn\'t date- or time-based.\n     */\n    valueAsDate: Date | null;\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\n/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */\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\n/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */\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\n/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */\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\n/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */\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    imageSizes: string;\n    imageSrcset: 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\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */\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\n/** Provides methods to manipulate <marquee> elements. */\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    "waitingforkey": Event;\n}\n\n/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */\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    onwaitingforkey: ((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 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\n/** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */\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\n/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */\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\n/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */\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\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */\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\n/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */\ninterface HTMLObjectElement extends HTMLElement {\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    readonly contentWindow: WindowProxy | 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     * Sets or retrieves the name of the object.\n     */\n    name: string;\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    /**\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    getSVGDocument(): Document | null;\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\n/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */\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\n/** <option> elements and inherits all classes and methods of the HTMLElement interface. */\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\n/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n    /**\n     * Returns the number of elements in the collection.\n     * \n     * When set to a smaller number, truncates the number of option elements in the corresponding container.\n     * \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 item.\n     * \n     * Can be set, to change the selection.\n     */\n    selectedIndex: number;\n    /**\n     * Inserts element before the node given by before.\n     * \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 collection, in which case element is inserted before that element.\n     * \n     * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n     * \n     * This method will throw a "HierarchyRequestError" DOMException if 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\n/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */\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\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */\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\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */\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\n/** A <picture> HTML element. It doesn\'t implement specific properties or methods. */\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\n/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */\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\n/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */\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\n/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */\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\n/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */\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\n/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\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\n/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */\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\n/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */\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\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */\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\n/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */\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\n/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */\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\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */\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\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */\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\n/** Enables access to the contents of an HTML <template> element. */\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\n/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */\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\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */\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\n/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */\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\n/** The HTMLTrackElement */\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\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */\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\n/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\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\n/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */\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\n/** Events that fire when the fragment identifier of the URL has changed. */\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\n/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */\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\n/** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */\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\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n    /**\n     * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n     */\n    readonly direction: IDBCursorDirection;\n    /**\n     * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n     */\n    readonly key: IDBValidKey;\n    /**\n     * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n     */\n    readonly primaryKey: IDBValidKey;\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 range.\n     */\n    advance(count: number): void;\n    /**\n     * Advances the cursor to the next record in range.\n     */\n    continue(key?: IDBValidKey): void;\n    /**\n     * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n     */\n    continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n    /**\n     * Delete the record pointed at by the cursor with a new value.\n     * \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     * \n     * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n     * \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\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */\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\n/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */\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     * \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     * \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") 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\n/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBFactory {\n    /**\n     * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n     * \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 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 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 current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection.\n     */\n    open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n    prototype: IDBFactory;\n    new(): IDBFactory;\n};\n\n/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */\ninterface IDBIndex {\n    readonly keyPath: string | string[];\n    readonly multiEntry: boolean;\n    /**\n     * Returns the name of the index.\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     * \n     * If successful, request\'s result will be the count.\n     */\n    count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     * \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     * \n     * If successful, request\'s result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     * \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, ordered by direction. If query is null, all records in index are matched.\n     * \n     * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n     */\n    openCursor(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n    prototype: IDBIndex;\n    new(): IDBIndex;\n};\n\n/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */\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. If lowerOpen is true, lower is not included in the range. 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 upper bound. If open is true, key is not included in the 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\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */\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     * Returns the name of the store.\n     */\n    name: string;\n    /**\n     * Returns the associated transaction.\n     */\n    readonly transaction: IDBTransaction;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     * \n     * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n     * \n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n     * \n     * If successful, request\'s result will be the record\'s key.\n     */\n    add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n    /**\n     * Deletes all records in store.\n     * \n     * If successful, request\'s result will be undefined.\n     */\n    clear(): IDBRequest<undefined>;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     * \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 satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n     * \n     * Throws an "InvalidStateError" DOMException if not called within an upgrade 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     * \n     * If successful, request\'s result will be undefined.\n     */\n    delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n    /**\n     * Deletes the index in store with the given name.\n     * \n     * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n     */\n    deleteIndex(name: string): void;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     * \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 given key or key range in query (up to count if given).\n     * \n     * If successful, request\'s result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     * \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, ordered by direction. If query is null, all records in store are matched.\n     * \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(query?: IDBValidKey | IDBKeyRange | null, 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     * \n     * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     * \n     * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n     * \n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n     * \n     * If successful, request\'s result will be the record\'s key.\n     */\n    put(value: any, key?: IDBValidKey): 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\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\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\n/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */\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 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, then returns "done".\n     */\n    readonly readyState: IDBRequestReadyState;\n    /**\n     * When a request is completed, returns the result, or undefined if the request failed. Throws a "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 request.\n     */\n    readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n    /**\n     * Returns the IDBTransaction the request was made within. 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 error (a DOMException) providing the reason.\n     */\n    readonly error: DOMException;\n    /**\n     * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n     */\n    readonly mode: IDBTransactionMode;\n    /**\n     * Returns a list of the names of object stores in the 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 a "AbortError" DOMException and all changes made to the database will be 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\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\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\n/** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR)  filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */\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 pixels.\n     */\n    readonly height: number;\n    /**\n     * Returns the intrinsic width of the image, in CSS 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 | OffscreenCanvas;\n    /**\n     * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n     */\n    transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n    prototype: ImageBitmapRenderingContext;\n    new(): ImageBitmapRenderingContext;\n};\n\n/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */\ninterface ImageData {\n    /**\n     * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n     */\n    readonly data: Uint8ClampedArray;\n    /**\n     * Returns the actual dimensions of the data in the ImageData object, in pixels.\n     */\n    readonly height: number;\n    /**\n     * Returns the actual dimensions of the data in the ImageData object, in pixels.\n     */\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 InnerHTML {\n    innerHTML: string;\n}\n\ninterface InputDeviceInfo extends MediaDeviceInfo {\n    getCapabilities(): MediaTrackCapabilities;\n}\n\ndeclare var InputDeviceInfo: {\n    prototype: InputDeviceInfo;\n    new(): InputDeviceInfo;\n};\n\ninterface InputEvent extends UIEvent {\n    readonly data: string | null;\n    readonly inputType: string;\n    readonly isComposing: boolean;\n}\n\ndeclare var InputEvent: {\n    prototype: InputEvent;\n    new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document\'s viewport. */\ninterface IntersectionObserver {\n    readonly root: Element | null;\n    readonly rootMargin: string;\n    readonly thresholds: ReadonlyArray<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\n/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */\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 | null;\n    readonly target: Element;\n    readonly time: number;\n}\n\ndeclare var IntersectionObserverEntry: {\n    prototype: IntersectionObserverEntry;\n    new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\n/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */\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 isComposing: 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    getModifierState(keyArg: string): boolean;\n    readonly DOM_KEY_LOCATION_LEFT: 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(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n    readonly DOM_KEY_LOCATION_LEFT: 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\n/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */\ninterface Location {\n    /**\n     * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing 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     * \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 port for the scheme).\n     * \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     * \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     * \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     * \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     * \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     * \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     * \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(): void;\n    /** @deprecated */\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\n/** The MSGestureEvent is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include MSGestureStart, MSGestureEnd, MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart. */\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\n/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */\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\n/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */\ninterface MediaDeviceInfo {\n    readonly deviceId: string;\n    readonly groupId: string;\n    readonly kind: MediaDeviceKind;\n    readonly label: string;\n    toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n    prototype: MediaDeviceInfo;\n    new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n    "devicechange": Event;\n}\n\n/** Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. */\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\n/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */\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\n/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */\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\n/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */\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 MediaKeySessionEventMap {\n    "keystatuseschange": Event;\n    "message": MessageEvent;\n}\n\n/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */\ninterface MediaKeySession extends EventTarget {\n    readonly closed: Promise<void>;\n    readonly expiration: number;\n    readonly keyStatuses: MediaKeyStatusMap;\n    onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n    onmessage: ((this: MediaKeySession, ev: MessageEvent) => any) | null;\n    readonly sessionId: string;\n    close(): Promise<void>;\n    generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n    load(sessionId: string): Promise<boolean>;\n    remove(): Promise<void>;\n    update(response: BufferSource): Promise<void>;\n    addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n    prototype: MediaKeySession;\n    new(): MediaKeySession;\n};\n\n/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */\ninterface MediaKeyStatusMap {\n    readonly size: number;\n    get(keyId: BufferSource): any;\n    has(keyId: BufferSource): boolean;\n    forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n    prototype: MediaKeyStatusMap;\n    new(): MediaKeyStatusMap;\n};\n\n/** This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. */\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\n/** This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. */\ninterface MediaKeys {\n    createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n    setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\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\n/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */\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: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | 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 MediaSourceEventMap {\n    "sourceclose": Event;\n    "sourceended": Event;\n    "sourceopen": Event;\n}\n\n/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */\ninterface MediaSource extends EventTarget {\n    readonly activeSourceBuffers: SourceBufferList;\n    duration: number;\n    onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n    onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n    onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n    readonly readyState: ReadyState;\n    readonly sourceBuffers: SourceBufferList;\n    addSourceBuffer(type: string): SourceBuffer;\n    clearLiveSeekableRange(): void;\n    endOfStream(error?: EndOfStreamError): void;\n    removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n    setLiveSeekableRange(start: number, end: number): void;\n    addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n    prototype: MediaSource;\n    new(): MediaSource;\n    isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n    "addtrack": MediaStreamTrackEvent;\n    "removetrack": MediaStreamTrackEvent;\n}\n\n/** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */\ninterface MediaStream extends EventTarget {\n    readonly active: boolean;\n    readonly id: string;\n    onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => 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    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\n/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */\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\n/** Events that occurs in relation to a MediaStream. Two events of this type can be thrown: addstream and removestream. */\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": Event;\n    "isolationchange": Event;\n    "mute": Event;\n    "unmute": Event;\n}\n\n/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */\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: Event) => any) | null;\n    onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    readonly readyState: MediaStreamTrackState;\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\n/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */\ninterface MediaStreamTrackEvent extends Event {\n    readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n    prototype: MediaStreamTrackEvent;\n    new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n    /**\n     * Returns the first MessagePort object.\n     */\n    readonly port1: MessagePort;\n    /**\n     * Returns the second MessagePort object.\n     */\n    readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n    prototype: MessageChannel;\n    new(): MessageChannel;\n};\n\n/** A message received by a target object. */\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 server-sent events.\n     */\n    readonly lastEventId: string;\n    /**\n     * Returns the origin of the message, for server-sent events and cross-document messaging.\n     */\n    readonly origin: string;\n    /**\n     * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n     */\n    readonly ports: ReadonlyArray<MessagePort>;\n    /**\n     * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at 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\n/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */\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 transferred, not just cloned, meaning that they are no longer usable on the sending side.\n     * \n     * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n     */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: PostMessageOptions): 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\n/** Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. */\ninterface MimeType {\n    /**\n     * Returns the MIME type\'s description.\n     */\n    readonly description: string;\n    /**\n     * Returns the Plugin object that implements this MIME type.\n     */\n    readonly enabledPlugin: Plugin;\n    /**\n     * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n     */\n    readonly suffixes: string;\n    /**\n     * Returns the MIME type.\n     */\n    readonly type: string;\n}\n\ndeclare var MimeType: {\n    prototype: MimeType;\n    new(): MimeType;\n};\n\n/** Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */\ninterface MimeTypeArray {\n    readonly length: number;\n    item(index: number): MimeType | null;\n    namedItem(name: string): MimeType | null;\n    [index: number]: MimeType;\n}\n\ndeclare var MimeTypeArray: {\n    prototype: MimeTypeArray;\n    new(): MimeTypeArray;\n};\n\n/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */\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    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 | null;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly shiftKey: boolean;\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(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/** Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. */\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\n/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */\ninterface MutationObserver {\n    /**\n     * Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked.\n     */\n    disconnect(): void;\n    /**\n     * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n     * \n     * The options argument allows for setting mutation observation options via object members.\n     */\n    observe(target: Node, options?: MutationObserverInit): void;\n    /**\n     * Empties the record queue and returns what was in there.\n     */\n    takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n    prototype: MutationObserver;\n    new(callback: MutationCallback): MutationObserver;\n};\n\n/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback. */\ninterface MutationRecord {\n    /**\n     * Return the nodes added and removed respectively.\n     */\n    readonly addedNodes: NodeList;\n    /**\n     * Returns the local name of the changed attribute, and null otherwise.\n     */\n    readonly attributeName: string | null;\n    /**\n     * Returns the namespace of the changed attribute, and null otherwise.\n     */\n    readonly attributeNamespace: string | null;\n    /**\n     * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n     */\n    readonly nextSibling: Node | null;\n    /**\n     * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.\n     */\n    readonly oldValue: string | null;\n    /**\n     * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n     */\n    readonly previousSibling: Node | null;\n    /**\n     * Return the nodes added and removed respectively.\n     */\n    readonly removedNodes: NodeList;\n    /**\n     * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.\n     */\n    readonly target: Node;\n    /**\n     * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "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\n/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */\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\n/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */\ninterface Navigator extends NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, NavigatorConcurrentHardware, NavigatorStorage, NavigatorAutomationInformation, MSFileSaver, MSNavigatorDoNotTrack, NavigatorBeacon {\n    readonly activeVRDisplays: ReadonlyArray<VRDisplay>;\n    readonly clipboard: Clipboard;\n    readonly credentials: CredentialsContainer;\n    readonly doNotTrack: string | null;\n    readonly geolocation: Geolocation;\n    readonly maxTouchPoints: number;\n    readonly mediaDevices: MediaDevices;\n    readonly msManipulationViewsEnabled: boolean;\n    readonly msMaxTouchPoints: number;\n    readonly msPointerEnabled: boolean;\n    readonly permissions: Permissions;\n    readonly pointerEnabled: boolean;\n    readonly serviceWorker: ServiceWorkerContainer;\n    getGamepads(): (Gamepad | null)[];\n    getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;\n    getVRDisplays(): Promise<VRDisplay[]>;\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    registerProtocolHandler(scheme: string, url: string, title: string): void;\n    unregisterProtocolHandler(scheme: string, url: string): void;\n}\n\ninterface NavigatorCookies {\n    readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n    readonly appCodeName: string;\n    readonly appName: string;\n    readonly appVersion: string;\n    readonly oscpu: 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    taintEnabled(): boolean;\n}\n\ninterface NavigatorLanguage {\n    readonly language: string;\n    readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorOnLine {\n    readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n    readonly mimeTypes: MimeTypeArray;\n    readonly plugins: PluginArray;\n    javaEnabled(): boolean;\n}\n\ninterface NavigatorStorage {\n    readonly storage: StorageManager;\n}\n\n/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */\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    /** @deprecated */\n    readonly namespaceURI: string | null;\n    /**\n     * Returns the next sibling.\n     */\n    readonly nextSibling: ChildNode | null;\n    /**\n     * Returns a string appropriate for the type of node.\n     */\n    readonly nodeName: string;\n    /**\n     * Returns the type of node.\n     */\n    readonly nodeType: number;\n    nodeValue: string | null;\n    /**\n     * Returns the node document. 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    /**\n     * Returns a bitmask indicating the position of other relative to node.\n     */\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 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    /**\n     * node is a CDATASection node.\n     */\n    readonly CDATA_SECTION_NODE: number;\n    /**\n     * node is a Comment node.\n     */\n    readonly COMMENT_NODE: number;\n    /**\n     * node is a DocumentFragment node.\n     */\n    readonly DOCUMENT_FRAGMENT_NODE: number;\n    /**\n     * node is a document.\n     */\n    readonly DOCUMENT_NODE: number;\n    /**\n     * Set when other is a descendant of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n    /**\n     * Set when other is an ancestor of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINS: number;\n    /**\n     * Set when node and other are not in the same tree.\n     */\n    readonly DOCUMENT_POSITION_DISCONNECTED: number;\n    /**\n     * Set when other is following node.\n     */\n    readonly DOCUMENT_POSITION_FOLLOWING: number;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n    /**\n     * Set when other is preceding node.\n     */\n    readonly DOCUMENT_POSITION_PRECEDING: number;\n    /**\n     * node is a doctype.\n     */\n    readonly DOCUMENT_TYPE_NODE: number;\n    /**\n     * node is an element.\n     */\n    readonly ELEMENT_NODE: number;\n    readonly ENTITY_NODE: number;\n    readonly ENTITY_REFERENCE_NODE: number;\n    readonly NOTATION_NODE: number;\n    /**\n     * node is a ProcessingInstruction node.\n     */\n    readonly PROCESSING_INSTRUCTION_NODE: number;\n    /**\n     * node is a Text node.\n     */\n    readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n    prototype: Node;\n    new(): Node;\n    readonly ATTRIBUTE_NODE: number;\n    /**\n     * node is a CDATASection node.\n     */\n    readonly CDATA_SECTION_NODE: number;\n    /**\n     * node is a Comment node.\n     */\n    readonly COMMENT_NODE: number;\n    /**\n     * node is a DocumentFragment node.\n     */\n    readonly DOCUMENT_FRAGMENT_NODE: number;\n    /**\n     * node is a document.\n     */\n    readonly DOCUMENT_NODE: number;\n    /**\n     * Set when other is a descendant of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n    /**\n     * Set when other is an ancestor of node.\n     */\n    readonly DOCUMENT_POSITION_CONTAINS: number;\n    /**\n     * Set when node and other are not in the same tree.\n     */\n    readonly DOCUMENT_POSITION_DISCONNECTED: number;\n    /**\n     * Set when other is following node.\n     */\n    readonly DOCUMENT_POSITION_FOLLOWING: number;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n    /**\n     * Set when other is preceding node.\n     */\n    readonly DOCUMENT_POSITION_PRECEDING: number;\n    /**\n     * node is a doctype.\n     */\n    readonly DOCUMENT_TYPE_NODE: number;\n    /**\n     * node is an element.\n     */\n    readonly ELEMENT_NODE: number;\n    readonly ENTITY_NODE: number;\n    readonly ENTITY_REFERENCE_NODE: number;\n    readonly NOTATION_NODE: number;\n    /**\n     * node is a ProcessingInstruction node.\n     */\n    readonly PROCESSING_INSTRUCTION_NODE: number;\n    /**\n     * node is a Text node.\n     */\n    readonly TEXT_NODE: number;\n};\n\n/** An object used to filter the nodes in a NodeIterator or TreeWalker. They don\'t know anything about the DOM or how to traverse nodes; they just know how to evaluate a single node against the provided filter. */\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\n/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */\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\n/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */\ninterface NodeList {\n    /**\n     * Returns the number of nodes in the collection.\n     */\n    readonly length: number;\n    /**\n     * Returns the node with index index from the collection. The nodes are sorted in tree order.\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 NonDocumentTypeChildNode {\n    /**\n     * Returns the first following sibling that is an element, and null otherwise.\n     */\n    readonly nextElementSibling: Element | null;\n    /**\n     * Returns the first preceding sibling that 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\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\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\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */\ninterface OES_texture_half_float {\n    readonly HALF_FLOAT_OES: GLenum;\n}\n\n/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n    readonly VERTEX_ARRAY_BINDING_OES: GLenum;\n}\n\n/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */\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\n/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn\'t render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */\ninterface OfflineAudioContext extends BaseAudioContext {\n    readonly length: number;\n    oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n    resume(): Promise<void>;\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 OffscreenCanvas extends EventTarget {\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n     * \n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    height: number;\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n     * \n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    width: number;\n    /**\n     * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n     * \n     * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n     */\n    convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n    /**\n     * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n     * \n     * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n     * \n     * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n     */\n    getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;\n    getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n    getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n    getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n    getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n    /**\n     * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.\n     */\n    transferToImageBitmap(): ImageBitmap;\n}\n\ndeclare var OffscreenCanvas: {\n    prototype: OffscreenCanvas;\n    new(width: number, height: number): OffscreenCanvas;\n};\n\ninterface OffscreenCanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath {\n    readonly canvas: OffscreenCanvas;\n    commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n    prototype: OffscreenCanvasRenderingContext2D;\n    new(): OffscreenCanvasRenderingContext2D;\n};\n\n/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */\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 OverconstrainedError extends Error {\n    constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n    prototype: OverconstrainedError;\n    new(): OverconstrainedError;\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\n/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */\ninterface PageTransitionEvent extends Event {\n    readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n    prototype: PageTransitionEvent;\n    new(): PageTransitionEvent;\n};\n\n/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can\'t have panning effects without at least two audio channels! */\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 strings in nodes with equivalent Text nodes.\n     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n     */\n    append(...nodes: (Node | string)[]): void;\n    /**\n     * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n     * \n     * Throws a "HierarchyRequestError" DOMException if the constraints of 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 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 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\n/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */\ninterface Path2D extends CanvasPath {\n    /**\n     * Adds to the path the path given by the argument.\n     */\n    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n    prototype: Path2D;\n    new(path?: Path2D | string): Path2D;\n};\n\n/** This Payment Request API interface is used to store shipping or payment address information. */\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\n/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */\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\n/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */\ninterface PaymentRequestUpdateEvent extends Event {\n    updateWith(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n    prototype: PaymentRequestUpdateEvent;\n    new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */\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\n/** Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */\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\n/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */\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\n/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline. */\ninterface PerformanceMark extends PerformanceEntry {\n}\n\ndeclare var PerformanceMark: {\n    prototype: PerformanceMark;\n    new(): PerformanceMark;\n};\n\n/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline. */\ninterface PerformanceMeasure extends PerformanceEntry {\n}\n\ndeclare var PerformanceMeasure: {\n    prototype: PerformanceMeasure;\n    new(): PerformanceMeasure;\n};\n\n/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. */\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\n/** Provides methods and properties to store and retrieve metrics regarding the browser\'s document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */\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    readonly supportedEntryTypes: ReadonlyArray<string>;\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\n/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */\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\n/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property. */\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\n/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */\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 PermissionStatusEventMap {\n    "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n    onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n    readonly state: PermissionState;\n    addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n    prototype: PermissionStatus;\n    new(): PermissionStatus;\n};\n\ninterface Permissions {\n    query(permissionDesc: PermissionDescriptor | DevicePermissionDescriptor | MidiPermissionDescriptor | PushPermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n    prototype: Permissions;\n    new(): Permissions;\n};\n\n/** Provides information about a browser plugin. */\ninterface Plugin {\n    /**\n     * Returns the plugin\'s description.\n     */\n    readonly description: string;\n    /**\n     * Returns the plugin library\'s filename, if applicable on the current platform.\n     */\n    readonly filename: string;\n    /**\n     * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n     */\n    readonly length: number;\n    /**\n     * Returns the plugin\'s name.\n     */\n    readonly name: string;\n    /**\n     * Returns the specified MimeType object.\n     */\n    item(index: number): MimeType | null;\n    namedItem(name: string): MimeType | null;\n    [index: number]: MimeType;\n}\n\ndeclare var Plugin: {\n    prototype: Plugin;\n    new(): Plugin;\n};\n\n/** Used to store a list of Plugin objects describing the available plugins; it\'s returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */\ninterface PluginArray {\n    readonly length: number;\n    item(index: number): Plugin | null;\n    namedItem(name: string): Plugin | null;\n    refresh(reload?: boolean): void;\n    [index: number]: Plugin;\n}\n\ndeclare var PluginArray: {\n    prototype: PluginArray;\n    new(): PluginArray;\n};\n\n/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */\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\n/** PopStateEvent is an event handler for the popstate event on the window. */\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\n/** The position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed. */\ninterface Position {\n    readonly coords: Coordinates;\n    readonly timestamp: number;\n}\n\n/** The reason of an error occurring when using the geolocating device. */\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\n/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them. */\ninterface ProcessingInstruction extends CharacterData {\n    readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n    prototype: ProcessingInstruction;\n    new(): ProcessingInstruction;\n};\n\n/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n    readonly lengthComputable: boolean;\n    readonly loaded: number;\n    readonly target: T | null;\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 PublicKeyCredential extends Credential {\n    readonly rawId: ArrayBuffer;\n    readonly response: AuthenticatorResponse;\n    getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n    prototype: PublicKeyCredential;\n    new(): PublicKeyCredential;\n    isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */\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\n/** This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service. */\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\n/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */\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\n/** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */\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\n/** Provides access to information about the ICE transport layer over which the data is being sent and received. */\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\n/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it\'s no longer needed. */\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\n/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */\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\n/** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */\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\n/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */\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\n/** One end of a connection—or potential connection—and how it\'s configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */\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\n/** A fragment of a document that can contain nodes and parts of text nodes. */\ninterface Range extends AbstractRange {\n    /**\n     * Returns the node, furthest away from 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 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 ReadableByteStreamController {\n    readonly byobRequest: ReadableStreamBYOBRequest | undefined;\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk: ArrayBufferView): void;\n    error(error?: any): void;\n}\n\n/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */\ninterface ReadableStream<R = any> {\n    readonly locked: boolean;\n    cancel(reason?: any): Promise<void>;\n    getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n    getReader(): ReadableStreamDefaultReader<R>;\n    pipeThrough<T>({ writable, readable }: { writable: WritableStream<R>, readable: ReadableStream<T> }, options?: PipeOptions): ReadableStream<T>;\n    pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;\n    tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n    prototype: ReadableStream;\n    new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream<Uint8Array>;\n    new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamBYOBReader {\n    readonly closed: Promise<void>;\n    cancel(reason?: any): Promise<void>;\n    read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n    releaseLock(): void;\n}\n\ninterface ReadableStreamBYOBRequest {\n    readonly view: ArrayBufferView;\n    respond(bytesWritten: number): void;\n    respondWithNewView(view: ArrayBufferView): void;\n}\n\ninterface ReadableStreamDefaultController<R = any> {\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk: R): void;\n    error(error?: any): void;\n}\n\ninterface ReadableStreamDefaultReader<R = any> {\n    readonly closed: Promise<void>;\n    cancel(reason?: any): Promise<void>;\n    read(): Promise<ReadableStreamReadResult<R>>;\n    releaseLock(): void;\n}\n\ninterface ReadableStreamReadResult<T> {\n    done: boolean;\n    value: T;\n}\n\ninterface ReadableStreamReader<R = any> {\n    cancel(): Promise<void>;\n    read(): Promise<ReadableStreamReadResult<R>>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamReader: {\n    prototype: ReadableStreamReader;\n    new(): ReadableStreamReader;\n};\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n    /**\n     * Returns the cache mode associated with request, which is a string indicating how 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 indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.\n     */\n    readonly credentials: RequestCredentials;\n    /**\n     * Returns the kind of resource requested by request, e.g., "document" or "script".\n     */\n    readonly destination: RequestDestination;\n    /**\n     * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this 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 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 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 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 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 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 explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during 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 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 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\n/** This Fetch API interface represents the response to a request. */\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\n/** Provides access to the properties of <a> element, as well as methods to manipulate them. */\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\n/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */\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 SVGAnimateElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, 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: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n    prototype: SVGAnimateElement;\n    new(): SVGAnimateElement;\n};\n\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, 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: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n    prototype: SVGAnimateMotionElement;\n    new(): SVGAnimateMotionElement;\n};\n\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, 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: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n    prototype: SVGAnimateTransformElement;\n    new(): SVGAnimateTransformElement;\n};\n\n/** Used for attributes of basic type <angle> which can be animated. */\ninterface SVGAnimatedAngle {\n    readonly animVal: SVGAngle;\n    readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n    prototype: SVGAnimatedAngle;\n    new(): SVGAnimatedAngle;\n};\n\n/** Used for attributes of type boolean which can be animated. */\ninterface SVGAnimatedBoolean {\n    readonly animVal: boolean;\n    baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n    prototype: SVGAnimatedBoolean;\n    new(): SVGAnimatedBoolean;\n};\n\n/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */\ninterface SVGAnimatedEnumeration {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n    prototype: SVGAnimatedEnumeration;\n    new(): SVGAnimatedEnumeration;\n};\n\n/** Used for attributes of basic type <integer> which can be animated. */\ninterface SVGAnimatedInteger {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n    prototype: SVGAnimatedInteger;\n    new(): SVGAnimatedInteger;\n};\n\n/** Used for attributes of basic type <length> which can be animated. */\ninterface SVGAnimatedLength {\n    readonly animVal: SVGLength;\n    readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n    prototype: SVGAnimatedLength;\n    new(): SVGAnimatedLength;\n};\n\n/** Used for attributes of type SVGLengthList which can be animated. */\ninterface SVGAnimatedLengthList {\n    readonly animVal: SVGLengthList;\n    readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n    prototype: SVGAnimatedLengthList;\n    new(): SVGAnimatedLengthList;\n};\n\n/** Used for attributes of basic type <Number> which can be animated. */\ninterface SVGAnimatedNumber {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n    prototype: SVGAnimatedNumber;\n    new(): SVGAnimatedNumber;\n};\n\n/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */\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\n/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */\ninterface SVGAnimatedPreserveAspectRatio {\n    readonly animVal: SVGPreserveAspectRatio;\n    readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n    prototype: SVGAnimatedPreserveAspectRatio;\n    new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/** Used for attributes of basic SVGRect which can be animated. */\ninterface SVGAnimatedRect {\n    readonly animVal: DOMRectReadOnly;\n    readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n    prototype: SVGAnimatedRect;\n    new(): SVGAnimatedRect;\n};\n\n/** The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. */\ninterface SVGAnimatedString {\n    readonly animVal: string;\n    baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n    prototype: SVGAnimatedString;\n    new(): SVGAnimatedString;\n};\n\n/** Used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedTransformList {\n    readonly animVal: SVGTransformList;\n    readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n    prototype: SVGAnimatedTransformList;\n    new(): SVGAnimatedTransformList;\n};\n\ninterface SVGAnimationElement extends SVGElement {\n    readonly targetElement: SVGElement;\n    getCurrentTime(): number;\n    getSimpleDuration(): number;\n    getStartTime(): number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, 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: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n    prototype: SVGAnimationElement;\n    new(): SVGAnimationElement;\n};\n\n/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */\ninterface SVGCircleElement extends SVGGeometryElement {\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\n/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */\ninterface SVGClipPathElement extends SVGElement {\n    readonly clipPathUnits: SVGAnimatedEnumeration;\n    readonly transform: SVGAnimatedTransformList;\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\n/** A base interface used by the component transfer function interfaces. */\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 SVGCursorElement extends SVGElement {\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, 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: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCursorElement: {\n    prototype: SVGCursorElement;\n    new(): SVGCursorElement;\n};\n\n/** Corresponds to the <defs> element. */\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\n/** Corresponds to the <desc> element. */\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\n/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */\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\n/** Provides access to the properties of <ellipse> elements. */\ninterface SVGEllipseElement extends SVGGeometryElement {\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\n/** Corresponds to the <feBlend> element. */\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\n/** Corresponds to the <feColorMatrix> element. */\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\n/** Corresponds to the <feComponentTransfer> element. */\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\n/** Corresponds to the <feComposite> element. */\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\n/** Corresponds to the <feConvolveMatrix> element. */\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\n/** Corresponds to the <feDiffuseLighting> element. */\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\n/** Corresponds to the <feDisplacementMap> element. */\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\n/** Corresponds to the <feDistantLight> element. */\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 SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly dx: SVGAnimatedNumber;\n    readonly dy: SVGAnimatedNumber;\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: SVGFEDropShadowElement, 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: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n    prototype: SVGFEDropShadowElement;\n    new(): SVGFEDropShadowElement;\n};\n\n/** Corresponds to the <feFlood> element. */\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\n/** Corresponds to the <feFuncA> element. */\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\n/** Corresponds to the <feFuncB> element. */\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\n/** Corresponds to the <feFuncG> element. */\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\n/** Corresponds to the <feFuncR> element. */\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\n/** Corresponds to the <feGaussianBlur> element. */\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\n/** Corresponds to the <feImage> element. */\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\n/** Corresponds to the <feMerge> element. */\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\n/** Corresponds to the <feMergeNode> element. */\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\n/** Corresponds to the <feMorphology> element. */\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\n/** Corresponds to the <feOffset> element. */\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\n/** Corresponds to the <fePointLight> element. */\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\n/** Corresponds to the <feSpecularLighting> element. */\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\n/** Corresponds to the <feSpotLight> element. */\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\n/** Corresponds to the <feTile> element. */\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\n/** Corresponds to the <feTurbulence> element. */\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\n/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\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    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\n/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */\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\n/** Corresponds to the <g> element. */\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\n/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */\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\n/** SVG elements whose primary purpose is to directly render graphics into a group. */\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\n/** Corresponds to the <image> element. */\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\n/** Correspond to the <length> basic data type. */\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\n/** The SVGLengthList defines a list of SVGLength objects. */\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\n/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */\ninterface SVGLineElement extends SVGGeometryElement {\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\n/** Corresponds to the <linearGradient> element. */\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\n/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */\ninterface SVGMaskElement extends SVGElement {\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\n/** Corresponds to the <metadata> element. */\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\n/** Corresponds to the <number> basic data type. */\ninterface SVGNumber {\n    value: number;\n}\n\ndeclare var SVGNumber: {\n    prototype: SVGNumber;\n    new(): SVGNumber;\n};\n\n/** The SVGNumberList defines a list of SVGNumber objects. */\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\n/** Corresponds to the <path> element. */\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\n/** Corresponds to the <pattern> element. */\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 length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: DOMPoint): DOMPoint;\n    clear(): void;\n    getItem(index: number): DOMPoint;\n    initialize(newItem: DOMPoint): DOMPoint;\n    insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n    removeItem(index: number): DOMPoint;\n    replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n    [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n    prototype: SVGPointList;\n    new(): SVGPointList;\n};\n\n/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */\ninterface SVGPolygonElement extends SVGGeometryElement, 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\n/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */\ninterface SVGPolylineElement extends SVGGeometryElement, 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\n/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements. */\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\n/** Corresponds to the <RadialGradient> element. */\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\n/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */\ninterface SVGRectElement extends SVGGeometryElement {\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\n/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */\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    animationsPaused(): boolean;\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    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    pauseAnimations(): void;\n    setCurrentTime(seconds: number): void;\n    /** @deprecated */\n    suspendRedraw(maxWaitMilliseconds: number): number;\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\n/** Corresponds to the SVG <script> element. */\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\n/** Corresponds to the <stop> element. */\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\n/** The SVGStringList defines a list of DOMString objects. */\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\n/** Corresponds to the SVG <style> element. */\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\n/** Corresponds to the <switch> element. */\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\n/** Corresponds to the <symbol> element. */\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\n/** A <tspan> element. */\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\n/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */\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\n/** Corresponds to the <text> elements. */\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\n/** Corresponds to the <textPath> element. */\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\n/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */\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\n/** Corresponds to the <title> element. */\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\n/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. */\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\n/** The SVGTransformList defines a list of SVGTransform objects. */\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\n/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */\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\n/** Corresponds to the <use> element. */\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\n/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */\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\n/** Used to reflect the zoomAndPan attribute, and is mixed in to other interfaces for elements that support this attribute. */\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\n/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */\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\n/** Allows the generation, processing, or analyzing of audio using JavaScript. */\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\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\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\n/** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */\ninterface Selection {\n    readonly anchorNode: Node | null;\n    readonly anchorOffset: number;\n    readonly focusNode: Node | null;\n    readonly focusOffset: number;\n    readonly isCollapsed: boolean;\n    readonly rangeCount: number;\n    readonly type: string;\n    addRange(range: Range): void;\n    collapse(node: Node | null, offset?: number): void;\n    collapseToEnd(): void;\n    collapseToStart(): void;\n    containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n    deleteFromDocument(): void;\n    empty(): void;\n    extend(node: Node, offset?: number): void;\n    getRangeAt(index: number): Range;\n    removeAllRanges(): void;\n    removeRange(range: Range): void;\n    selectAllChildren(node: Node): void;\n    setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n    setPosition(node: Node | null, offset?: number): void;\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\n/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */\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    postMessage(message: any, options?: PostMessageOptions): 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\n/** The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */\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\n/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */\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\n/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */\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 DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n    readonly host: Element;\n    readonly mode: ShadowRootMode;\n}\n\ndeclare var ShadowRoot: {\n    prototype: ShadowRoot;\n    new(): ShadowRoot;\n};\n\ninterface Slotable {\n    readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n    "abort": Event;\n    "error": Event;\n    "update": Event;\n    "updateend": Event;\n    "updatestart": Event;\n}\n\n/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */\ninterface SourceBuffer extends EventTarget {\n    appendWindowEnd: number;\n    appendWindowStart: number;\n    readonly audioTracks: AudioTrackList;\n    readonly buffered: TimeRanges;\n    mode: AppendMode;\n    onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n    onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n    readonly textTracks: TextTrackList;\n    timestampOffset: number;\n    readonly updating: boolean;\n    readonly videoTracks: VideoTrackList;\n    abort(): void;\n    appendBuffer(data: BufferSource): void;\n    remove(start: number, end: number): void;\n    addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n    prototype: SourceBuffer;\n    new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n    "addsourcebuffer": Event;\n    "removesourcebuffer": Event;\n}\n\n/** A simple container list for multiple SourceBuffer objects. */\ninterface SourceBufferList extends EventTarget {\n    readonly length: number;\n    onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n    onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n    addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\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\n/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */\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\n/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */\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\n/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */\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\n/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */\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\n/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */\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\n/** This Web Storage API interface provides access to a particular domain\'s session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */\ninterface Storage {\n    /**\n     * Returns the number of key/value pairs currently present in the list associated with the 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     * Returns the current value associated with the given key, or null if the given key does not exist in the list associated with the object.\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 than or equal to the number of key/value pairs in the object.\n     */\n    key(index: number): string | null;\n    /**\n     * Removes the key/value pair with the given key from the list associated with the object, if a key/value pair with the given key exists.\n     */\n    removeItem(key: string): void;\n    /**\n     * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n     * \n     * Throws a "QuotaExceededError" DOMException exception if the new value couldn\'t be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)\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\n/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */\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\n/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */\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\n/** A list of StyleSheet. */\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\n/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */\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\n/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */\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\n/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element\'s text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */\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\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n    /**\n     * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented stream. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n     * \n     * ```\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     * ```\n     * \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 TextDecoderCommon {\n    /**\n     * Returns encoding\'s name, lowercased.\n     */\n    readonly encoding: string;\n    /**\n     * Returns true if error mode is "fatal", and false 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\ninterface TextDecoderStream extends TextDecoderCommon, GenericTransformStream {\n}\n\ndeclare var TextDecoderStream: {\n    prototype: TextDecoderStream;\n    new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n    /**\n     * Returns the result of running UTF-8\'s encoder.\n     */\n    encode(input?: string): Uint8Array;\n    /**\n     * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as a dictionary whereby read is the number of converted code units of source and written is the number of bytes modified in destination.\n     */\n    encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n    prototype: TextEncoder;\n    new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n    /**\n     * Returns "utf-8".\n     */\n    readonly encoding: string;\n}\n\ninterface TextEncoderStream extends TextEncoderCommon, GenericTransformStream {\n}\n\ndeclare var TextEncoderStream: {\n    prototype: TextEncoderStream;\n    new(): TextEncoderStream;\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\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxAscent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxDescent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxLeft: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly actualBoundingBoxRight: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly alphabeticBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly emHeightAscent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly emHeightDescent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly fontBoundingBoxAscent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly fontBoundingBoxDescent: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly hangingBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly ideographicBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\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\n/** This interface also inherits properties from EventTarget. */\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    readonly sourceBuffer: SourceBuffer | null;\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\n/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */\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\n/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. */\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\n/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */\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\n/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */\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\n/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */\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\n/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */\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 TransformStream<I = any, O = any> {\n    readonly readable: ReadableStream<O>;\n    readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n    prototype: TransformStream;\n    new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n    readonly desiredSize: number | null;\n    enqueue(chunk: O): void;\n    error(reason?: any): void;\n    terminate(): void;\n}\n\n/** Events providing information related to transitions. */\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\n/** The nodes of a document subtree and a position within them. */\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\n/** Simple user interface events. */\ninterface UIEvent extends Event {\n    readonly detail: number;\n    readonly view: Window | null;\n    /** @deprecated */\n    readonly which: number;\n}\n\ndeclare var UIEvent: {\n    prototype: UIEvent;\n    new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/** The URL interface represents an object providing static methods used for creating object URLs. */\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\n/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */\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\n/** This WebVR API interface describes the capabilities of a VRDisplay — its features can be used to perform VR device capability tests, for example can it return position information. */\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\n/** This WebVR API interface represents represents the event object of WebVR-related events (see the list of WebVR window extensions). */\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\n/** This WebVR API interface represents all the information required to correctly render a scene for a given eye, including field of view information. */\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\n/** This WebVR API interface represents a field of view defined by 4 different degree values describing the view from a center point. */\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\n/** This WebVR API interface represents all the information needed to render a single frame of a VR scene; constructed by VRDisplay.getFrameData(). */\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\n/** This WebVR API interface represents the state of a VR sensor at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */\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\n/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element\'s value fails to validate, if it\'s not valid. */\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\n/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */\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\n/** A single video track from a <video> element. */\ninterface VideoTrack {\n    readonly id: string;\n    kind: string;\n    readonly label: string;\n    language: string;\n    selected: boolean;\n    readonly sourceBuffer: SourceBuffer | null;\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\n/** Used to represent a list of the video tracks contained within a <video> element, with each track represented by a separate VideoTrack object in the list. */\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: GLenum;\n    readonly RGBA32F_EXT: GLenum;\n    readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_astc {\n    getSupportedProfiles(): string[];\n    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;\n    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;\n    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;\n    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;\n    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;\n    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;\n}\n\n/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */\ninterface WEBGL_debug_renderer_info {\n    readonly UNMASKED_RENDERER_WEBGL: GLenum;\n    readonly UNMASKED_VENDOR_WEBGL: GLenum;\n}\n\ninterface WEBGL_debug_shaders {\n    getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n    readonly UNSIGNED_INT_24_8_WEBGL: GLenum;\n}\n\ninterface WEBGL_draw_buffers {\n    drawBuffersWEBGL(buffers: GLenum[]): void;\n    readonly COLOR_ATTACHMENT0_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT10_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT11_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT12_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT13_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT14_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT15_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT1_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT2_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT3_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT4_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT5_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT6_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT7_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT8_WEBGL: GLenum;\n    readonly COLOR_ATTACHMENT9_WEBGL: GLenum;\n    readonly DRAW_BUFFER0_WEBGL: GLenum;\n    readonly DRAW_BUFFER10_WEBGL: GLenum;\n    readonly DRAW_BUFFER11_WEBGL: GLenum;\n    readonly DRAW_BUFFER12_WEBGL: GLenum;\n    readonly DRAW_BUFFER13_WEBGL: GLenum;\n    readonly DRAW_BUFFER14_WEBGL: GLenum;\n    readonly DRAW_BUFFER15_WEBGL: GLenum;\n    readonly DRAW_BUFFER1_WEBGL: GLenum;\n    readonly DRAW_BUFFER2_WEBGL: GLenum;\n    readonly DRAW_BUFFER3_WEBGL: GLenum;\n    readonly DRAW_BUFFER4_WEBGL: GLenum;\n    readonly DRAW_BUFFER5_WEBGL: GLenum;\n    readonly DRAW_BUFFER6_WEBGL: GLenum;\n    readonly DRAW_BUFFER7_WEBGL: GLenum;\n    readonly DRAW_BUFFER8_WEBGL: GLenum;\n    readonly DRAW_BUFFER9_WEBGL: GLenum;\n    readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;\n    readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;\n}\n\ninterface WEBGL_lose_context {\n    loseContext(): void;\n    restoreContext(): void;\n}\n\n/** A WaveShaperNode always has exactly one input and one output. */\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 WebGL2RenderingContext extends WebGLRenderingContextBase, WebGL2RenderingContextBase, WebGL2RenderingContextOverloads {\n}\n\ndeclare var WebGL2RenderingContext: {\n    prototype: WebGL2RenderingContext;\n    new(): WebGL2RenderingContext;\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    readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n    readonly ALREADY_SIGNALED: GLenum;\n    readonly ANY_SAMPLES_PASSED: GLenum;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n    readonly COLOR: GLenum;\n    readonly COLOR_ATTACHMENT1: GLenum;\n    readonly COLOR_ATTACHMENT10: GLenum;\n    readonly COLOR_ATTACHMENT11: GLenum;\n    readonly COLOR_ATTACHMENT12: GLenum;\n    readonly COLOR_ATTACHMENT13: GLenum;\n    readonly COLOR_ATTACHMENT14: GLenum;\n    readonly COLOR_ATTACHMENT15: GLenum;\n    readonly COLOR_ATTACHMENT2: GLenum;\n    readonly COLOR_ATTACHMENT3: GLenum;\n    readonly COLOR_ATTACHMENT4: GLenum;\n    readonly COLOR_ATTACHMENT5: GLenum;\n    readonly COLOR_ATTACHMENT6: GLenum;\n    readonly COLOR_ATTACHMENT7: GLenum;\n    readonly COLOR_ATTACHMENT8: GLenum;\n    readonly COLOR_ATTACHMENT9: GLenum;\n    readonly COMPARE_REF_TO_TEXTURE: GLenum;\n    readonly CONDITION_SATISFIED: GLenum;\n    readonly COPY_READ_BUFFER: GLenum;\n    readonly COPY_READ_BUFFER_BINDING: GLenum;\n    readonly COPY_WRITE_BUFFER: GLenum;\n    readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n    readonly CURRENT_QUERY: GLenum;\n    readonly DEPTH: GLenum;\n    readonly DEPTH24_STENCIL8: GLenum;\n    readonly DEPTH32F_STENCIL8: GLenum;\n    readonly DEPTH_COMPONENT24: GLenum;\n    readonly DEPTH_COMPONENT32F: GLenum;\n    readonly DRAW_BUFFER0: GLenum;\n    readonly DRAW_BUFFER1: GLenum;\n    readonly DRAW_BUFFER10: GLenum;\n    readonly DRAW_BUFFER11: GLenum;\n    readonly DRAW_BUFFER12: GLenum;\n    readonly DRAW_BUFFER13: GLenum;\n    readonly DRAW_BUFFER14: GLenum;\n    readonly DRAW_BUFFER15: GLenum;\n    readonly DRAW_BUFFER2: GLenum;\n    readonly DRAW_BUFFER3: GLenum;\n    readonly DRAW_BUFFER4: GLenum;\n    readonly DRAW_BUFFER5: GLenum;\n    readonly DRAW_BUFFER6: GLenum;\n    readonly DRAW_BUFFER7: GLenum;\n    readonly DRAW_BUFFER8: GLenum;\n    readonly DRAW_BUFFER9: GLenum;\n    readonly DRAW_FRAMEBUFFER: GLenum;\n    readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n    readonly DYNAMIC_COPY: GLenum;\n    readonly DYNAMIC_READ: GLenum;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n    readonly FLOAT_MAT2x3: GLenum;\n    readonly FLOAT_MAT2x4: GLenum;\n    readonly FLOAT_MAT3x2: GLenum;\n    readonly FLOAT_MAT3x4: GLenum;\n    readonly FLOAT_MAT4x2: GLenum;\n    readonly FLOAT_MAT4x3: GLenum;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n    readonly FRAMEBUFFER_DEFAULT: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n    readonly HALF_FLOAT: GLenum;\n    readonly INTERLEAVED_ATTRIBS: GLenum;\n    readonly INT_2_10_10_10_REV: GLenum;\n    readonly INT_SAMPLER_2D: GLenum;\n    readonly INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly INT_SAMPLER_3D: GLenum;\n    readonly INT_SAMPLER_CUBE: GLenum;\n    readonly INVALID_INDEX: GLenum;\n    readonly MAX: GLenum;\n    readonly MAX_3D_TEXTURE_SIZE: GLenum;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n    readonly MAX_COLOR_ATTACHMENTS: GLenum;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_DRAW_BUFFERS: GLenum;\n    readonly MAX_ELEMENTS_INDICES: GLenum;\n    readonly MAX_ELEMENTS_VERTICES: GLenum;\n    readonly MAX_ELEMENT_INDEX: GLenum;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly MAX_SAMPLES: GLenum;\n    readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n    readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n    readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n    readonly MAX_VARYING_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MIN: GLenum;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly OBJECT_TYPE: GLenum;\n    readonly PACK_ROW_LENGTH: GLenum;\n    readonly PACK_SKIP_PIXELS: GLenum;\n    readonly PACK_SKIP_ROWS: GLenum;\n    readonly PIXEL_PACK_BUFFER: GLenum;\n    readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n    readonly PIXEL_UNPACK_BUFFER: GLenum;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n    readonly QUERY_RESULT: GLenum;\n    readonly QUERY_RESULT_AVAILABLE: GLenum;\n    readonly R11F_G11F_B10F: GLenum;\n    readonly R16F: GLenum;\n    readonly R16I: GLenum;\n    readonly R16UI: GLenum;\n    readonly R32F: GLenum;\n    readonly R32I: GLenum;\n    readonly R32UI: GLenum;\n    readonly R8: GLenum;\n    readonly R8I: GLenum;\n    readonly R8UI: GLenum;\n    readonly R8_SNORM: GLenum;\n    readonly RASTERIZER_DISCARD: GLenum;\n    readonly READ_BUFFER: GLenum;\n    readonly READ_FRAMEBUFFER: GLenum;\n    readonly READ_FRAMEBUFFER_BINDING: GLenum;\n    readonly RED: GLenum;\n    readonly RED_INTEGER: GLenum;\n    readonly RENDERBUFFER_SAMPLES: GLenum;\n    readonly RG: GLenum;\n    readonly RG16F: GLenum;\n    readonly RG16I: GLenum;\n    readonly RG16UI: GLenum;\n    readonly RG32F: GLenum;\n    readonly RG32I: GLenum;\n    readonly RG32UI: GLenum;\n    readonly RG8: GLenum;\n    readonly RG8I: GLenum;\n    readonly RG8UI: GLenum;\n    readonly RG8_SNORM: GLenum;\n    readonly RGB10_A2: GLenum;\n    readonly RGB10_A2UI: GLenum;\n    readonly RGB16F: GLenum;\n    readonly RGB16I: GLenum;\n    readonly RGB16UI: GLenum;\n    readonly RGB32F: GLenum;\n    readonly RGB32I: GLenum;\n    readonly RGB32UI: GLenum;\n    readonly RGB8: GLenum;\n    readonly RGB8I: GLenum;\n    readonly RGB8UI: GLenum;\n    readonly RGB8_SNORM: GLenum;\n    readonly RGB9_E5: GLenum;\n    readonly RGBA16F: GLenum;\n    readonly RGBA16I: GLenum;\n    readonly RGBA16UI: GLenum;\n    readonly RGBA32F: GLenum;\n    readonly RGBA32I: GLenum;\n    readonly RGBA32UI: GLenum;\n    readonly RGBA8: GLenum;\n    readonly RGBA8I: GLenum;\n    readonly RGBA8UI: GLenum;\n    readonly RGBA8_SNORM: GLenum;\n    readonly RGBA_INTEGER: GLenum;\n    readonly RGB_INTEGER: GLenum;\n    readonly RG_INTEGER: GLenum;\n    readonly SAMPLER_2D_ARRAY: GLenum;\n    readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n    readonly SAMPLER_2D_SHADOW: GLenum;\n    readonly SAMPLER_3D: GLenum;\n    readonly SAMPLER_BINDING: GLenum;\n    readonly SAMPLER_CUBE_SHADOW: GLenum;\n    readonly SEPARATE_ATTRIBS: GLenum;\n    readonly SIGNALED: GLenum;\n    readonly SIGNED_NORMALIZED: GLenum;\n    readonly SRGB: GLenum;\n    readonly SRGB8: GLenum;\n    readonly SRGB8_ALPHA8: GLenum;\n    readonly STATIC_COPY: GLenum;\n    readonly STATIC_READ: GLenum;\n    readonly STENCIL: GLenum;\n    readonly STREAM_COPY: GLenum;\n    readonly STREAM_READ: GLenum;\n    readonly SYNC_CONDITION: GLenum;\n    readonly SYNC_FENCE: GLenum;\n    readonly SYNC_FLAGS: GLenum;\n    readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n    readonly SYNC_STATUS: GLenum;\n    readonly TEXTURE_2D_ARRAY: GLenum;\n    readonly TEXTURE_3D: GLenum;\n    readonly TEXTURE_BASE_LEVEL: GLenum;\n    readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n    readonly TEXTURE_BINDING_3D: GLenum;\n    readonly TEXTURE_COMPARE_FUNC: GLenum;\n    readonly TEXTURE_COMPARE_MODE: GLenum;\n    readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n    readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n    readonly TEXTURE_MAX_LEVEL: GLenum;\n    readonly TEXTURE_MAX_LOD: GLenum;\n    readonly TEXTURE_MIN_LOD: GLenum;\n    readonly TEXTURE_WRAP_R: GLenum;\n    readonly TIMEOUT_EXPIRED: GLenum;\n    readonly TIMEOUT_IGNORED: GLint64;\n    readonly TRANSFORM_FEEDBACK: GLenum;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n    readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n    readonly UNIFORM_ARRAY_STRIDE: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n    readonly UNIFORM_BLOCK_BINDING: GLenum;\n    readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n    readonly UNIFORM_BLOCK_INDEX: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n    readonly UNIFORM_BUFFER: GLenum;\n    readonly UNIFORM_BUFFER_BINDING: GLenum;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n    readonly UNIFORM_BUFFER_SIZE: GLenum;\n    readonly UNIFORM_BUFFER_START: GLenum;\n    readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n    readonly UNIFORM_MATRIX_STRIDE: GLenum;\n    readonly UNIFORM_OFFSET: GLenum;\n    readonly UNIFORM_SIZE: GLenum;\n    readonly UNIFORM_TYPE: GLenum;\n    readonly UNPACK_IMAGE_HEIGHT: GLenum;\n    readonly UNPACK_ROW_LENGTH: GLenum;\n    readonly UNPACK_SKIP_IMAGES: GLenum;\n    readonly UNPACK_SKIP_PIXELS: GLenum;\n    readonly UNPACK_SKIP_ROWS: GLenum;\n    readonly UNSIGNALED: GLenum;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n    readonly UNSIGNED_INT_24_8: GLenum;\n    readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n    readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n    readonly UNSIGNED_INT_VEC2: GLenum;\n    readonly UNSIGNED_INT_VEC3: GLenum;\n    readonly UNSIGNED_INT_VEC4: GLenum;\n    readonly UNSIGNED_NORMALIZED: GLenum;\n    readonly VERTEX_ARRAY_BINDING: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n    readonly WAIT_FAILED: GLenum;\n};\n\ninterface WebGL2RenderingContextBase {\n    beginQuery(target: GLenum, query: WebGLQuery): void;\n    beginTransformFeedback(primitiveMode: GLenum): void;\n    bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n    bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n    bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n    bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n    bindVertexArray(array: WebGLVertexArrayObject | null): void;\n    blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n    clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n    clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n    copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createQuery(): WebGLQuery | null;\n    createSampler(): WebGLSampler | null;\n    createTransformFeedback(): WebGLTransformFeedback | null;\n    createVertexArray(): WebGLVertexArrayObject | null;\n    deleteQuery(query: WebGLQuery | null): void;\n    deleteSampler(sampler: WebGLSampler | null): void;\n    deleteSync(sync: WebGLSync | null): void;\n    deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n    deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n    drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n    drawBuffers(buffers: GLenum[]): void;\n    drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n    drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    endQuery(target: GLenum): void;\n    endTransformFeedback(): void;\n    fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n    framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n    getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n    getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n    getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n    getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n    getFragDataLocation(program: WebGLProgram, name: string): GLint;\n    getIndexedParameter(target: GLenum, index: GLuint): any;\n    getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n    getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n    getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n    getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n    getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n    getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n    getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n    invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n    invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    isQuery(query: WebGLQuery | null): GLboolean;\n    isSampler(sampler: WebGLSampler | null): GLboolean;\n    isSync(sync: WebGLSync | null): GLboolean;\n    isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n    isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n    pauseTransformFeedback(): void;\n    readBuffer(src: GLenum): void;\n    renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    resumeTransformFeedback(): void;\n    samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n    samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;\n    transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n    uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n    uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n    uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n    uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n    uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n    vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    vertexAttribI4iv(index: GLuint, values: Int32List): void;\n    vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n    vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n    vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n    waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n    readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n    readonly ALREADY_SIGNALED: GLenum;\n    readonly ANY_SAMPLES_PASSED: GLenum;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n    readonly COLOR: GLenum;\n    readonly COLOR_ATTACHMENT1: GLenum;\n    readonly COLOR_ATTACHMENT10: GLenum;\n    readonly COLOR_ATTACHMENT11: GLenum;\n    readonly COLOR_ATTACHMENT12: GLenum;\n    readonly COLOR_ATTACHMENT13: GLenum;\n    readonly COLOR_ATTACHMENT14: GLenum;\n    readonly COLOR_ATTACHMENT15: GLenum;\n    readonly COLOR_ATTACHMENT2: GLenum;\n    readonly COLOR_ATTACHMENT3: GLenum;\n    readonly COLOR_ATTACHMENT4: GLenum;\n    readonly COLOR_ATTACHMENT5: GLenum;\n    readonly COLOR_ATTACHMENT6: GLenum;\n    readonly COLOR_ATTACHMENT7: GLenum;\n    readonly COLOR_ATTACHMENT8: GLenum;\n    readonly COLOR_ATTACHMENT9: GLenum;\n    readonly COMPARE_REF_TO_TEXTURE: GLenum;\n    readonly CONDITION_SATISFIED: GLenum;\n    readonly COPY_READ_BUFFER: GLenum;\n    readonly COPY_READ_BUFFER_BINDING: GLenum;\n    readonly COPY_WRITE_BUFFER: GLenum;\n    readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n    readonly CURRENT_QUERY: GLenum;\n    readonly DEPTH: GLenum;\n    readonly DEPTH24_STENCIL8: GLenum;\n    readonly DEPTH32F_STENCIL8: GLenum;\n    readonly DEPTH_COMPONENT24: GLenum;\n    readonly DEPTH_COMPONENT32F: GLenum;\n    readonly DRAW_BUFFER0: GLenum;\n    readonly DRAW_BUFFER1: GLenum;\n    readonly DRAW_BUFFER10: GLenum;\n    readonly DRAW_BUFFER11: GLenum;\n    readonly DRAW_BUFFER12: GLenum;\n    readonly DRAW_BUFFER13: GLenum;\n    readonly DRAW_BUFFER14: GLenum;\n    readonly DRAW_BUFFER15: GLenum;\n    readonly DRAW_BUFFER2: GLenum;\n    readonly DRAW_BUFFER3: GLenum;\n    readonly DRAW_BUFFER4: GLenum;\n    readonly DRAW_BUFFER5: GLenum;\n    readonly DRAW_BUFFER6: GLenum;\n    readonly DRAW_BUFFER7: GLenum;\n    readonly DRAW_BUFFER8: GLenum;\n    readonly DRAW_BUFFER9: GLenum;\n    readonly DRAW_FRAMEBUFFER: GLenum;\n    readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n    readonly DYNAMIC_COPY: GLenum;\n    readonly DYNAMIC_READ: GLenum;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n    readonly FLOAT_MAT2x3: GLenum;\n    readonly FLOAT_MAT2x4: GLenum;\n    readonly FLOAT_MAT3x2: GLenum;\n    readonly FLOAT_MAT3x4: GLenum;\n    readonly FLOAT_MAT4x2: GLenum;\n    readonly FLOAT_MAT4x3: GLenum;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n    readonly FRAMEBUFFER_DEFAULT: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n    readonly HALF_FLOAT: GLenum;\n    readonly INTERLEAVED_ATTRIBS: GLenum;\n    readonly INT_2_10_10_10_REV: GLenum;\n    readonly INT_SAMPLER_2D: GLenum;\n    readonly INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly INT_SAMPLER_3D: GLenum;\n    readonly INT_SAMPLER_CUBE: GLenum;\n    readonly INVALID_INDEX: GLenum;\n    readonly MAX: GLenum;\n    readonly MAX_3D_TEXTURE_SIZE: GLenum;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n    readonly MAX_COLOR_ATTACHMENTS: GLenum;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_DRAW_BUFFERS: GLenum;\n    readonly MAX_ELEMENTS_INDICES: GLenum;\n    readonly MAX_ELEMENTS_VERTICES: GLenum;\n    readonly MAX_ELEMENT_INDEX: GLenum;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly MAX_SAMPLES: GLenum;\n    readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n    readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n    readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n    readonly MAX_VARYING_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n    readonly MIN: GLenum;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n    readonly OBJECT_TYPE: GLenum;\n    readonly PACK_ROW_LENGTH: GLenum;\n    readonly PACK_SKIP_PIXELS: GLenum;\n    readonly PACK_SKIP_ROWS: GLenum;\n    readonly PIXEL_PACK_BUFFER: GLenum;\n    readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n    readonly PIXEL_UNPACK_BUFFER: GLenum;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n    readonly QUERY_RESULT: GLenum;\n    readonly QUERY_RESULT_AVAILABLE: GLenum;\n    readonly R11F_G11F_B10F: GLenum;\n    readonly R16F: GLenum;\n    readonly R16I: GLenum;\n    readonly R16UI: GLenum;\n    readonly R32F: GLenum;\n    readonly R32I: GLenum;\n    readonly R32UI: GLenum;\n    readonly R8: GLenum;\n    readonly R8I: GLenum;\n    readonly R8UI: GLenum;\n    readonly R8_SNORM: GLenum;\n    readonly RASTERIZER_DISCARD: GLenum;\n    readonly READ_BUFFER: GLenum;\n    readonly READ_FRAMEBUFFER: GLenum;\n    readonly READ_FRAMEBUFFER_BINDING: GLenum;\n    readonly RED: GLenum;\n    readonly RED_INTEGER: GLenum;\n    readonly RENDERBUFFER_SAMPLES: GLenum;\n    readonly RG: GLenum;\n    readonly RG16F: GLenum;\n    readonly RG16I: GLenum;\n    readonly RG16UI: GLenum;\n    readonly RG32F: GLenum;\n    readonly RG32I: GLenum;\n    readonly RG32UI: GLenum;\n    readonly RG8: GLenum;\n    readonly RG8I: GLenum;\n    readonly RG8UI: GLenum;\n    readonly RG8_SNORM: GLenum;\n    readonly RGB10_A2: GLenum;\n    readonly RGB10_A2UI: GLenum;\n    readonly RGB16F: GLenum;\n    readonly RGB16I: GLenum;\n    readonly RGB16UI: GLenum;\n    readonly RGB32F: GLenum;\n    readonly RGB32I: GLenum;\n    readonly RGB32UI: GLenum;\n    readonly RGB8: GLenum;\n    readonly RGB8I: GLenum;\n    readonly RGB8UI: GLenum;\n    readonly RGB8_SNORM: GLenum;\n    readonly RGB9_E5: GLenum;\n    readonly RGBA16F: GLenum;\n    readonly RGBA16I: GLenum;\n    readonly RGBA16UI: GLenum;\n    readonly RGBA32F: GLenum;\n    readonly RGBA32I: GLenum;\n    readonly RGBA32UI: GLenum;\n    readonly RGBA8: GLenum;\n    readonly RGBA8I: GLenum;\n    readonly RGBA8UI: GLenum;\n    readonly RGBA8_SNORM: GLenum;\n    readonly RGBA_INTEGER: GLenum;\n    readonly RGB_INTEGER: GLenum;\n    readonly RG_INTEGER: GLenum;\n    readonly SAMPLER_2D_ARRAY: GLenum;\n    readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n    readonly SAMPLER_2D_SHADOW: GLenum;\n    readonly SAMPLER_3D: GLenum;\n    readonly SAMPLER_BINDING: GLenum;\n    readonly SAMPLER_CUBE_SHADOW: GLenum;\n    readonly SEPARATE_ATTRIBS: GLenum;\n    readonly SIGNALED: GLenum;\n    readonly SIGNED_NORMALIZED: GLenum;\n    readonly SRGB: GLenum;\n    readonly SRGB8: GLenum;\n    readonly SRGB8_ALPHA8: GLenum;\n    readonly STATIC_COPY: GLenum;\n    readonly STATIC_READ: GLenum;\n    readonly STENCIL: GLenum;\n    readonly STREAM_COPY: GLenum;\n    readonly STREAM_READ: GLenum;\n    readonly SYNC_CONDITION: GLenum;\n    readonly SYNC_FENCE: GLenum;\n    readonly SYNC_FLAGS: GLenum;\n    readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n    readonly SYNC_STATUS: GLenum;\n    readonly TEXTURE_2D_ARRAY: GLenum;\n    readonly TEXTURE_3D: GLenum;\n    readonly TEXTURE_BASE_LEVEL: GLenum;\n    readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n    readonly TEXTURE_BINDING_3D: GLenum;\n    readonly TEXTURE_COMPARE_FUNC: GLenum;\n    readonly TEXTURE_COMPARE_MODE: GLenum;\n    readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n    readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n    readonly TEXTURE_MAX_LEVEL: GLenum;\n    readonly TEXTURE_MAX_LOD: GLenum;\n    readonly TEXTURE_MIN_LOD: GLenum;\n    readonly TEXTURE_WRAP_R: GLenum;\n    readonly TIMEOUT_EXPIRED: GLenum;\n    readonly TIMEOUT_IGNORED: GLint64;\n    readonly TRANSFORM_FEEDBACK: GLenum;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n    readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n    readonly UNIFORM_ARRAY_STRIDE: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n    readonly UNIFORM_BLOCK_BINDING: GLenum;\n    readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n    readonly UNIFORM_BLOCK_INDEX: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n    readonly UNIFORM_BUFFER: GLenum;\n    readonly UNIFORM_BUFFER_BINDING: GLenum;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n    readonly UNIFORM_BUFFER_SIZE: GLenum;\n    readonly UNIFORM_BUFFER_START: GLenum;\n    readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n    readonly UNIFORM_MATRIX_STRIDE: GLenum;\n    readonly UNIFORM_OFFSET: GLenum;\n    readonly UNIFORM_SIZE: GLenum;\n    readonly UNIFORM_TYPE: GLenum;\n    readonly UNPACK_IMAGE_HEIGHT: GLenum;\n    readonly UNPACK_ROW_LENGTH: GLenum;\n    readonly UNPACK_SKIP_IMAGES: GLenum;\n    readonly UNPACK_SKIP_PIXELS: GLenum;\n    readonly UNPACK_SKIP_ROWS: GLenum;\n    readonly UNSIGNALED: GLenum;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n    readonly UNSIGNED_INT_24_8: GLenum;\n    readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n    readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n    readonly UNSIGNED_INT_VEC2: GLenum;\n    readonly UNSIGNED_INT_VEC3: GLenum;\n    readonly UNSIGNED_INT_VEC4: GLenum;\n    readonly UNSIGNED_NORMALIZED: GLenum;\n    readonly VERTEX_ARRAY_BINDING: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n    readonly WAIT_FAILED: GLenum;\n}\n\ninterface WebGL2RenderingContextOverloads {\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): 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    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): 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    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\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\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer extends WebGLObject {\n}\n\ndeclare var WebGLBuffer: {\n    prototype: WebGLBuffer;\n    new(): WebGLBuffer;\n};\n\n/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */\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\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\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\n/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */\ninterface WebGLProgram extends WebGLObject {\n}\n\ndeclare var WebGLProgram: {\n    prototype: WebGLProgram;\n    new(): WebGLProgram;\n};\n\ninterface WebGLQuery extends WebGLObject {\n}\n\ndeclare var WebGLQuery: {\n    prototype: WebGLQuery;\n    new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer extends WebGLObject {\n}\n\ndeclare var WebGLRenderbuffer: {\n    prototype: WebGLRenderbuffer;\n    new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\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 | OffscreenCanvas;\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    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    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 | GLboolean): void;\n    polygonOffset(factor: GLfloat, units: GLfloat): 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    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): 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 WebGLRenderingContextOverloads {\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    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    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): 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    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    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): 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}\n\ninterface WebGLSampler extends WebGLObject {\n}\n\ndeclare var WebGLSampler: {\n    prototype: WebGLSampler;\n    new(): WebGLSampler;\n};\n\n/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */\ninterface WebGLShader extends WebGLObject {\n}\n\ndeclare var WebGLShader: {\n    prototype: WebGLShader;\n    new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\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 WebGLSync extends WebGLObject {\n}\n\ndeclare var WebGLSync: {\n    prototype: WebGLSync;\n    new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture extends WebGLObject {\n}\n\ndeclare var WebGLTexture: {\n    prototype: WebGLTexture;\n    new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback extends WebGLObject {\n}\n\ndeclare var WebGLTransformFeedback: {\n    prototype: WebGLTransformFeedback;\n    new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n    prototype: WebGLUniformLocation;\n    new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject extends WebGLObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n    prototype: WebGLVertexArrayObject;\n    new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES extends WebGLObject {\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\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\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\n/** Events that occur due to the user moving a mouse wheel or similar input device. */\ninterface WheelEvent extends MouseEvent {\n    readonly deltaMode: number;\n    readonly deltaX: number;\n    readonly deltaY: number;\n    readonly deltaZ: number;\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(type: 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    "deviceorientationabsolute": 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<Window>;\n    "ratechange": Event;\n    "readystatechange": ProgressEvent<Window>;\n    "reset": Event;\n    "resize": UIEvent;\n    "scroll": Event;\n    "seeked": Event;\n    "seeking": Event;\n    "select": Event;\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\n/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */\ninterface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, AnimationFrameProvider, WindowOrWorkerGlobalScope, WindowEventHandlers {\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    /** @deprecated */\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    ondeviceorientationabsolute: ((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<Window>) => 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 & typeof globalThis;\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 & typeof globalThis;\n    alert(message?: any): void;\n    blur(): 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 | null;\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    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    [index: number]: Window;\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\n/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */\ninterface Worker extends EventTarget, AbstractWorker {\n    onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: PostMessageOptions): 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 | URL, options?: WorkerOptions): 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\n/** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n    readonly locked: boolean;\n    abort(reason?: any): Promise<void>;\n    getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n    prototype: WritableStream;\n    new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n    error(error?: any): void;\n}\n\n/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */\ninterface WritableStreamDefaultWriter<W = any> {\n    readonly closed: Promise<void>;\n    readonly desiredSize: number | null;\n    readonly ready: Promise<void>;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    releaseLock(): void;\n    write(chunk: W): Promise<void>;\n}\n\n/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */\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\n/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */\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     * \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     * \n     * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n     * \n     * When set: setting to "document" is ignored if current global object is not a Window object.\n     * \n     * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n     * \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     * \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 request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n     * \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 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 to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n     * \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     * \n     * Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed.\n     * \n     * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n     * \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. (It does not actually change the header though.)\n     * \n     * Throws an "InvalidStateError" DOMException if state is loading or done.\n     */\n    overrideMimeType(mime: string): void;\n    /**\n     * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n     * \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     * \n     * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n     * \n     * Throws a "SyntaxError" DOMException if name is not a header name 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<XMLHttpRequestEventTarget>;\n    "error": ProgressEvent<XMLHttpRequestEventTarget>;\n    "load": ProgressEvent<XMLHttpRequestEventTarget>;\n    "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n    "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n    "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n    "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\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\n/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */\ninterface XMLSerializer {\n    serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n    prototype: XMLSerializer;\n    new(): XMLSerializer;\n};\n\n/** The XPathEvaluator interface allows to compile and evaluate XPath expressions. */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n    prototype: XPathEvaluator;\n    new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n    createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n    createNSResolver(nodeResolver: Node): XPathNSResolver;\n    evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */\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\n/** The results generated by evaluating an XPath expression within the context of a given node. */\ninterface XPathResult {\n    readonly booleanValue: boolean;\n    readonly invalidIteratorState: boolean;\n    readonly numberValue: number;\n    readonly resultType: number;\n    readonly singleNodeValue: Node | null;\n    readonly snapshotLength: number;\n    readonly stringValue: string;\n    iterateNext(): Node | null;\n    snapshotItem(index: number): Node | null;\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\n/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */\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\ndeclare namespace WebAssembly {\n    interface CompileError {\n    }\n    \n    var CompileError: {\n        prototype: CompileError;\n        new(): CompileError;\n    };\n    \n    interface Global {\n        value: any;\n        valueOf(): any;\n    }\n    \n    var Global: {\n        prototype: Global;\n        new(descriptor: GlobalDescriptor, value?: any): Global;\n    };\n    \n    interface Instance {\n        readonly exports: any;\n    }\n    \n    var Instance: {\n        prototype: Instance;\n        new(module: Module, importObject?: any): Instance;\n    };\n    \n    interface LinkError {\n    }\n    \n    var LinkError: {\n        prototype: LinkError;\n        new(): LinkError;\n    };\n    \n    interface Memory {\n        readonly buffer: ArrayBuffer;\n        grow(delta: number): number;\n    }\n    \n    var Memory: {\n        prototype: Memory;\n        new(descriptor: MemoryDescriptor): Memory;\n    };\n    \n    interface Module {\n    }\n    \n    var Module: {\n        prototype: Module;\n        new(bytes: BufferSource): Module;\n        customSections(module: Module, sectionName: string): ArrayBuffer[];\n        exports(module: Module): ModuleExportDescriptor[];\n        imports(module: Module): ModuleImportDescriptor[];\n    };\n    \n    interface RuntimeError {\n    }\n    \n    var RuntimeError: {\n        prototype: RuntimeError;\n        new(): RuntimeError;\n    };\n    \n    interface Table {\n        readonly length: number;\n        get(index: number): Function | null;\n        grow(delta: number): number;\n        set(index: number, value: Function | null): void;\n    }\n    \n    var Table: {\n        prototype: Table;\n        new(descriptor: TableDescriptor): Table;\n    };\n    \n    interface GlobalDescriptor {\n        mutable?: boolean;\n        value: string;\n    }\n    \n    interface MemoryDescriptor {\n        initial: number;\n        maximum?: number;\n    }\n    \n    interface ModuleExportDescriptor {\n        kind: ImportExportKind;\n        name: string;\n    }\n    \n    interface ModuleImportDescriptor {\n        kind: ImportExportKind;\n        module: string;\n        name: string;\n    }\n    \n    interface TableDescriptor {\n        element: TableKind;\n        initial: number;\n        maximum?: number;\n    }\n    \n    interface WebAssemblyInstantiatedSource {\n        instance: Instance;\n        module: Module;\n    }\n    \n    type ImportExportKind = "function" | "table" | "memory" | "global";\n    type TableKind = "anyfunc";\n    function compile(bytes: BufferSource): Promise<Module>;\n    function instantiate(bytes: BufferSource, importObject?: any): Promise<WebAssemblyInstantiatedSource>;\n    function instantiate(moduleObject: Module, importObject?: any): Promise<Instance>;\n    function validate(bytes: BufferSource): boolean;\n}\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 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?: Error): 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 QueuingStrategySizeCallback<T = any> {\n    (chunk: T): number;\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 ReadableByteStreamControllerCallback {\n    (controller: ReadableByteStreamController): void | PromiseLike<void>;\n}\n\ninterface ReadableStreamDefaultControllerCallback<R> {\n    (controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;\n}\n\ninterface ReadableStreamErrorCallback {\n    (reason: any): void | PromiseLike<void>;\n}\n\ninterface TransformStreamDefaultControllerCallback<O> {\n    (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformStreamDefaultControllerTransformCallback<I, O> {\n    (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface VoidFunction {\n    (): void;\n}\n\ninterface WritableStreamDefaultControllerCloseCallback {\n    (): void | PromiseLike<void>;\n}\n\ninterface WritableStreamDefaultControllerStartCallback {\n    (controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface WritableStreamDefaultControllerWriteCallback<W> {\n    (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface WritableStreamErrorCallback {\n    (reason: any): void | PromiseLike<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    "bdi": HTMLElement;\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    "main": HTMLElement;\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    "rp": HTMLElement;\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    "summary": 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    "a": SVGAElement;\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    "script": SVGScriptElement;\n    "stop": SVGStopElement;\n    "style": SVGStyleElement;\n    "svg": SVGSVGElement;\n    "switch": SVGSwitchElement;\n    "symbol": SVGSymbolElement;\n    "text": SVGTextElement;\n    "textPath": SVGTextPathElement;\n    "title": SVGTitleElement;\n    "tspan": SVGTSpanElement;\n    "use": SVGUseElement;\n    "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\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 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;\n/** @deprecated */\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 ondeviceorientationabsolute: ((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<Window>) => 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 & typeof globalThis;\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 & typeof globalThis;\ndeclare function alert(message?: any): void;\ndeclare function blur(): 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 | null;\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 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 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: MouseEvent) => 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: OnErrorEventHandler;\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: Event) => 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: Event) => any) | null;\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectstart: ((this: Window, ev: Event) => 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 cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\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 HeadersInit = Headers | string[][] | Record<string, string>;\ntype BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;\ntype RequestInfo = Request | string;\ntype BlobPart = BufferSource | Blob | string;\ntype DOMHighResTimeStamp = number;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\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 ConstrainULong = number | ConstrainULongRange;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype PerformanceEntryList = PerformanceEntry[];\ntype VibratePattern = number | number[];\ntype COSEAlgorithmIdentifier = number;\ntype AuthenticatorSelectionList = AAGUID[];\ntype AAGUID = BufferSource;\ntype AuthenticationExtensionsSupported = string[];\ntype UvmEntry = number[];\ntype UvmEntries = UvmEntry[];\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 | OffscreenCanvas;\ntype Float32List = Float32Array | GLfloat[];\ntype Int32List = Int32Array | GLint[];\ntype GLint64 = number;\ntype GLuint64 = number;\ntype Uint32List = Uint32Array | GLuint[];\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 IDBKeyPath = string;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;\ntype RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;\n/** @deprecated */\ntype MouseWheelEvent = WheelEvent;\ntype WindowProxy = Window;\ntype AlignSetting = "start" | "center" | "end" | "left" | "right";\ntype AnimationPlayState = "idle" | "running" | "paused" | "finished";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "none" | "indirect" | "direct";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "suspended" | "running" | "closed";\ntype AuthenticatorAttachment = "platform" | "cross-platform";\ntype AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";\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 CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";\ntype CredentialMediationRequirement = "silent" | "optional" | "required";\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 EndingType = "transparent" | "native";\ntype FillMode = "none" | "forwards" | "backwards" | "both" | "auto";\ntype FullscreenNavigationUI = "auto" | "show" | "hide";\ntype GamepadHand = "" | "left" | "right";\ntype GamepadHapticActuatorType = "vibration";\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";\ntype MediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "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 OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";\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 PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camera" | "microphone" | "speaker" | "device-info" | "background-sync" | "bluetooth" | "persistent-storage" | "ambient-light-sensor" | "accelerometer" | "gyroscope" | "magnetometer" | "clipboard";\ntype PermissionState = "granted" | "denied" | "prompt";\ntype PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";\ntype PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";\ntype PublicKeyCredentialType = "public-key";\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" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-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" | "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 UserVerificationRequirement = "required" | "preferred" | "discouraged";\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/*! *****************************************************************************\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 AudioParam {\n    setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface AudioTrackList {\n    [Symbol.iterator](): IterableIterator<AudioTrack>;\n}\n\ninterface BaseAudioContext {\n    createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n    createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSRuleList {\n    [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Cache {\n    addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPathDrawingStyles {\n    setLineDash(segments: Iterable<number>): void;\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 IDBObjectStore {\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 satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n     * \n     * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n     */\n    createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MediaKeyStatusMap {\n    [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\n    entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\n    keys(): IterableIterator<BufferSource>;\n    values(): IterableIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MimeTypeArray {\n    [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n    [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface Navigator {\n    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\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 RTCRtpTransceiver {\n    setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;\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 SVGPointList {\n    [Symbol.iterator](): IterableIterator<DOMPoint>;\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 VRDisplay {\n    requestPresent(layers: Iterable<VRLayer>): Promise<void>;\n}\n\ninterface VideoTrackList {\n    [Symbol.iterator](): IterableIterator<VideoTrack>;\n}\n\ninterface WEBGL_draw_buffers {\n    drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WebAuthentication {\n    makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;\n}\n\ninterface WebGL2RenderingContextBase {\n    invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n    invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n    vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n    drawBuffers(buffers: Iterable<GLenum>): void;\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n    transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n    getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n    getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n}\n\ninterface WebGL2RenderingContextOverloads {\n    uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n    vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n    vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n    vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n    vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n    uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n    uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n    uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n    uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n    uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n    uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n    uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n    uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n/*! *****************************************************************************\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/*! *****************************************************************************\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'},Cn=function(){function e(e,n){this._extraLibs=Object.create(null),this._languageService=Ln.c(this),this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs}return e.prototype.getCompilationSettings=function(){return this._compilerOptions},e.prototype.getScriptFileNames=function(){return this._ctx.getMirrorModels().map(function(e){return e.uri.toString()}).concat(Object.keys(this._extraLibs))},e.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},e.prototype.getScriptVersion=function(e){var n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):void 0},e.prototype.getScriptSnapshot=function(e){var n,t=this._getModel(e);if(t)n=t.getValue();else if(e in this._extraLibs)n=this._extraLibs[e].content;else if(e===An.NAME)n=An.CONTENTS;else{if(e!==xn.NAME)return;n=xn.CONTENTS}return{getText:function(e,t){return n.substring(e,t)},getLength:function(){return n.length},getChangeRange:function(){}}},e.prototype.getScriptKind=function(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return Ln.a.TS;case"tsx":return Ln.a.TSX;case"js":return Ln.a.JS;case"jsx":return Ln.a.JSX;default:return this.getCompilationSettings().allowJs?Ln.a.JS:Ln.a.TS}},e.prototype.getCurrentDirectory=function(){return""},e.prototype.getDefaultLibFileName=function(e){return e.target<=Ln.b.ES5?An.NAME:xn.NAME},e.prototype.isDefaultLibFileName=function(e){return e===this.getDefaultLibFileName(this._compilerOptions)},e.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})})},e.prototype.getSyntacticDiagnostics=function(n){var t=this._languageService.getSyntacticDiagnostics(n);return e.clearFiles(t),Promise.resolve(t)},e.prototype.getSemanticDiagnostics=function(n){var t=this._languageService.getSemanticDiagnostics(n);return e.clearFiles(t),Promise.resolve(t)},e.prototype.getCompilerOptionsDiagnostics=function(n){var t=this._languageService.getCompilerOptionsDiagnostics();return e.clearFiles(t),Promise.resolve(t)},e.prototype.getCompletionsAtPosition=function(e,n){return Promise.resolve(this._languageService.getCompletionsAtPosition(e,n,void 0))},e.prototype.getCompletionEntryDetails=function(e,n,t){return Promise.resolve(this._languageService.getCompletionEntryDetails(e,n,t,void 0,void 0,void 0))},e.prototype.getSignatureHelpItems=function(e,n){return Promise.resolve(this._languageService.getSignatureHelpItems(e,n,void 0))},e.prototype.getQuickInfoAtPosition=function(e,n){return Promise.resolve(this._languageService.getQuickInfoAtPosition(e,n))},e.prototype.getOccurrencesAtPosition=function(e,n){return Promise.resolve(this._languageService.getOccurrencesAtPosition(e,n))},e.prototype.getDefinitionAtPosition=function(e,n){return Promise.resolve(this._languageService.getDefinitionAtPosition(e,n))},e.prototype.getReferencesAtPosition=function(e,n){return Promise.resolve(this._languageService.getReferencesAtPosition(e,n))},e.prototype.getNavigationBarItems=function(e){return Promise.resolve(this._languageService.getNavigationBarItems(e))},e.prototype.getFormattingEditsForDocument=function(e,n){return Promise.resolve(this._languageService.getFormattingEditsForDocument(e,n))},e.prototype.getFormattingEditsForRange=function(e,n,t,r){return Promise.resolve(this._languageService.getFormattingEditsForRange(e,n,t,r))},e.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){return Promise.resolve(this._languageService.getFormattingEditsAfterKeystroke(e,n,t,r))},e.prototype.findRenameLocations=function(e,n,t,r,a){return Promise.resolve(this._languageService.findRenameLocations(e,n,t,r,a))},e.prototype.getRenameInfo=function(e,n,t){return Promise.resolve(this._languageService.getRenameInfo(e,n,t))},e.prototype.getEmitOutput=function(e){return Promise.resolve(this._languageService.getEmitOutput(e))},e.prototype.updateExtraLibs=function(e){this._extraLibs=e},e}();self.onmessage=function(){Sn(function(e,n){return new Cn(e,n)})}},W2nU:function(e,n){var t,r,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],d=!1,u=-1;function m(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!d){var e=s(m);d=!0;for(var n=c.length;n;){for(l=c,c=[];++u<n;)l&&l[u].run();u=-1,n=c.length}l=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function f(e,n){this.fun=e,this.array=n}function g(){}a.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];c.push(new f(e,n)),1!==c.length||d||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},ZfGv:function(e,n,t){"use strict";(function(e,r){t.d(n,"c",function(){return p}),t.d(n,"b",function(){return f}),t.d(n,"a",function(){return g});var a=!1,i=!1,o=!1,s=!1,l=void 0,c=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||c){if("object"==typeof e){a="win32"===e.platform,i="darwin"===e.platform,o="linux"===e.platform,"en","en";var d=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(d)try{var u=JSON.parse(d),m=u.availableLanguages["*"];u.locale,m||"en",u._translationsConfigFile}catch(e){}!0}}else a=(l=navigator.userAgent).indexOf("Windows")>=0,i=l.indexOf("Macintosh")>=0,o=l.indexOf("Linux")>=0,s=!0,navigator.language;var p=a,f=s,g="object"==typeof self?self:"object"==typeof r?r:{}}).call(n,t("W2nU"),t("DuR2"))},f1Eh:function(e,n){e.exports=function(e){if(!e.webpackPolyfill){var n=Object.create(e);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(n,"exports",{enumerable:!0}),n.webpackPolyfill=1}return n}},tZcU:function(e,n,t){(function(e){(function(){"use strict";function n(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}var t=setTimeout;function r(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var r;try{r=t(e._value)}catch(e){return void s(n.promise,e)}o(n.promise,r)}else(1===e._state?o:s)(n.promise,e._value)})):e._deferreds.push(n)}function o(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var t=n.then;if(n instanceof a)return e._state=3,e._value=n,void l(e);if("function"==typeof t)return void c((r=t,i=n,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=n,l(e)}catch(n){s(e,n)}var r,i}function s(e,n){e._state=2,e._value=n,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)i(e,e._deferreds[n]);e._deferreds=null}function c(e,n){var t=!1;try{e(function(e){t||(t=!0,o(n,e))},function(e){t||(t=!0,s(n,e))})}catch(e){if(t)return;t=!0,s(n,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,n){var t=new this.constructor(r);return i(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,n,t)),t},a.prototype.finally=n,a.all=function(e){return new a(function(n,t){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);var a=r.length;function i(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(n){i(e,n)},t)}r[e]=o,0==--a&&n(r)}catch(e){t(e)}}for(var o=0;o<r.length;o++)i(o,r[o])})},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a(function(n){n(e)})},a.reject=function(e){return new a(function(n,t){t(e)})},a.race=function(e){return new a(function(n,t){for(var r=0,a=e.length;r<a;r++)e[r].then(n,t)})},a._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("unable to locate global object")}();"Promise"in d?d.Promise.prototype.finally||(d.Promise.prototype.finally=n):d.Promise=a})()}).call(n,t("DuR2"))}});